Skip to content

Commit

Permalink
Include propagation style in the configuration log (#5275)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock authored Mar 7, 2024
1 parent 7bef2de commit 2842207
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tracer/src/Datadog.Trace/TracerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,29 @@ void WriteDictionary(IReadOnlyDictionary<string, string> dictionary)
writer.WritePropertyName("service_mapping");
WriteDictionary(instanceSettings.ServiceNameMappings);

writer.WritePropertyName("trace_propagation_style_extract_first_only");
writer.WriteValue(instanceSettings.PropagationExtractFirstOnly);

writer.WritePropertyName("trace_propagation_style_inject");
writer.WriteStartArray();

foreach (var warning in instanceSettings.PropagationStyleInject)
{
writer.WriteValue(warning);
}

writer.WriteEndArray();

writer.WritePropertyName("trace_propagation_style_extract");
writer.WriteStartArray();

foreach (var warning in instanceSettings.PropagationStyleExtract)
{
writer.WriteValue(warning);
}

writer.WriteEndArray();

writer.WriteEndObject();
// ReSharper restore MethodHasAsyncOverload
}
Expand Down

0 comments on commit 2842207

Please sign in to comment.