question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview feature feedback: Prisma tracing (`tracing`)

See original GitHub issue

Please share your feedback about the tracing functionality released in v4.2.0 in this issue.

  • If you encounter a bug, please open a bug report in this repo.
  • If the feature is working well for you, please share this in a comment below or leave a 👍 on this issue.

If you have any questions, don’t hesitate to ask them in the #prisma-client channel in the Prisma Slack.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
alondayan2commented, Sep 1, 2022

First of all, the new opentelemetry instrumentation is working great for us!

There is just 2 things that bother us:

  • Each query creates a lot of spans which pollutes our tracing. An ability to control which span types you get would be awesome.
  • The main prisma:engine span doesn’t include the actual sql query that is made, which can be really helpful! + sometimes the queries contain sensitive information, so we need a hook or something similar to determine the final sql query attribute sent with the trace.

Thanks a lot!

4reactions
tgensolcommented, Oct 2, 2022

500% agreed with @alondayan2, Could be awesome if we could filter some traces like : "prisma:client:serialize", "prisma:engine:connection", "prisma:client:serialize", "prisma:engine:serialize", "prisma:client:connect" because today, Prisma tracing is 70% of all my traces so my tracing tools (honeycomb/datadog) wend too expensive and I have to remove it.

Like https://www.npmjs.com/package/@opentelemetry/instrumentation-express is doing with ignoreLayersType

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma Client and Prisma schema preview features
When we release a new Prisma Client or Prisma schema feature, it often starts in preview so that you can test it and...
Read more >
Prisma Support for Tracing and Metrics Is Now in Preview
We are excited to launch two new features in Preview: Tracing and Metrics. Try them out and let us ... Try them out...
Read more >
Preview features (Reference) - Prisma
Some Prisma features are released as Previews. Share your feedback on all Preview features on GitHub. For information about available preview features and...
Read more >
OpenTelemetry tracing (Preview) - Prisma
Tracing provides a detailed log of the activity that Prisma Client carries out, at an operation level, including the time taken to execute...
Read more >
Prisma Client Just Became a Lot More Flexible
Learn how Prisma Client extensions (in Preview) enable new use cases. ... the OpenTelemetry tracing and Metrics features (both in Preview), ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found