Closed abrahamq closed 1 year ago
Here's a minimal repo, if that helps: https://github.com/abrahamq/minimal-sentry-repo
You can use the extractTraceparentData
function.
Like so:
We need to improve the documentation here.
@lobsterkatie
instead of documenting this internal helper function, we should consider adding according to spec the proper public APIs
Related: https://github.com/getsentry/sentry-docs/issues/2984
See discussion of continueFromHeaders
and iterHeaders
(the spec API Steven mentions above) here.
Package + Version
@sentry/browser
@sentry/node
- 5.29.0raven-js
raven-node
(raven for node)@sentry/tracing
- 5.29.0Version:
Description
I'm trying to write a graphql-middleware to integrate with our app. Following the instructions here I tried to modify the express middleware already in sentry for this use; however, when I try to call
Span.fromTraceparent
I receive the titular error. I've looked through the compiled javascript and that function is nowhere to be found even though it is present on the typedoc here: https://getsentry.github.io/sentry-javascript/classes/tracing.span-2.html#fromtraceparentThanks!