diff --git a/tracer/test/Datadog.Trace.Debugger.IntegrationTests/Helpers/Approver.cs b/tracer/test/Datadog.Trace.Debugger.IntegrationTests/Helpers/Approver.cs index 366fbcbaaeae..9f923c8cc8a9 100644 --- a/tracer/test/Datadog.Trace.Debugger.IntegrationTests/Helpers/Approver.cs +++ b/tracer/test/Datadog.Trace.Debugger.IntegrationTests/Helpers/Approver.cs @@ -23,7 +23,7 @@ internal static class Approver { private static readonly string[] _typesToScrub = { nameof(IntPtr), nameof(Guid) }; private static readonly string[] _knownPropertiesToReplace = { "duration", "timestamp", "dd.span_id", "dd.trace_id", "id", "lineNumber", "thread_name", "thread_id", "<>t__builder", "s_taskIdCounter", "<>u__1", "stack", "m_task" }; - private static readonly string[] _knownPropertiesToRemove = { "CachedReusableFilters", "MaxStateDepth", "MaxValidationDepth" }; + private static readonly string[] _knownPropertiesToRemove = { "CachedReusableFilters", "MaxStateDepth", "MaxValidationDepth", "process_tags" }; internal static async Task ApproveSnapshots(string[] snapshots, string testName, ITestOutputHelper output, string[] knownPropertiesToReplace = null, string[] knownPropertiesToRemove = null, string[] typesToScrub = null, bool orderPostScrubbing = false) { diff --git a/tracer/test/Datadog.Trace.Debugger.IntegrationTests/ProbesTests.cs b/tracer/test/Datadog.Trace.Debugger.IntegrationTests/ProbesTests.cs index f54604e9fee5..10aa59348cc1 100644 --- a/tracer/test/Datadog.Trace.Debugger.IntegrationTests/ProbesTests.cs +++ b/tracer/test/Datadog.Trace.Debugger.IntegrationTests/ProbesTests.cs @@ -690,6 +690,9 @@ private void SanitizeSpanTags(IImmutableList spans) foreach (var span in spans) { + // Remove process tags that can be injected on the first span in a payload + span.Tags.Remove(global::Datadog.Trace.Tags.ProcessTags); + var toSanitize = span.Tags.Where(tag => tag.Key.StartsWith(errorTagStartWith) && tag.Key.EndsWith(errorTagEndWith)).ToList(); foreach (var keyValuePair in toSanitize) {