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

Support @sentry/nextjs in useSentry #1946

Open
mlecoq opened this issue Sep 19, 2023 · 0 comments
Open

Support @sentry/nextjs in useSentry #1946

mlecoq opened this issue Sep 19, 2023 · 0 comments

Comments

@mlecoq
Copy link

mlecoq commented Sep 19, 2023

Is your feature request related to a problem? Please describe.

Hi, I'm using graphql-yoga in a nextjs edge function and I would like to use useSentry plugin. Unfortunately I cannot install @sentry/node, I have to use @sentry/nextjs

Describe the solution you'd like

It would be great if we could pass Sentry instance in the plugin

import * as Sentry from '@sentry/xxx'


...

useSentry(Sentry, options)

Describe alternatives you've considered

Creating my own plugin but it leads to duplicate all the codes of the plugin. So I will patch all imports in the dependency for the moment

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

1 participant