Skip to content
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

Add custom instrumentation #68

Open
etiennea opened this issue Dec 7, 2023 · 2 comments
Open

Add custom instrumentation #68

etiennea opened this issue Dec 7, 2023 · 2 comments

Comments

@etiennea
Copy link

etiennea commented Dec 7, 2023

I would like to add the prisma instrumentation yet there is no docs on how to add a custom intrument

@MikeShi42
Copy link
Contributor

MikeShi42 commented Dec 7, 2023

Hi @etiennea we're working on it but we recently got a submission for an example app to show how to get started with Prisma + OpenTelemetry if you think this can help in the meantime: https://github.com/mdp/prisma_hyperdx/blob/main/src/otel.ts#L54

Otherwise it looks like we need to add auto instrumentation support so that Prisma can get pulled in without extra work :)

Edit: Sorry I just realized, is the question on how to add custom instrumentation along side the Node auto-instrumentation SDK?

@wrn14897
Copy link
Contributor

wrn14897 commented Dec 8, 2023

Hey @etiennea , the node SDK does support custom instrumentation. You can check out the doc (https://github.com/hyperdxio/hyperdx-js/tree/main/packages/node-opentelemetry#adding-additional-3rd-party-instrumentation-packages)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants