fLaunchFlagPassTraceparent#

Fully qualified name: carb::launcher::fLaunchFlagPassTraceparent

Defined in carb/launcher/ILauncher.h

constexpr LauncherFlags carb::launcher::fLaunchFlagPassTraceparent = 0x00000800#

Flag to indicate that the current thread’s traceparent ID should be implicitly passed to the child process via an environment variable.

When this flag is set, the calling thread’s current traceparent ID will be retrieved and passed to the child process through the OMNI_OTEL_TRACES_EXTERNAL_TRACE_ID environment variable. This allows the child process to continue the trace context from the parent process, enabling distributed tracing across process boundaries. If no trace is currently active on the calling thread, the environment variable will not be set. This flag has no effect if the child process does not use OpenTelemetry or does not read the OMNI_OTEL_TRACES_EXTERNAL_TRACE_ID environment variable. This flag may be combined with explicit environment variable settings in LaunchDesc::env. If the same environment variable is explicitly set in LaunchDesc::env, the manually specified value will take precedence over the automatically added traceparent.