Skip to content

Ensure the SDK can propagate traces from non-HTTP boundaries #5571

Description

@jamescrosswell

SentrySdk.ContinueTrace(traceHeader, baggageHeader) followed by SentrySdk.StartTransaction(context) is the documented way to continue a distributed trace from a non-HTTP boundary (#2646).

I'm not sure that's true... that PR was closed - never merged.

To be honest, I'm not sure if we have an explicit way to continue traces from a non-HTTP boundary. The ContinueTrace method stores trace information in the propagation context which, so far, is only really used to apply trace information to events when tracing is disabled - e.g. here:

// If there is no span on the scope (and not just no sampled one), fall back to the propagation context
ApplyTraceContextToEvent(evt, scope.PropagationContext);

Propagating from non-HTTP boundaries should be possible but it requires a bit of investigation/planning. I won't have time for this immediately as we need to get the SDK ready for .NET 11. I also don't have time to review any moderately complex PRs at the moment.

I'll create an issue for this so that we can priorities and schedule in the work once the work for .NET 11 is complete.

Originally posted by @jamescrosswell in #5569 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeFeatureNew feature or requestTraces

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions