We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeError: Cannot read properties of undefined (reading 'setContext')
app.use('*', async (c: Context, next) => { sentry({ dsn: 'example.com', tracesSampleRate: parseFloat( (c.env.SENTRY_TRACES_SAMPLE_RATE as string) || '0', ), environment: c.env.SENTRY_ENV === 'master' ? 'production' : c.env.SENTRY_ENV, release: `${packageJson.name}@${packageJson.version}` + (c.env.SENTRY_ENV === 'master' ? '' : '-' + c.env.SENTRY_ENV), }); await next(); `});`
sentry does not get initialised, but if I do this directly, it works:
app.use('*', sentry({ dsn: 'example.com', });
But I need it in the handler so I can add variables from env context
The text was updated successfully, but these errors were encountered:
@sam-lippert can you check this out? @yusukebe
Sorry, something went wrong.
No branches or pull requests
TypeError: Cannot read properties of undefined (reading 'setContext')
sentry does not get initialised, but if I do this directly, it works:
But I need it in the handler so I can add variables from env context
The text was updated successfully, but these errors were encountered: