I'm deploying a new version of my dotnet application in cloud run, this API has another version up and running in the app engine, the solution is using cloud trace for tracking purposes but I'm getting the following error in cloud run (This is not happening in app engine).
75% to the cloud run deployments are failing with the following error:
2022-06-10T20:31:03.044280500ZSystem.ArgumentException: An item with the same key has already been added. Key: X-Cloud-Trace-Context at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseHeaders.AddValueUnknown(String key, StringValues value) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseHeaders.AddValueFast(String key, StringValues value) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.System.Collections.Generic.IDictionary<System.String,Microsoft.Extensions.Primitives.StringValues>.Add(String key, StringValues value) at Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceExtensions.PropagateGoogleTraceHeaders(HttpResponse response, ITraceContext traceContext) at Google.Cloud.Diagnostics.AspNetCore3.CloudTraceMiddleware.Invoke(HttpContext httpContext, ITraceContext traceContext, TraceDecisionPredicate fallback, Action`2 traceContextPropagator) at Google.Cloud.Diagnostics.AspNetCore3.ErrorReportingExceptionLoggerMiddleware.Invoke(HttpContext httpContext) at Google.Cloud.Diagnostics.AspNetCore3.ErrorReportingExceptionLoggerMiddleware.Invoke(HttpContext httpContext) at Google.Cloud.Diagnostics.AspNetCore3.ErrorReportingExceptionLoggerMiddleware.Invoke(HttpContext httpContext)
Any idea?