Expand description
Tracing initialization with module and build-variant tags on every JSON log line.
In CloudWatch / non-TTY environments the server emits one JSON object per
log event. Every JSON event begins with two compile-time attributes:
"bge_module"— always"server". Lets operators distinguish this service from the router or other BGE-family processes in shared log groups."build"—"cpu"for the default MLAS image,"cuda"whenever thecudaortensorrtfeatures are enabled (both are turned on byDockerfile.cuda). Use this inCloudWatchInsights to filter a mixed CPU/CUDA fleet.
The formatter chain is PrependModule → PrependBuild → JSON formatter,
so the rendered line always starts with
{"bge_module":"server","build":"<variant>",…}.
The human-readable text / pretty formats used during local dev are
left unchanged.
Structs§
- Prepend
Build - Wraps a JSON [
FormatEvent] so the rendered object always begins with a"build"key. - Prepend
Module - Wraps a JSON [
FormatEvent] so the rendered object always begins with a"bge_module"key (value: the compile-timeBGE_MODULEconstant).
Constants§
- BGE_
MODULE - Compile-time service name included as the first key on every JSON log line.
- BUILD_
VARIANT - Compile-time identifier for the build of the server that is running.
Functions§
- init
- Initialize the global tracing subscriber.