Replies: 3 comments 2 replies
-
Hey @gajus - thanks a lot for writing that article. Appreciate helping us test this all out. Using the |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
trace
from@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
trace
from@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
getClient
do 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.
Beta Was this translation helpful? Give feedback.
All reactions