-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
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
Can't create BaggageHeader for SentrySdk.ContinueTrace(), it's not public #2597
Comments
Thanks for raising this. Fair point. That's an oversight but I'm not sure how to proceed here yet. I'd like to avoid making the |
I don't think that would help in my case, because I'm trying to set up tracing for a transport that isn't HTTP (in my case it's Service Fabric TCP transport). I took inspiration from https://github.com/getsentry/sentry-dotnet/blob/3.36.0/src/Sentry.AspNetCore/SentryTracingMiddleware.cs, and on the transmitting side I can use BaggageHeader.ToString(), but there's nothing available on the receiving side. For comparison, SentryTraceHeader.Parse is public. |
Thanks for the additional input! We're going to add an overload to the |
@bruno-garcia I haven't gotten around to testing it, but it sounds like it should be exactly what I needed. Thanks. |
Package
Sentry
.NET Flavor
.NET Core
.NET Version
7.0.0
OS
Windows
SDK Version
3.36.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
Expected Result
I expect that BaggageHeader should have a public contructor or a public Parse/TryParse method
Actual Result
BaggageHeader doesn't have any public methods or constructors (expect an instance .ToString() method)
See: https://github.com/getsentry/sentry-dotnet/blob/3.36.0/src/Sentry/BaggageHeader.cs
The text was updated successfully, but these errors were encountered: