Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
9.0.300
OS
Linux
OS Version
latest dotnet container build
Development Environment
Rider 2024 (MacOS)
SDK Version
5.11.1
Self-Hosted Sentry Version
No response
Workload Versions
Installierte Workload-ID Manifestversion Installationsquelle
Verwenden Sie „dotnet workload search“, um zusätzliche zu installierende Workloads zu finden.
UseSentry or SentrySdk.Init call
builder.WebHost.UseSentry();
appsettings.json
"Sentry": {
"Dsn": null,
"IncludeRequestPayload": true,
"IncludeActivityData": true,
"MinimumBreadcrumbLevel": "Debug",
"MinimumEventLevel": "Error",
"AttachStackTrace": true,
"MaxBreadcrumbs": 50
},
Steps to Reproduce
Update from 5.10 to 5.11.1
Expected Result
everything should work as it worked before
Actual Result
fail: Microsoft.AspNetCore.Server.Kestrel[13] │
│ Connection id "0HNDI53VNL6PT", Request id "0HNDI53VNL6PT:0000000E": An unhandled exception was thrown by the application. │
│ System.ArgumentOutOfRangeException: cannot be empty (Parameter 'traceId') │
│ at Sentry.DynamicSamplingContext..ctor(SentryId traceId, String publicKey, Nullable`1 sampled, Nullable`1 sampleRate, Nullable`1 sampleRand, String release, String environment, String transactionNam │
│ at Sentry.DynamicSamplingContext.CreateFromPropagationContext(SentryPropagationContext propagationContext, SentryOptions options, IReplaySession replaySession) │
│ at Sentry.SentryMessageHandler.AddBaggageHeader(HttpRequestMessage request) │
│ at Sentry.SentryMessageHandler.PropagateTraceHeaders(HttpRequestMessage request, String url, ISpan parentSpan) │
│ at Sentry.SentryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) │
│ at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken) │
│ at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pend │
│ at Refit.RequestBuilderImplementation.<>c__DisplayClass15_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in c:\temp\releaser\refit\Refit\RequestBuilderImplementation.cs:line 331 │
│ --- End of stack trace from previous location --- │
│ at Refit.Implementation.Generated.XXX.global::XXX.ScanStreamAsync(MultipartItem stream, Cance │
│ ... │
│ --- End of stack trace from previous location --- │
│ at XXX.ApplicationBuilderExtensions.<>c.<<UseTelemetryService>b__0_0>d.MoveNext() in /home/vsts/work/1/s/services/XXX/ │
│ --- End of stack trace from previous location --- │
│ at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) │
│ at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context) │
│ at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context) │
│ at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context) │
│ at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) │
│ at Sentry.AspNetCore.SentryMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) │
│ at Sentry.AspNetCore.SentryMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) │
│ at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() │
│ --- End of stack trace from previous location --- │
│ at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
9.0.300
OS
Linux
OS Version
latest dotnet container build
Development Environment
Rider 2024 (MacOS)
SDK Version
5.11.1
Self-Hosted Sentry Version
No response
Workload Versions
Installierte Workload-ID Manifestversion Installationsquelle
Verwenden Sie „dotnet workload search“, um zusätzliche zu installierende Workloads zu finden.
UseSentry or SentrySdk.Init call
builder.WebHost.UseSentry();
appsettings.json
Steps to Reproduce
Update from 5.10 to 5.11.1
Expected Result
everything should work as it worked before
Actual Result