-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when opentelemetry is enabled #3854
Comments
FYI, at my company we are using 4.17.0 on Node 18, gateway 2.6.1 and [email protected] without issue |
I have a very similar issue but with Prisma and some manual span creation instead of Apollo. For me the issue only occurs when i develop locally so I think that it may be related to the DD_TRACE_ENABLED environment variable: dd-trace: 4.20.0 |
Yeah, I also just tracked it down to the if (process.env.DD_TRACE_ENABLED === 'true') {
const provider = new TracerProvider()
provider.register()
} |
Hi!
We're getting the following error after configuring opentelemetry support in
dd-trace-js
.The project is basically a apollo server / gateway.
Any clue where to look on how to resolve this in case that's not a bug?
Expected behaviour
Shouldn't crash I guess.
Actual behaviour
Is crashing
Steps to reproduce
That's our tracer initialization code:
When removing the
it works just fine - but then we don't get the opentelemetry spans emitted by the apollo gateway.
Environment
The text was updated successfully, but these errors were encountered: