Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Sep 23, 2025

Fixes #10719


@petebacondarwin petebacondarwin requested a review from a team as a code owner September 23, 2025 15:43
@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2025

🦋 Changeset detected

Latest commit: d1d268d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 23, 2025

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main pbd/add-no-sentry-env-var might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-10735
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 23, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10735

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10735

miniflare

npm i https://pkg.pr.new/miniflare@10735

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10735

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10735

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10735

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10735

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10735

wrangler

npm i https://pkg.pr.new/wrangler@10735

commit: d1d268d

@petebacondarwin petebacondarwin force-pushed the pbd/add-no-sentry-env-var branch from 0070ce4 to 71e0b1c Compare October 2, 2025 13:18
@petebacondarwin petebacondarwin force-pushed the pbd/add-no-sentry-env-var branch from 71e0b1c to d1d268d Compare October 2, 2025 13:46
@petebacondarwin petebacondarwin changed the title allow WRANGLER_SEND_METRICS to override whether to report Wrangler crashes to Sentry allow WRANGLER_SEND_ERROR_REPORTS to override whether to report Wrangler crashes to Sentry Oct 2, 2025
@petebacondarwin petebacondarwin added the skip-v3-pr Skip validation of presence of a v3 backport PR label Oct 2, 2025
Copy link
Member

@edmundhung edmundhung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with a few nits.

We probably want to update the docs for the new env var as well.

event_id: "",
sdk: {
name: "sentry.javascript.node",
version: "7.87.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will require us to update the test when ever we update the sentry client. Would it be better to match it with expect.any(String) instead?

There are a few more version number above.

sent_at: "",
trace: {
environment: "production",
public_key: "9edbb8417b284aa2bbead9b4c318918b",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a magic number that could change? Maybe match it with expect.any(String) as well?

sent_at: "",
trace: {
environment: "production",
public_key: "9edbb8417b284aa2bbead9b4c318918b",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public_key: "9edbb8417b284aa2bbead9b4c318918b",
public_key: expect.any(String),

event_id: "",
sdk: {
name: "sentry.javascript.node",
version: "7.87.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: "7.87.0",
version: expect.any(String),

version: "7.87.0",
},
],
version: "7.87.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: "7.87.0",
version: expect.any(String),

packages: [
{
name: "npm:@sentry/node",
version: "7.87.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: "7.87.0",
version: expect.any(String),

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Oct 2, 2025
@@ -0,0 +1,5 @@
---
"wrangler": patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a fix or new feature? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll bump it to minor

@petebacondarwin
Copy link
Contributor Author

Thanks for the review @edmundhung - the new Sentry test is an exact copy of another test in that file. So there is no new reliance upon magic constants that wasn't there before. We can improve that in another PR, but so far it seems that we have rarely been bothered by it - perhaps because there has not been any update to that dependency in a long time?

@petebacondarwin
Copy link
Contributor Author

Created a docs PR: cloudflare/cloudflare-docs#25605

@petebacondarwin petebacondarwin merged commit 103fbf0 into main Oct 3, 2025
54 of 58 checks passed
@petebacondarwin petebacondarwin deleted the pbd/add-no-sentry-env-var branch October 3, 2025 07:29
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-v3-pr Skip validation of presence of a v3 backport PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Can't get rid of prompt when wrangler D1 command has error.

2 participants