Prisma Client always receive engine spans even when not tracing #14842
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: tracing
Milestone
It looks like the engine always emits spans regardless of whether we send it a traceparent for an operation or not. I think this could cause performance issues if we always emit spans even for users that are not actually using otel?
On the client side, we receive a
parent_span_id
of000000000000
when we land in this situation. This came up while testing sampling for the documentation section. An easy way to reproduce this is to use a sampler but set to sample nothing, then see how engine spans are still being emitted. Might be useful to add it as a regression test:_Originally posted by @millsp in https://github.com/prisma/team-orm/issues/150
Potential Solution:
Stop passing
undefined
astraceId
The text was updated successfully, but these errors were encountered: