-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(nuxt): Add Cloudflare Nitro plugin #15597
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
base: develop
Are you sure you want to change the base?
Conversation
Thanks for working on this! By any chance you wouldn't have a suggestion on how to install this from github with pnpm? Tried,
but this installs the |
bc63ab4
to
fc62672
Compare
243b681
to
0800086
Compare
packages/cloudflare/src/request.ts
Outdated
* | ||
* @default false | ||
*/ | ||
continueTraceFromPropagationContext?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AbhiPrasad Is this a good place for adding the option? As it's only needed in the requestHandler, I added it only here and not in the general Cloudflare SDK options.
Actually, I don't need this option because it would always take same trace ID from the Cloudflare environment which leads to multiple pageload spans within a trace as they all have the same trace ID in the meta tags.
A plugin which initializes Sentry when deployed to Cloudflare.
Remove the previous server config file:
sentry.server.config.ts
Add a plugin in
server/plugins
(e.g.server/plugins/sentry-cloudflare-setup.ts
)Add this code in your plugin file
or with access to
nitroApp
: