Replies: 3 comments 2 replies
|
Hello! So if you need the tracer, you should be able to just do However, my understanding of OpenTelemetry would have been that it should also work using any other tracer 🤔 If you are still not getting traces, could you share your |
|
We have just shipped improved docs on these topics, you can find more info on this here: https://docs.sentry.io/platforms/javascript/guides/node/opentelemetry/using-opentelemetry-apis/#modifying-the-default-opentelemetry-tracerprovider (Note: If you have a typescript conflict with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For context, I am using Sentry SDK v8.
I am trying to use it with
@envelop/opentelemetry.The latter requires passing an instance of the tracer, i.e.
I tried using
tracefrom@opentelemetry/api, but I don't see see trace spans associated with Sentry traces.CC @AbhiPrasad @mydea
Would be good to get some guidance on whether I should be using something else other than
tracefrom@opentelemetry/api.p.s. I wrote a blog post that might be useful to your community https://gajus.com/blog/how-to-add-sentry-tracing-to-your-node-js-app
UPDATE:
So it appears that the correct way is:
However, the types of
getClientdo not havetraceProvider, even though it is there. This seems like an issue with TypeScript types.UPDATE:
It still does not work. Spans are not added to the resulting trace.
All reactions