File tree Expand file tree Collapse file tree
tracer/src/Datadog.Trace/Util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66using System ;
77using System . Threading ;
88using Datadog . Trace . Configuration ;
9+ using Datadog . Trace . Configuration . ConfigurationSources . Telemetry ;
10+ using Datadog . Trace . Configuration . Telemetry ;
911using Datadog . Trace . Logging ;
1012
1113namespace Datadog . Trace . Util
@@ -39,7 +41,8 @@ private static string GetImpl()
3941
4042 private static string GetRootSessionIdImpl ( )
4143 {
42- var inherited = EnvironmentHelpers . GetEnvironmentVariable ( ConfigurationKeys . Telemetry . RootSessionId ) ;
44+ var config = new ConfigurationBuilder ( new EnvironmentConfigurationSource ( ) , NullConfigurationTelemetry . Instance ) ;
45+ var inherited = config . WithKeys ( ConfigurationKeys . Telemetry . RootSessionId ) . AsString ( ) ;
4346 if ( ! string . IsNullOrEmpty ( inherited ) )
4447 {
4548 Log . Debug ( "Inherited root session ID from parent: {RootSessionId}" , inherited ) ;
You can’t perform that action at this time.
0 commit comments