Skip to content

feat(cloudflare): Read SENTRY_RELEASE from env #16201

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

Merged
merged 6 commits into from
May 7, 2025

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented May 5, 2025

This PR enables reading the SENTRY_RELEASE variable from the CF env that users should pass to their withSentry worker wrapper. This is quite similar to how we'd usually access env variables in Node-based SDKs.

We need this for uploading release-based source maps for CF worker functions being bundled and deployed by wrangler.

see getsentry/sentry-wizard#824 (comment)
ref https://linear.app/getsentry/issue/WIZARD-36/improve-sentrywizard-i-sourcemaps-for-cloudflarewrangler

@Lms24 Lms24 requested a review from AbhiPrasad May 6, 2025 09:45
@AbhiPrasad AbhiPrasad merged commit caa1316 into develop May 7, 2025
33 checks passed
@AbhiPrasad AbhiPrasad deleted the lms/feat-cloudflare-sentry-release-from-env branch May 7, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants