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

Usage of fastify + sentry inside a electron process. #713

Open
arthurfiorette opened this issue Apr 3, 2024 · 1 comment
Open

Usage of fastify + sentry inside a electron process. #713

arthurfiorette opened this issue Apr 3, 2024 · 1 comment

Comments

@arthurfiorette
Copy link

We're doing some hacky stuff to make Fastify work inside the main electron process. Somehow its hitting this line every time inside the electron process.

fastify.log.info('Sentry tracing not enabled.');

When the Fastify server runs directly with node, it works as normal.

I'm thinking this is because this project uses direct imports of @sentry/node and in our case we might need to use @sentry/electron. Is there a way to change it or could you guys give us some help?

@arthurfiorette arthurfiorette changed the title How to use other Sentry instances? Usage of fastify + sentry inside a electron process. Apr 3, 2024
@dnlup
Copy link
Contributor

dnlup commented May 3, 2024

Hi @arthurfiorette , I am not familiar with Sentry SDK in electron environments. Using another @sentry/* package would require the use of dynamic imports in the plugin code I think, not sure if that's enough though. Unfortunately I don't have the time to test this right now.

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

2 participants