diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/DynamicConfigurationTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/DynamicConfigurationTests.cs index 9a0ee021b456..5dbc4d71e5cb 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/DynamicConfigurationTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/DynamicConfigurationTests.cs @@ -255,7 +255,7 @@ private void AssertConfigurationChanged(ConcurrentStack events, Config c // (ConfigurationKeys.DebugEnabled, config.DebugLogsEnabled), (ConfigurationKeys.LogsInjectionEnabled, config.LogInjectionEnabled), (ConfigurationKeys.GlobalSamplingRate, config.TraceSampleRate), - (ConfigurationKeys.CustomSamplingRules, config.TraceSamplingRules), + (ConfigurationKeys.CustomSamplingRules, config.TraceSamplingRules == null ? null : JToken.Parse(config.TraceSamplingRules).ToString()), // (ConfigurationKeys.SpanSamplingRules, config.SpanSamplingRules), // (ConfigurationKeys.DataStreamsMonitoring.Enabled, config.DataStreamsEnabled), (ConfigurationKeys.HeaderTags, config.TraceHeaderTags == null ? null : JToken.Parse(config.TraceHeaderTags).ToString()), @@ -355,6 +355,7 @@ private record Config public double? TraceSampleRate { get; init; } [JsonProperty("tracing_sampling_rules")] + [JsonConverter(typeof(PlainJsonStringConverter))] public string TraceSamplingRules { get; init; } // [JsonProperty("span_sampling_rules")]