We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code:
app.MapGet("/hello", async context => { SentrySdk.ConfigureScope(scope => { scope.AddBreadcrumb("Saying hello..."); scope.SetTag("Greeting", "Hello"); using var task = SampleTelemetry.ActivitySource.StartActivity("Greet"); task?.SetTag("Answer", 42); Thread.Sleep(100); // simulate some work }); await context.Response.WriteAsync("Hey bro!"); });
Creates this trace:
Neither the Tags nor the Breadcrumbs flow through to Sentry.
This is because the _hub being resolved here is a HubAdapter rather than a plain old Hub:
_hub
HubAdapter
Hub
sentry-dotnet/src/Sentry.OpenTelemetry/SentrySpanProcessor.cs
Lines 195 to 198 in a448cc4
So that logic for resolving the Hub needs to be improved.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This code:
Creates this trace:
Neither the Tags nor the Breadcrumbs flow through to Sentry.
This is because the
_hub
being resolved here is aHubAdapter
rather than a plain oldHub
:sentry-dotnet/src/Sentry.OpenTelemetry/SentrySpanProcessor.cs
Lines 195 to 198 in a448cc4
So that logic for resolving the Hub needs to be improved.
The text was updated successfully, but these errors were encountered: