Skip to content

Expose spanToTraceparentHeader #17897

@camjackson

Description

@camjackson

Problem Statement

I have a need to manually apply the traceparent header to my application's outgoing network requests, and I want to use the traceId and spanId from the active sentry span. There is already a spanToTraceHeader() function exported by the library but it returns a sentry trace header, not a W3C standard traceparent header.

However, there is already a spanToTraceparentHeader() function right alongside it! But it's not exported from the library/ies. It would be great if this was exported so I don't have to generate the header mysekf.

Solution Brainstorm

Export the spanToTraceparentHeader() function alongside the spanToTraceHeader() function 🙂

Additional Context

Tip: React with 👍 to help prioritize this improvement. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions