Add Support for Sentry Tracing
See original GitHub issueProblem
Sentry.io has a new feature called “Tracing” which is essentially an APM. They have a postgres
integration, however this does not work with Prisma
Suggested solution
Either make a PR to fix the postgres integration to support prisma or create a separate prisma integration
Alternatives
N/A
Additional context
See: https://github.com/getsentry/sentry-javascript/issues/3143
Issue Analytics
- State:
- Created 2 years ago
- Reactions:13
- Comments:6
Top Results From Across the Web
@sentry/tracing - npm
Start using @sentry/tracing in your project by running `npm i ... Future support for @sentry/apm is limited to bug fixes only.
Read more >Distributed Tracing - Sentry Documentation
With tracing, Sentry tracks your software performance, measures metrics like throughput and latency, and displays the impact of errors across multiple ...
Read more >Error Tracing | Sentry Documentation
With error tracing, you can correlate errors from multiple services and uncover a significant story surrounding a break. Using a unique identifier allows ......
Read more >@sentry/tracing | Yarn - Package Manager
Please explicitly install and import @sentry/tracing if you want to use performance monitoring capabilities. For more details, see our docs on setting up...
Read more >sentry-tracing - crates.io: Rust Package Registry
Adds support for automatic Breadcrumb, Event and Transaction capturing from tracing events, similar to the sentry-log crate.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I took a look at how this is implemented for the pg integration: https://github.com/getsentry/sentry-javascript/blob/master/packages/tracing/src/integrations/postgres.ts and applied prisma’s middleware concept to it: https://www.prisma.io/docs/concepts/components/prisma-client/middleware
Here’s what worked for me:
Maybe a good starting point?
You’re welcome & thanks 😃
So far, the impact has been nothing to worry about for us