• Home
Name Date Size #Lines LOC

..--

testdata/06-Sep-2024-845714

BUILDD06-Sep-20241.7 KiB5752

README.mdD06-Sep-2024742 1712

test_codegen_runner.shD06-Sep-20241.2 KiB3313

tracing_traits_generator.ccD06-Sep-202416.5 KiB425339

tracing_traits_generator_test.ccD06-Sep-20244.9 KiB12683

README.md

1# Tracing Traits Generator
2
3This directory contains an implementation of a simple codegen tool
4`tracing_traits_generator` which uses FlatBuffers reflection to inspect
5user-defined tracing schema and produces a C++ header file containing additional
6traits needed for `TracingSpan::Log<T>()` and `TracingSpan::CreateChild<T>()` to
7function properly.
8
9These traits allow for compile-time lookup of user-defined tags, additional
10attributes needed for tracking backend components to handle the data.
11
12This tool is automatically invoked during a build process with the help of
13`tracing_schema_cc_library` rule in `build/build_defs.bzl`.
14
15Examples of codegen output for various input FlatBuffers schemas can be found in
16`testdata/*.baseline` files.
17