jgoux
jgouxโ€ข9mo ago

tRPC and OpenTelemetry

Does anyone have experience with instrumenting tRPC with OTEL for tracing? It would be pretty neat to have an auto-instrumentation package like Prisma did : https://www.npmjs.com/package/@prisma/instrumentation
npm
@prisma/instrumentation
OpenTelemetry compliant instrumentation for Prisma Client. Latest version: 5.4.2, last published: 9 days ago. Start using @prisma/instrumentation in your project by running npm i @prisma/instrumentation. There are 17 other projects in the npm registry using @prisma/instrumentation.
6 Replies
jgoux
jgouxโ€ข8mo ago
Prisma
OpenTelemetry tracing (Preview)
Diagnose application performance with detailed traces of each query.
Thomas Ankcorn
Thomas Ankcornโ€ข8mo ago
Hellooooooo
Thomas Ankcorn
Thomas Ankcornโ€ข8mo ago
Thomas Ankcorn
Thomas Ankcornโ€ข8mo ago
It's not as magic as the prisma one but it works great ๐Ÿ™‚ We even add a custom icon in the ui at baselime.io
jgoux
jgouxโ€ข8mo ago
Niiiice, thanks @Thomas Ankcorn
Thomas Ankcorn
Thomas Ankcornโ€ข8mo ago
Let me know how you get on ๐Ÿ™‚
More Posts
Multiple TRPC endpoints on same API, with discrete clients? Any gotchas?I'm building a Sveltekit app that has several pages that will need to behave like SPA's. Rather thanProper way to revalidate SSR but from Client Side, ie. after a success Mutation.This question has been also posted on an specific thread but posting this here will allow people to How to implement tRPC auth ?Do you have any article/github links for how can i create auth in tRPC ?tRPC middleware infer type from another protectedProcedureHello, `protectedProcedure` check and adds a not nullable user to the ctx. However the `studyMiddlewtRPC requests on client vs server for NextJsHello, I'm new to tRPC, and am confused on one thing. I have watched videos of some using a server cpassing user input state variable to all api callsI have a multi organization app and need a way of passing the current organizationId on all requestsIs there a way to extract a procedure signature?I'm looking into extracting certain handlers into functions to keep certain procedures more manageabIs there a pattern for omitting certain types of errors from being returned in the API responseI'd prefer not to expose the ORM queries being used in my resolver. I'm already providing an `onErroDynamic input not leading to changes on the front endI'm building a dynamic procedure to access my database via Drizzle ORM. Ideally a developer would btRPC with with react-query prefetching in Next.js app directory.Hi. What is currently the best way to do prefetching in Next.js app directory when using @tanstack/r