File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
tracer/src/Datadog.Trace/Configuration Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -247,14 +247,12 @@ private ApplyDetails[] ConfigurationUpdated(
247247 private void ApplyMergedConfiguration ( List < RemoteConfiguration > remoteConfigurations )
248248 {
249249 // Get current service/environment for filtering
250- var currentSettings = Tracer . Instance . Settings ;
251- var serviceName = currentSettings . ServiceName ;
252- var environment = currentSettings . Environment ?? Tracer . Instance . DefaultServiceName ;
250+ var currentSettings = Tracer . Instance . CurrentTraceSettings . Settings ;
253251
254252 var mergedConfigJToken = ApmTracingConfigMerger . MergeConfigurations (
255253 remoteConfigurations ,
256- serviceName ,
257- environment ) ;
254+ serviceName : currentSettings . ServiceName ,
255+ environment : currentSettings . Environment ) ;
258256
259257 var configurationSource = new DynamicConfigConfigurationSource ( mergedConfigJToken , ConfigurationOrigins . RemoteConfig ) ;
260258
You can’t perform that action at this time.
0 commit comments