immobiliare/fastify-sentry

Do I need fastify-sentry if I am using @sentry/opentelemetry?

Closed this issue · 1 comments

gajus commented

I am not clear whether fastify-sentry is needed if I am already using @sentry/opentelemetry, and my goal is to just capture performance traces. As far as I understand, @opentelemetry/auto-instrumentations-node already handles instrumentation for us.

gajus commented

Hey @md384 this is intentional! When you set instrumenter: 'otel' to be the configuration in your Sentry.init, we expect you to use the otel APIs to create/read span, and not rely on startTransaction or getTransaction.

getsentry/sentry-javascript#7985 (comment)

Since this package uses startTransaction, it means we should not be using it.