Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Expose spanToTraceparentHeader #17897

Copy link
Copy link
@camjackson

Description

@camjackson
Issue body actions

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.

camjackson-bigwx and aldy505

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community
Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.