File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ struct TracerConfig {
141141 // specify the same `runtime_id` for all tracer instances in the same run.
142142 Optional<RuntimeID> runtime_id;
143143
144+ // Root session ID for stable telemetry correlation across forked workers.
145+ // Integrations (nginx, httpd, kong) should set this in the master process
146+ // before workers fork so all Tracers share the same root.
147+ Optional<std::string> root_session_id;
148+
144149 // `integration_name` is the name of the product integrating this library.
145150 // Example: "nginx", "envoy" or "istio".
146151 Optional<std::string> integration_name;
@@ -189,11 +194,6 @@ struct TracerConfig {
189194 // This option is ignored if `resource_renaming_enabled` is not `true`.
190195 Optional<bool > resource_renaming_always_simplified_endpoint;
191196
192- // Root session ID for stable telemetry correlation across forked workers.
193- // Integrations (nginx, httpd, kong) should set this in the master process
194- // before workers fork so all Tracers share the same root.
195- Optional<std::string> root_session_id;
196-
197197 // / A mapping of process-specific tags used to uniquely identify processes.
198198 // /
199199 // / The `process_tags` map allows associating arbitrary string-based keys and
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ Tracer::Tracer(const FinalizedTracerConfig& config,
4949 : logger_(config.logger),
5050 runtime_id_ (config.runtime_id ? *config.runtime_id
5151 : RuntimeID::generate()),
52- signature_{ runtime_id_,
52+ signature_( runtime_id_,
5353 root_session_id::get_or_init (
5454 config.root_session_id.value_or(runtime_id_.string())),
55- config.defaults .service , config.defaults .environment } ,
55+ config.defaults.service, config.defaults.environment) ,
5656 config_manager_(std::make_shared<ConfigManager>(config)),
5757 collector_(/* see constructor body */ ),
5858 span_sampler_(
You can’t perform that action at this time.
0 commit comments