diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index a651eb363952..8dfa2dec155e 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -11,4 +11,4 @@
],
"deny": []
}
-}
\ No newline at end of file
+}
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index f3589c97781e..6e908d5b21bb 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -21,3 +21,6 @@ aecf26f22dbf65ce2c0caadc4ce71b46266c9f45
971b51d4b8e92aa1b93c51074e28c7cbed63b486
ebc9b539548953bb9dd81d6a18adcdd91e804563
c88ff463a5566194a454b58bc555f183cf9ee813
+
+# chore: Ensure prettier is run on all files #17497
+90edf65b3d93c89ae576b063a839541022f478cf
diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml
index 808fad64696f..0507fe879c27 100644
--- a/.github/workflows/auto-release.yml
+++ b/.github/workflows/auto-release.yml
@@ -15,12 +15,12 @@ jobs:
steps:
- name: Get auth token
id: token
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
+ uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 41e4e5c2a3b3..d6b5c3952b72 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -71,7 +71,7 @@ jobs:
pull-requests: read
steps:
- name: Check out current commit
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
# We need to check out not only the fake merge commit between the PR and the base branch which GH creates, but
@@ -131,13 +131,13 @@ jobs:
(needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
steps:
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: 'Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
@@ -200,6 +200,9 @@ jobs:
changed_node:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/node') }}
+ changed_node_overhead_action:
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
+ '@sentry-internal/node-overhead-gh-action') }}
changed_deno:
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
'@sentry/deno') }}
@@ -235,7 +238,7 @@ jobs:
needs.job_get_metadata.outputs.is_release == 'true'
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -253,6 +256,37 @@ jobs:
# Only run comparison against develop if this is a PR
comparison_branch: ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
+ job_node_overhead_check:
+ name: Node Overhead Check
+ needs: [job_get_metadata, job_build]
+ timeout-minutes: 15
+ runs-on: ubuntu-24.04
+ if:
+ (needs.job_build.outputs.changed_node == 'true' && github.event_name == 'pull_request') ||
+ (needs.job_build.outputs.changed_node_overhead_action == 'true' && github.event_name == 'pull_request') ||
+ needs.job_get_metadata.outputs.is_base_branch == 'true' || needs.job_get_metadata.outputs.is_release == 'true'
+ steps:
+ - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
+ uses: actions/checkout@v5
+ with:
+ ref: ${{ env.HEAD_COMMIT }}
+ - name: Set up Node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: 'package.json'
+ - name: Restore caches
+ uses: ./.github/actions/restore-cache
+ with:
+ dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
+ - name: Check node overhead
+ uses: ./dev-packages/node-overhead-gh-action
+ env:
+ DEBUG: '1'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ # Only run comparison against develop if this is a PR
+ comparison_branch: ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
+
job_lint:
name: Lint
# Even though the linter only checks source code, not built code, it needs the built code in order check that all
@@ -262,7 +296,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -288,7 +322,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
@@ -311,7 +345,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -333,7 +367,7 @@ jobs:
if: needs.job_get_metadata.outputs.is_release == 'true'
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -368,13 +402,13 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -415,7 +449,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -440,7 +474,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -472,12 +506,12 @@ jobs:
node: [18, 20, 22, 24]
steps:
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -566,7 +600,7 @@ jobs:
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -630,7 +664,7 @@ jobs:
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -678,7 +712,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -716,7 +750,7 @@ jobs:
typescript: '3.8'
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -752,7 +786,7 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -780,7 +814,7 @@ jobs:
node: [18, 20, 22, 24]
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -827,12 +861,12 @@ jobs:
matrix-optional: ${{ steps.matrix-optional.outputs.matrix }}
steps:
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -897,7 +931,7 @@ jobs:
matrix: ${{ fromJson(needs.job_e2e_prepare.outputs.matrix) }}
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- uses: pnpm/action-setup@v4
@@ -1027,7 +1061,7 @@ jobs:
steps:
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- uses: pnpm/action-setup@v4
@@ -1137,6 +1171,6 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check for failures
- if: contains(needs.*.result, 'failure')
+ if: cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: |
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml
index 2b8f46f0c352..b1c5f619de19 100644
--- a/.github/workflows/canary.yml
+++ b/.github/workflows/canary.yml
@@ -31,7 +31,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Check out current commit
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
@@ -120,7 +120,7 @@ jobs:
steps:
- name: Check out current commit
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
with:
ref: ${{ env.HEAD_COMMIT }}
- uses: pnpm/action-setup@v4
diff --git a/.github/workflows/cleanup-pr-caches.yml b/.github/workflows/cleanup-pr-caches.yml
index 591d9292e0c0..2c9bba513605 100644
--- a/.github/workflows/cleanup-pr-caches.yml
+++ b/.github/workflows/cleanup-pr-caches.yml
@@ -14,7 +14,7 @@ jobs:
contents: read
steps:
- name: Check out code
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Cleanup
run: |
diff --git a/.github/workflows/clear-cache.yml b/.github/workflows/clear-cache.yml
index 20d99f72b66e..97aeb53365e7 100644
--- a/.github/workflows/clear-cache.yml
+++ b/.github/workflows/clear-cache.yml
@@ -23,7 +23,7 @@ jobs:
name: Delete all caches
runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v4
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index daeb79c8fa30..8c042c5aa44f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -46,7 +46,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
diff --git a/.github/workflows/external-contributors.yml b/.github/workflows/external-contributors.yml
index 782d95d60269..1735a89a5446 100644
--- a/.github/workflows/external-contributors.yml
+++ b/.github/workflows/external-contributors.yml
@@ -20,7 +20,7 @@ jobs:
&& github.event.pull_request.author_association != 'OWNER'
&& endsWith(github.event.pull_request.user.login, '[bot]') == false
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v4
with:
diff --git a/.github/workflows/flaky-test-detector.yml b/.github/workflows/flaky-test-detector.yml
index 076fbf7dd02d..5103f1f43a2d 100644
--- a/.github/workflows/flaky-test-detector.yml
+++ b/.github/workflows/flaky-test-detector.yml
@@ -30,7 +30,7 @@ jobs:
if: ${{ github.base_ref != 'master' && github.ref != 'refs/heads/master' }}
steps:
- name: Check out current branch
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v4
with:
diff --git a/.github/workflows/gitflow-sync-develop.yml b/.github/workflows/gitflow-sync-develop.yml
index ed2755bd9440..96c69d952264 100644
--- a/.github/workflows/gitflow-sync-develop.yml
+++ b/.github/workflows/gitflow-sync-develop.yml
@@ -23,7 +23,7 @@ jobs:
contents: write
steps:
- name: git checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
# https://github.com/marketplace/actions/github-pull-request-action
- name: Create Pull Request
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2edb9fb09405..05c465036ce4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -19,11 +19,11 @@ jobs:
steps:
- name: Get auth token
id: token
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
+ uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
diff --git a/.prettierignore b/.prettierignore
index 3022df3c6af7..99c0d942024b 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,4 @@
packages/browser/test/loader.js
packages/replay-worker/examples/worker.min.js
dev-packages/browser-integration-tests/fixtures
+**/test.ts-snapshots/**
diff --git a/.prettierrc.json b/.prettierrc.json
deleted file mode 100644
index ba9a3dc2c246..000000000000
--- a/.prettierrc.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "arrowParens": "avoid",
- "printWidth": 120,
- "proseWrap": "always",
- "singleQuote": true,
- "trailingComma": "all"
-}
diff --git a/.size-limit.js b/.size-limit.js
index 3ea2bdf80703..e8e779c9439c 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -224,7 +224,7 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
- limit: '116 KB',
+ limit: '51 KB',
},
// Node SDK (ESM)
{
@@ -233,14 +233,14 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
- limit: '150 KB',
+ limit: '152 KB',
},
{
name: '@sentry/node - without tracing',
path: 'packages/node/build/esm/index.js',
import: createImport('initWithoutDefaultIntegrations', 'getDefaultIntegrationsWithoutPerformance'),
gzip: true,
- limit: '110 KB',
+ limit: '95 KB',
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
modifyWebpackConfig: function (config) {
const webpack = require('webpack');
@@ -263,7 +263,7 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
- limit: '135 KB',
+ limit: '107 KB',
},
];
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e6f8752691a..7a2eb8aa6e45 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,42 @@
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
+## 10.9.0
+
+### Important Changes
+
+- **feat(node): Update `httpIntegration` handling of incoming requests ([#17371](https://github.com/getsentry/sentry-javascript/pull/17371))**
+
+This version updates the handling of the Node SDK of incoming requests. Instead of relying on @opentelemetry/instrumentation-http, we now handle incoming request instrumentation internally, ensuring that we can optimize performance as much as possible and avoid interop problems.
+
+This change should not affect you, unless you're relying on very in-depth implementation details. Importantly, this also drops the `_experimentalConfig` option of the integration - this will no longer do anything.
+Finally, you can still pass `instrumentation.{requestHook,responseHook,applyCustomAttributesOnSpan}` options, but they are deprecated and will be removed in v11. Instead, you can use the new `incomingRequestSpanHook` configuration option if you want to adjust the incoming request span.
+
+### Other Changes
+
+- feat(browser): Add replay.feedback CDN bundle ([#17496](https://github.com/getsentry/sentry-javascript/pull/17496))
+- feat(browser): Export `sendFeedback` from CDN bundles ([#17495](https://github.com/getsentry/sentry-javascript/pull/17495))
+- fix(astro): Ensure span name from `beforeStartSpan` isn't overwritten ([#17500](https://github.com/getsentry/sentry-javascript/pull/17500))
+- fix(browser): Ensure source is set correctly when updating span name in-place in `beforeStartSpan` ([#17501](https://github.com/getsentry/sentry-javascript/pull/17501))
+- fix(core): Only set template attributes on logs if parameters exist ([#17480](https://github.com/getsentry/sentry-javascript/pull/17480))
+- fix(nextjs): Fix parameterization for root catchall routes ([#17489](https://github.com/getsentry/sentry-javascript/pull/17489))
+- fix(node-core): Shut down OTel TraceProvider when calling `Sentry.close()` ([#17499](https://github.com/getsentry/sentry-javascript/pull/17499))
+
+
+ Internal Changes
+
+- chore: Add `changelog` script back to package.json ([#17517](https://github.com/getsentry/sentry-javascript/pull/17517))
+- chore: Ensure prettier is run on all files ([#17497](https://github.com/getsentry/sentry-javascript/pull/17497))
+- chore: Ignore prettier commit for git blame ([#17498](https://github.com/getsentry/sentry-javascript/pull/17498))
+- chore: Remove experimental from Nuxt SDK package description ([#17483](https://github.com/getsentry/sentry-javascript/pull/17483))
+- ci: Capture overhead in node app ([#17420](https://github.com/getsentry/sentry-javascript/pull/17420))
+- ci: Ensure we fail on cancelled jobs ([#17506](https://github.com/getsentry/sentry-javascript/pull/17506))
+- ci(deps): bump actions/checkout from 4 to 5 ([#17505](https://github.com/getsentry/sentry-javascript/pull/17505))
+- ci(deps): bump actions/create-github-app-token from 2.0.6 to 2.1.1 ([#17504](https://github.com/getsentry/sentry-javascript/pull/17504))
+- test(aws): Improve reliability on CI ([#17502](https://github.com/getsentry/sentry-javascript/pull/17502))
+
+
+
## 10.8.0
### Important Changes
@@ -15,7 +51,6 @@
We will follow up with docs how to set up the SDK soon.
For now, If you're on SvelteKit version `2.31.0` or newer, you can easily opt into the new feature:
-
1. Enable [experimental tracing and instrumentation support](https://svelte.dev/docs/kit/observability) in `svelte.config.js`:
2. Move your `Sentry.init()` call from `src/hooks.server.(js|ts)` to the new `instrumentation.server.(js|ts)` file:
@@ -650,7 +685,6 @@ Work in this release was contributed by @0xbad0c0d3 and @alSergey. Thank you for
- **feat(nuxt): Add Cloudflare Nitro plugin ([#15597](https://github.com/getsentry/sentry-javascript/pull/15597))**
A Nitro plugin for `@sentry/nuxt` which initializes Sentry when deployed to Cloudflare (`cloudflare-pages` preset).
-
1. Remove the previous server config file: `sentry.server.config.ts`
2. Add a plugin in `server/plugins` (e.g. `server/plugins/sentry-cloudflare-setup.ts`)
3. Add this code in your plugin file
@@ -1215,7 +1249,6 @@ This PR adds trace propagation to `@sentry/react-router` by providing utilities
- **Logging Improvements**
Sentry is adding support for [structured logging](https://github.com/getsentry/sentry-javascript/discussions/15916). In this release we've made a variety of improvements to logging functionality in the Sentry SDKs.
-
- feat(node): Add server.address to nodejs logs ([#16006](https://github.com/getsentry/sentry-javascript/pull/16006))
- feat(core): Add sdk name and version to logs ([#16005](https://github.com/getsentry/sentry-javascript/pull/16005))
- feat(core): Add sentry origin attribute to console logs integration ([#15998](https://github.com/getsentry/sentry-javascript/pull/15998))
@@ -1264,7 +1297,6 @@ Work in this release was contributed by @Page- and @Fryuni. Thank you for your c
### Important Changes
- **feat: Add support for logs**
-
- feat(node): Add logging public APIs to Node SDKs ([#15764](https://github.com/getsentry/sentry-javascript/pull/15764))
- feat(core): Add support for `beforeSendLog` ([#15814](https://github.com/getsentry/sentry-javascript/pull/15814))
- feat(core): Add support for parameterizing logs ([#15812](https://github.com/getsentry/sentry-javascript/pull/15812))
@@ -1314,13 +1346,11 @@ Work in this release was contributed by @Page- and @Fryuni. Thank you for your c
```
The result will be an object with the following properties:
-
- `"no-client-active"`: There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
- `"sentry-unreachable"`: The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.
- `undefined`: The SDK is working as expected.
- **SDK Tracing Performance Improvements for Node SDKs**
-
- feat: Stop using `dropUndefinedKeys` ([#15796](https://github.com/getsentry/sentry-javascript/pull/15796))
- feat(node): Only add span listeners for instrumentation when used ([#15802](https://github.com/getsentry/sentry-javascript/pull/15802))
- ref: Avoid `dropUndefinedKeys` for `spanToJSON` calls ([#15792](https://github.com/getsentry/sentry-javascript/pull/15792))
diff --git a/dev-packages/browser-integration-tests/README.md b/dev-packages/browser-integration-tests/README.md
index c5c8ca28eb41..6d1f69cde973 100644
--- a/dev-packages/browser-integration-tests/README.md
+++ b/dev-packages/browser-integration-tests/README.md
@@ -95,7 +95,6 @@ occur while writing tests for Sentry Browser SDK.
Before running, a page for each test case is built under the case folder inside `dist`. If a page build is failed,
it's recommended to check:
-
- If both default `template.hbs` and `init.js` are defined for the test group.
- If a `subject.js` is defined for the test case.
- If either of `init.js` or `subject.js` contain non-browser code.
diff --git a/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts b/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
index 3d76a2b07b1a..4f9676602b05 100644
--- a/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
+++ b/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
@@ -26,16 +26,15 @@ sentryTest('allows to ignore mutations via `ignoreMutations` option', async ({ g
const requests = await requestsPromise;
// All transform mutatinos are ignored and not captured
- const transformMutations = requests.replayRecordingSnapshots.filter(
- item =>
- (item.data as mutationData)?.attributes?.some(
- attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
- ),
+ const transformMutations = requests.replayRecordingSnapshots.filter(item =>
+ (item.data as mutationData)?.attributes?.some(
+ attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
+ ),
);
// Should capture the final class mutation
- const classMutations = requests.replayRecordingSnapshots.filter(
- item => (item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
+ const classMutations = requests.replayRecordingSnapshots.filter(item =>
+ (item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
);
expect(transformMutations).toEqual([]);
diff --git a/dev-packages/browser-integration-tests/utils/helpers.ts b/dev-packages/browser-integration-tests/utils/helpers.ts
index 42657ab14731..b3f55b4550a0 100644
--- a/dev-packages/browser-integration-tests/utils/helpers.ts
+++ b/dev-packages/browser-integration-tests/utils/helpers.ts
@@ -142,13 +142,10 @@ export const countEnvelopes = async (
page.on('request', requestHandler);
- setTimeout(
- () => {
- page.off('request', requestHandler);
- resolve(reqCount);
- },
- options?.timeout || 1000,
- );
+ setTimeout(() => {
+ page.off('request', requestHandler);
+ resolve(reqCount);
+ }, options?.timeout || 1000);
});
if (options?.url) {
diff --git a/dev-packages/cloudflare-integration-tests/tsconfig.json b/dev-packages/cloudflare-integration-tests/tsconfig.json
index 38816b36116e..07f106daf370 100644
--- a/dev-packages/cloudflare-integration-tests/tsconfig.json
+++ b/dev-packages/cloudflare-integration-tests/tsconfig.json
@@ -7,6 +7,6 @@
// Although this seems wrong to include `DOM` here, it's necessary to make
// global fetch available in tests in lower Node versions.
"lib": ["ES2020"],
- "esModuleInterop": true,
+ "esModuleInterop": true
}
}
diff --git a/dev-packages/e2e-tests/README.md b/dev-packages/e2e-tests/README.md
index a1eb1b559b9c..2c793fa05df0 100644
--- a/dev-packages/e2e-tests/README.md
+++ b/dev-packages/e2e-tests/README.md
@@ -81,11 +81,11 @@ for it to work with both regular and prerelease versions:
"scripts": {
"test": "echo \"Hello world!\"",
"test:build": "pnpm install",
- "test:assert": "pnpm test"
+ "test:assert": "pnpm test",
},
"dependencies": {
- "@sentry/node": "latest || *"
- }
+ "@sentry/node": "latest || *",
+ },
}
```
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/angular.json b/dev-packages/e2e-tests/test-applications/angular-17/angular.json
index 387a7eefce16..e687f8228810 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/angular.json
+++ b/dev-packages/e2e-tests/test-applications/angular-17/angular.json
@@ -16,17 +16,10 @@
"outputPath": "dist/angular-17",
"index": "src/index.html",
"browser": "src/main.ts",
- "polyfills": [
- "zone.js"
- ],
+ "polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
@@ -74,18 +67,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "polyfills": [
- "zone.js",
- "zone.js/testing"
- ],
+ "polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
}
}
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
index 1e43d5c6c096..8349f666d11d 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
@@ -7,8 +7,8 @@ import { SampleComponent } from '../sample-component/sample-component.components
standalone: true,
imports: [TraceModule, SampleComponent],
template: `
-
-
+
+
`,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts
index 82c3ccb0140f..4dbc9dd59179 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts
@@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
-
- Welcome to Sentry's Angular 17 E2E test app
-
-
-
-`,
+
+ Welcome to Sentry's Angular 17 E2E test app
+
+
+
+ `,
})
export class HomeComponent {
throwError() {
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json b/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json
index f37b67ff0277..fd2d87ac26d9 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json
@@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
- "lib": [
- "ES2022",
- "dom"
- ]
+ "lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
diff --git a/dev-packages/e2e-tests/test-applications/angular-18/angular.json b/dev-packages/e2e-tests/test-applications/angular-18/angular.json
index cb3c0b70cec6..e24a6bf0e5f9 100644
--- a/dev-packages/e2e-tests/test-applications/angular-18/angular.json
+++ b/dev-packages/e2e-tests/test-applications/angular-18/angular.json
@@ -16,17 +16,10 @@
"outputPath": "dist/angular-18",
"index": "src/index.html",
"browser": "src/main.ts",
- "polyfills": [
- "zone.js"
- ],
+ "polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
@@ -74,18 +67,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "polyfills": [
- "zone.js",
- "zone.js/testing"
- ],
+ "polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
}
}
diff --git a/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts
index 9f36814d6c03..e70507b07030 100644
--- a/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts
@@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
-
- Welcome to Sentry's Angular 18 E2E test app
-
-
-
-`,
+
+ Welcome to Sentry's Angular 18 E2E test app
+
+
+
+ `,
})
export class HomeComponent {
throwError() {
diff --git a/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json b/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json
index f37b67ff0277..fd2d87ac26d9 100644
--- a/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json
@@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
- "lib": [
- "ES2022",
- "dom"
- ]
+ "lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
diff --git a/dev-packages/e2e-tests/test-applications/angular-19/angular.json b/dev-packages/e2e-tests/test-applications/angular-19/angular.json
index 446b28df1d25..355946a85d15 100644
--- a/dev-packages/e2e-tests/test-applications/angular-19/angular.json
+++ b/dev-packages/e2e-tests/test-applications/angular-19/angular.json
@@ -16,9 +16,7 @@
"outputPath": "dist/angular-19",
"index": "src/index.html",
"browser": "src/main.ts",
- "polyfills": [
- "zone.js"
- ],
+ "polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
{
@@ -26,9 +24,7 @@
"input": "public"
}
],
- "styles": [
- "src/styles.css"
- ],
+ "styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
@@ -73,10 +69,7 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "polyfills": [
- "zone.js",
- "zone.js/testing"
- ],
+ "polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"assets": [
{
@@ -84,9 +77,7 @@
"input": "public"
}
],
- "styles": [
- "src/styles.css"
- ],
+ "styles": ["src/styles.css"],
"scripts": []
}
}
diff --git a/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts
index a82e5b1acce6..76bd580ecaf6 100644
--- a/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts
@@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components
template: `
- `,
+ `,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
export class ComponentTrackingComponent implements OnInit, AfterViewInit {
diff --git a/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts
index fe70dabd687a..91a34a546fb6 100644
--- a/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts
@@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
-
- Welcome to Sentry's Angular 19 E2E test app
-
-
-
-`,
+
+ Welcome to Sentry's Angular 19 E2E test app
+
+
+
+ `,
})
export class HomeComponent {
throwError() {
diff --git a/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts
index a82e5b1acce6..76bd580ecaf6 100644
--- a/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts
@@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components
template: `
- `,
+ `,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
export class ComponentTrackingComponent implements OnInit, AfterViewInit {
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro
index c4e54b834656..c48489538774 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro
@@ -1,6 +1,6 @@
---
interface Props {
- title: string;
+ title: string;
}
const { title } = Astro.props;
@@ -8,32 +8,27 @@ const { title } = Astro.props;
-
-
-
-
-
-
- {title}
-
-
-
-
+
+
+
+
+
+
+ {title}
+
+
+
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro
index bb225c166241..9fe2bdab5c15 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro
@@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro';
export const prerender = false;
const params = Astro.params;
-
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro
index facd6f077a6e..492524e2a713 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro
@@ -1,11 +1,7 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
---
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro
index f025c76f8365..ecfb0641144e 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro
@@ -1,5 +1,5 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
export const prerender = false;
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro
index deaf37caad12..b31f3f724559 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro
@@ -3,34 +3,34 @@ import Layout from '../layouts/Layout.astro';
---
-
- Astro E2E Test App
-
-
+
+ Astro E2E Test App
+
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro
index 4ecb7466de70..fc42bcbae4f7 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro
@@ -1,5 +1,5 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
const a = {} as any;
console.log(a.foo.x);
@@ -7,7 +7,5 @@ export const prerender = false;
---
-
Page with SSR error
-
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro
index 58f5d80198d7..4531c20c05ad 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro
@@ -1,15 +1,11 @@
---
-import Layout from "../../layouts/Layout.astro"
+import Layout from '../../layouts/Layout.astro';
-export const prerender = false
+export const prerender = false;
---
+ This is a server page
-
- This is a server page
-
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro
index f71bf00c9adf..c0fd701d4a2a 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro
@@ -1,15 +1,11 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
export const prerender = true;
---
+ This is a static page
-
- This is a static page
-
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro
index e35bd3a34d97..8050e386a39f 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro
@@ -5,9 +5,8 @@ export const prerender = false;
const { userId } = Astro.params;
-const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`)
+const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`);
const data = await response.json();
-
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro
index 5a46ac891a24..f2b767c93351 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro
@@ -2,7 +2,6 @@
import Layout from '../../layouts/Layout.astro';
export const prerender = false;
-
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json b/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json
index 77da9dd00982..bcbf8b50906a 100644
--- a/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
-}
\ No newline at end of file
+}
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js
index 7bb40f0c60d4..865bb18ce84c 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js
+++ b/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js
@@ -5,5 +5,17 @@ Sentry.init({
environment: 'qa',
tracesSampleRate: 1.0,
tunnel: 'http://localhost:3031/', // proxy server
- integrations: [Sentry.browserTracingIntegration()],
+ integrations: [
+ Sentry.browserTracingIntegration({
+ beforeStartSpan: opts => {
+ if (opts.name.startsWith('/blog/')) {
+ return {
+ ...opts,
+ name: window.location.pathname,
+ };
+ }
+ return opts;
+ },
+ }),
+ ],
});
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro
index 09a539f14e64..5611579efaf1 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro
@@ -1,3 +1,5 @@
---
+
---
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro
index 6b7b9c70e869..6f862e767574 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro
@@ -4,206 +4,202 @@ import background from '../assets/background.svg';
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro
index e455c6106729..6105f48ffd35 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro
@@ -1,22 +1,22 @@
-
-
-
-
-
- Astro Basics
-
-
-
-
+
+
+
+
+
+ Astro Basics
+
+
+
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/blog/[slug].astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/blog/[slug].astro
new file mode 100644
index 000000000000..b776fa25c494
--- /dev/null
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/blog/[slug].astro
@@ -0,0 +1,11 @@
+---
+import Layout from '../../layouts/Layout.astro';
+
+export const prerender = false;
+
+const { slug } = Astro.params;
+---
+
+
+ Blog post: {slug}
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro
index bb225c166241..9fe2bdab5c15 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro
@@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro';
export const prerender = false;
const params = Astro.params;
-
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro
index facd6f077a6e..492524e2a713 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro
@@ -1,11 +1,7 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
---
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro
index f025c76f8365..ecfb0641144e 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro
@@ -1,5 +1,5 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
export const prerender = false;
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro
index 61bf20bfe31e..7032437764f8 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro
@@ -7,16 +7,17 @@ import Layout from '../layouts/Layout.astro';
---
-
- Astro E2E Test App
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro
index d0544ac4f32f..0e922af4667f 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro
@@ -4,13 +4,11 @@ import Layout from '../../layouts/Layout.astro';
export const prerender = true;
---
-
+
This page is static, except for the avatar which is loaded dynamically from the server
Fallback
-
-
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro
index 4ecb7466de70..fc42bcbae4f7 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro
@@ -1,5 +1,5 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
const a = {} as any;
console.log(a.foo.x);
@@ -7,7 +7,5 @@ export const prerender = false;
---
-
Page with SSR error
-
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro
index 58f5d80198d7..4531c20c05ad 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro
@@ -1,15 +1,11 @@
---
-import Layout from "../../layouts/Layout.astro"
+import Layout from '../../layouts/Layout.astro';
-export const prerender = false
+export const prerender = false;
---
+ This is a server page
-
- This is a server page
-
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro
index f71bf00c9adf..c0fd701d4a2a 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro
@@ -1,15 +1,11 @@
---
-import Layout from "../../layouts/Layout.astro";
+import Layout from '../../layouts/Layout.astro';
export const prerender = true;
---
+ This is a static page
-
- This is a static page
-
-
-
-
+
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro
index e35bd3a34d97..8050e386a39f 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro
+++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro
@@ -5,9 +5,8 @@ export const prerender = false;
const { userId } = Astro.params;
-const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`)
+const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`);
const data = await response.json();
-
---
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.dynamic.test.ts b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.dynamic.test.ts
index b7dda807c65c..9151c13907af 100644
--- a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.dynamic.test.ts
+++ b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.dynamic.test.ts
@@ -369,4 +369,18 @@ test.describe('parametrized vs static paths', () => {
request: { url: expect.stringContaining('/user-page/settings') },
});
});
+
+ test('allows for span name override via beforeStartSpan', async ({ page }) => {
+ const clientPageloadTxnPromise = waitForTransaction('astro-5', txnEvent => {
+ return txnEvent?.transaction?.startsWith('/blog/') ?? false;
+ });
+
+ await page.goto('/blog/my-post');
+
+ const clientPageloadTxn = await clientPageloadTxnPromise;
+ expect(clientPageloadTxn).toMatchObject({
+ transaction: '/blog/my-post',
+ transaction_info: { source: 'custom' },
+ });
+ });
});
diff --git a/dev-packages/e2e-tests/test-applications/aws-serverless/pull-sam-image.sh b/dev-packages/e2e-tests/test-applications/aws-serverless/pull-sam-image.sh
index 0c27c1eac24d..d6790c2c2c49 100755
--- a/dev-packages/e2e-tests/test-applications/aws-serverless/pull-sam-image.sh
+++ b/dev-packages/e2e-tests/test-applications/aws-serverless/pull-sam-image.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Script to pull the correct SAM docker image based on the NODE_VERSION environment variable.
+# Script to pull the correct Lambda docker image based on the NODE_VERSION environment variable.
set -e
@@ -9,7 +9,7 @@ if [[ -z "$NODE_VERSION" ]]; then
exit 1
fi
-echo "Pulling SAM Node $NODE_VERSION docker image..."
-docker pull "public.ecr.aws/sam/build-nodejs${NODE_VERSION}.x:latest"
+echo "Pulling Lambda Node $NODE_VERSION docker image..."
+docker pull "public.ecr.aws/lambda/nodejs:${NODE_VERSION}"
-echo "Successfully pulled SAM Node $NODE_VERSION docker image"
+echo "Successfully pulled Lambda Node $NODE_VERSION docker image"
diff --git a/dev-packages/e2e-tests/test-applications/aws-serverless/tests/lambda-fixtures.ts b/dev-packages/e2e-tests/test-applications/aws-serverless/tests/lambda-fixtures.ts
index 561086fcdb9d..d6f331c7e96b 100644
--- a/dev-packages/e2e-tests/test-applications/aws-serverless/tests/lambda-fixtures.ts
+++ b/dev-packages/e2e-tests/test-applications/aws-serverless/tests/lambda-fixtures.ts
@@ -27,7 +27,9 @@ export const test = base.extend<{ testEnvironment: LocalLambdaStack; lambdaClien
writeFileSync(SAM_TEMPLATE_FILE, JSON.stringify(template, null, 2));
const debugLog = tmp.fileSync({ prefix: 'sentry_aws_lambda_tests_sam_debug', postfix: '.log' });
- console.log(`[test_environment fixture] Writing SAM debug log to: ${debugLog.name}`);
+ if (!process.env.CI) {
+ console.log(`[test_environment fixture] Writing SAM debug log to: ${debugLog.name}`);
+ }
const args = [
'local',
@@ -39,16 +41,17 @@ export const test = base.extend<{ testEnvironment: LocalLambdaStack; lambdaClien
'EAGER',
'--docker-network',
DOCKER_NETWORK_NAME,
+ '--skip-pull-image',
];
if (process.env.NODE_VERSION) {
- args.push('--invoke-image', `public.ecr.aws/sam/build-nodejs${process.env.NODE_VERSION}.x:latest`);
+ args.push('--invoke-image', `public.ecr.aws/lambda/nodejs:${process.env.NODE_VERSION}`);
}
console.log(`[testEnvironment fixture] Running SAM with args: ${args.join(' ')}`);
const samProcess = spawn('sam', args, {
- stdio: ['ignore', debugLog.fd, debugLog.fd],
+ stdio: process.env.CI ? 'inherit' : ['ignore', debugLog.fd, debugLog.fd],
});
try {
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro
index bd6d5971ebf3..4924058df81b 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro
@@ -1,61 +1,61 @@
---
interface Props {
- title: string;
- body: string;
- href: string;
+ title: string;
+ body: string;
+ href: string;
}
const { href, title, body } = Astro.props;
---
-
-
- {title}
- →
-
-
- {body}
-
-
+
+
+ {title}
+ →
+
+
+ {body}
+
+
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro
index 7b552be19bca..121182ff669f 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro
@@ -1,6 +1,6 @@
---
interface Props {
- title: string;
+ title: string;
}
const { title } = Astro.props;
@@ -8,44 +8,39 @@ const { title } = Astro.props;
-
-
-
-
-
-
- {title}
-
-
-
-
+
+
+
+
+
+
+ {title}
+
+
+
+
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro
index fb6262872d0e..0c8795be01ce 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro
@@ -4,120 +4,120 @@ import Card from '../components/Card.astro';
---
-
-
- Welcome to Astro
-
- To get started, open the directory src/pages
in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above.
-
-
-
+
+
+ Welcome to Astro
+
+ To get started, open the directory src/pages
in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above.
+
+
+
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json
index bc019a7e2bfb..f536f706fa69 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json
@@ -1,8 +1,8 @@
{
- "extends": "../tsconfig.json",
- "compilerOptions": {
- "types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
- },
- "include": ["./**/*.ts", "../src/env.d.ts"],
- "exclude": []
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
+ },
+ "include": ["./**/*.ts", "../src/env.d.ts"],
+ "exclude": []
}
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json
index e2025cec5039..e5d6f2b66f33 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json
@@ -5,9 +5,7 @@
"moduleResolution": "Bundler",
"strict": true,
"skipLibCheck": true,
- "lib": [
- "ESNext"
- ],
+ "lib": ["ESNext"],
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
},
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts b/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts
index 4466287fbe5b..60ce2468ff28 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts
@@ -1,4 +1,4 @@
-import { defineWorkersProject } from '@cloudflare/vitest-pool-workers/config'
+import { defineWorkersProject } from '@cloudflare/vitest-pool-workers/config';
export default defineWorkersProject(() => {
return {
@@ -8,5 +8,5 @@ export default defineWorkersProject(() => {
workers: { wrangler: { configPath: './wrangler.toml' } },
},
},
- }
-})
+ };
+});
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc b/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc
deleted file mode 100644
index 5c7b5d3c7a75..000000000000
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "printWidth": 140,
- "singleQuote": true,
- "semi": true,
- "useTabs": true
-}
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts
index 54786fd221cb..ab438432a004 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts
@@ -14,99 +14,99 @@ import * as Sentry from '@sentry/cloudflare';
import { DurableObject } from 'cloudflare:workers';
class MyDurableObjectBase extends DurableObject {
- private throwOnExit = new WeakMap();
- async throwException(): Promise {
- throw new Error('Should be recorded in Sentry.');
- }
+ private throwOnExit = new WeakMap();
+ async throwException(): Promise {
+ throw new Error('Should be recorded in Sentry.');
+ }
- async fetch(request: Request) {
- const { pathname } = new URL(request.url);
- switch (pathname) {
- case '/throwException': {
- await this.throwException();
- break;
- }
- case '/ws':
- const webSocketPair = new WebSocketPair();
- const [client, server] = Object.values(webSocketPair);
- this.ctx.acceptWebSocket(server);
- return new Response(null, { status: 101, webSocket: client });
- }
- return new Response('DO is fine');
- }
+ async fetch(request: Request) {
+ const { pathname } = new URL(request.url);
+ switch (pathname) {
+ case '/throwException': {
+ await this.throwException();
+ break;
+ }
+ case '/ws':
+ const webSocketPair = new WebSocketPair();
+ const [client, server] = Object.values(webSocketPair);
+ this.ctx.acceptWebSocket(server);
+ return new Response(null, { status: 101, webSocket: client });
+ }
+ return new Response('DO is fine');
+ }
- webSocketMessage(ws: WebSocket, message: string | ArrayBuffer): void | Promise {
- if (message === 'throwException') {
- throw new Error('Should be recorded in Sentry: webSocketMessage');
- } else if (message === 'throwOnExit') {
- this.throwOnExit.set(ws, new Error('Should be recorded in Sentry: webSocketClose'));
- }
- }
+ webSocketMessage(ws: WebSocket, message: string | ArrayBuffer): void | Promise {
+ if (message === 'throwException') {
+ throw new Error('Should be recorded in Sentry: webSocketMessage');
+ } else if (message === 'throwOnExit') {
+ this.throwOnExit.set(ws, new Error('Should be recorded in Sentry: webSocketClose'));
+ }
+ }
- webSocketClose(ws: WebSocket): void | Promise {
- if (this.throwOnExit.has(ws)) {
- const error = this.throwOnExit.get(ws)!;
- this.throwOnExit.delete(ws);
- throw error;
- }
- }
+ webSocketClose(ws: WebSocket): void | Promise {
+ if (this.throwOnExit.has(ws)) {
+ const error = this.throwOnExit.get(ws)!;
+ this.throwOnExit.delete(ws);
+ throw error;
+ }
+ }
}
export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry(
- (env: Env) => ({
- dsn: env.E2E_TEST_DSN,
- environment: 'qa', // dynamic sampling bias to keep transactions
- tunnel: `http://localhost:3031/`, // proxy server
- tracesSampleRate: 1.0,
- sendDefaultPii: true,
- transportOptions: {
- // We are doing a lot of events at once in this test
- bufferSize: 1000,
- },
- instrumentPrototypeMethods: true,
- }),
- MyDurableObjectBase,
+ (env: Env) => ({
+ dsn: env.E2E_TEST_DSN,
+ environment: 'qa', // dynamic sampling bias to keep transactions
+ tunnel: `http://localhost:3031/`, // proxy server
+ tracesSampleRate: 1.0,
+ sendDefaultPii: true,
+ transportOptions: {
+ // We are doing a lot of events at once in this test
+ bufferSize: 1000,
+ },
+ instrumentPrototypeMethods: true,
+ }),
+ MyDurableObjectBase,
);
export default Sentry.withSentry(
- (env: Env) => ({
- dsn: env.E2E_TEST_DSN,
- environment: 'qa', // dynamic sampling bias to keep transactions
- tunnel: `http://localhost:3031/`, // proxy server
- tracesSampleRate: 1.0,
- sendDefaultPii: true,
- transportOptions: {
- // We are doing a lot of events at once in this test
- bufferSize: 1000,
- },
- }),
- {
- async fetch(request, env) {
- const url = new URL(request.url);
- switch (url.pathname) {
- case '/rpc/throwException':
- {
- const id = env.MY_DURABLE_OBJECT.idFromName('foo');
- const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub;
- try {
- await stub.throwException();
- } catch (e) {
- //We will catch this to be sure not to log inside withSentry
- return new Response(null, { status: 500 });
- }
- }
- break;
- case '/throwException':
- throw new Error('To be recorded in Sentry.');
- default:
- if (url.pathname.startsWith('/pass-to-object/')) {
- const id = env.MY_DURABLE_OBJECT.idFromName('foo');
- const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub;
- url.pathname = url.pathname.replace('/pass-to-object/', '');
- return stub.fetch(new Request(url, request));
- }
- }
- return new Response('Hello World!');
- },
- } satisfies ExportedHandler,
+ (env: Env) => ({
+ dsn: env.E2E_TEST_DSN,
+ environment: 'qa', // dynamic sampling bias to keep transactions
+ tunnel: `http://localhost:3031/`, // proxy server
+ tracesSampleRate: 1.0,
+ sendDefaultPii: true,
+ transportOptions: {
+ // We are doing a lot of events at once in this test
+ bufferSize: 1000,
+ },
+ }),
+ {
+ async fetch(request, env) {
+ const url = new URL(request.url);
+ switch (url.pathname) {
+ case '/rpc/throwException':
+ {
+ const id = env.MY_DURABLE_OBJECT.idFromName('foo');
+ const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub;
+ try {
+ await stub.throwException();
+ } catch (e) {
+ //We will catch this to be sure not to log inside withSentry
+ return new Response(null, { status: 500 });
+ }
+ }
+ break;
+ case '/throwException':
+ throw new Error('To be recorded in Sentry.');
+ default:
+ if (url.pathname.startsWith('/pass-to-object/')) {
+ const id = env.MY_DURABLE_OBJECT.idFromName('foo');
+ const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub;
+ url.pathname = url.pathname.replace('/pass-to-object/', '');
+ return stub.fetch(new Request(url, request));
+ }
+ }
+ return new Response('Hello World!');
+ },
+ } satisfies ExportedHandler,
);
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs b/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs
index 738ec64293b5..67c76b2f4aaf 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs
@@ -1,6 +1,6 @@
-import {startEventProxyServer} from '@sentry-internal/test-utils'
+import { startEventProxyServer } from '@sentry-internal/test-utils';
startEventProxyServer({
port: 3031,
proxyServerName: 'cloudflare-workers',
-})
+});
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts
index ac8f2e38952e..31cc02b8c5e8 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts
@@ -1,34 +1,34 @@
import { expect, test } from '@playwright/test';
import { waitForError } from '@sentry-internal/test-utils';
-import {WebSocket} from 'ws'
+import { WebSocket } from 'ws';
test('Index page', async ({ baseURL }) => {
const result = await fetch(baseURL!);
expect(result.status).toBe(200);
await expect(result.text()).resolves.toBe('Hello World!');
-})
+});
-test('worker\'s withSentry', async ({baseURL}) => {
- const eventWaiter = waitForError('cloudflare-workers', (event) => {
+test("worker's withSentry", async ({ baseURL }) => {
+ const eventWaiter = waitForError('cloudflare-workers', event => {
return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare';
});
const response = await fetch(`${baseURL}/throwException`);
expect(response.status).toBe(500);
const event = await eventWaiter;
expect(event.exception?.values?.[0]?.value).toBe('To be recorded in Sentry.');
-})
+});
-test('RPC method which throws an exception to be logged to sentry', async ({baseURL}) => {
- const eventWaiter = waitForError('cloudflare-workers', (event) => {
- return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject';
- });
- const response = await fetch(`${baseURL}/rpc/throwException`);
- expect(response.status).toBe(500);
- const event = await eventWaiter;
+test('RPC method which throws an exception to be logged to sentry', async ({ baseURL }) => {
+ const eventWaiter = waitForError('cloudflare-workers', event => {
+ return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject';
+ });
+ const response = await fetch(`${baseURL}/rpc/throwException`);
+ expect(response.status).toBe(500);
+ const event = await eventWaiter;
expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry.');
});
-test('Request processed by DurableObject\'s fetch is recorded', async ({baseURL}) => {
- const eventWaiter = waitForError('cloudflare-workers', (event) => {
+test("Request processed by DurableObject's fetch is recorded", async ({ baseURL }) => {
+ const eventWaiter = waitForError('cloudflare-workers', event => {
return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject';
});
const response = await fetch(`${baseURL}/pass-to-object/throwException`);
@@ -36,32 +36,32 @@ test('Request processed by DurableObject\'s fetch is recorded', async ({baseURL}
const event = await eventWaiter;
expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry.');
});
-test('Websocket.webSocketMessage', async ({baseURL}) => {
- const eventWaiter = waitForError('cloudflare-workers', (event) => {
+test('Websocket.webSocketMessage', async ({ baseURL }) => {
+ const eventWaiter = waitForError('cloudflare-workers', event => {
return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject';
});
const url = new URL('/pass-to-object/ws', baseURL);
url.protocol = url.protocol.replace('http', 'ws');
const socket = new WebSocket(url.toString());
socket.addEventListener('open', () => {
- socket.send('throwException')
+ socket.send('throwException');
});
const event = await eventWaiter;
socket.close();
expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry: webSocketMessage');
-})
+});
-test('Websocket.webSocketClose', async ({baseURL}) => {
- const eventWaiter = waitForError('cloudflare-workers', (event) => {
+test('Websocket.webSocketClose', async ({ baseURL }) => {
+ const eventWaiter = waitForError('cloudflare-workers', event => {
return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject';
});
const url = new URL('/pass-to-object/ws', baseURL);
url.protocol = url.protocol.replace('http', 'ws');
const socket = new WebSocket(url.toString());
socket.addEventListener('open', () => {
- socket.send('throwOnExit')
- socket.close()
+ socket.send('throwOnExit');
+ socket.close();
});
const event = await eventWaiter;
expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry: webSocketClose');
-})
+});
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json
index 978ecd87b7ce..9a3b10f6cdc8 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json
@@ -1,8 +1,8 @@
{
- "extends": "../tsconfig.json",
- "compilerOptions": {
- "types": ["@cloudflare/vitest-pool-workers"]
- },
- "include": ["./**/*.ts", "../worker-configuration.d.ts"],
- "exclude": []
+ "extends": "../tsconfig.json",
+ "compilerOptions": {
+ "types": ["@cloudflare/vitest-pool-workers"]
+ },
+ "include": ["./**/*.ts", "../worker-configuration.d.ts"],
+ "exclude": []
}
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json
index ca1f83e3bc15..f42019fb0915 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json
@@ -1,45 +1,43 @@
{
- "compilerOptions": {
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
+ "compilerOptions": {
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
- /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
- "target": "es2021",
- /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- "lib": ["es2021"],
- /* Specify what JSX code is generated. */
- "jsx": "react-jsx",
+ /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
+ "target": "es2021",
+ /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ "lib": ["es2021"],
+ /* Specify what JSX code is generated. */
+ "jsx": "react-jsx",
- /* Specify what module code is generated. */
- "module": "es2022",
- /* Specify how TypeScript looks up a file from a given module specifier. */
- "moduleResolution": "Bundler",
- /* Enable importing .json files */
- "resolveJsonModule": true,
+ /* Specify what module code is generated. */
+ "module": "es2022",
+ /* Specify how TypeScript looks up a file from a given module specifier. */
+ "moduleResolution": "Bundler",
+ /* Enable importing .json files */
+ "resolveJsonModule": true,
- /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
- "allowJs": true,
- /* Enable error reporting in type-checked JavaScript files. */
- "checkJs": false,
+ /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
+ "allowJs": true,
+ /* Enable error reporting in type-checked JavaScript files. */
+ "checkJs": false,
- /* Disable emitting files from a compilation. */
- "noEmit": true,
+ /* Disable emitting files from a compilation. */
+ "noEmit": true,
- /* Ensure that each file can be safely transpiled without relying on other imports. */
- "isolatedModules": true,
- /* Allow 'import x from y' when a module doesn't have a default export. */
- "allowSyntheticDefaultImports": true,
- /* Ensure that casing is correct in imports. */
- "forceConsistentCasingInFileNames": true,
+ /* Ensure that each file can be safely transpiled without relying on other imports. */
+ "isolatedModules": true,
+ /* Allow 'import x from y' when a module doesn't have a default export. */
+ "allowSyntheticDefaultImports": true,
+ /* Ensure that casing is correct in imports. */
+ "forceConsistentCasingInFileNames": true,
- /* Enable all strict type-checking options. */
- "strict": true,
+ /* Enable all strict type-checking options. */
+ "strict": true,
- /* Skip type checking all .d.ts files. */
- "skipLibCheck": true,
- "types": [
- "./worker-configuration.d.ts"
- ]
- },
- "exclude": ["test"],
- "include": ["worker-configuration.d.ts", "src/**/*.ts"]
+ /* Skip type checking all .d.ts files. */
+ "skipLibCheck": true,
+ "types": ["./worker-configuration.d.ts"]
+ },
+ "exclude": ["test"],
+ "include": ["worker-configuration.d.ts", "src/**/*.ts"]
}
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts
index 08a92a61d05d..1701ed9f621a 100644
--- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts
+++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts
@@ -3,5 +3,5 @@
interface Env {
E2E_TEST_DSN: '';
- MY_DURABLE_OBJECT: DurableObjectNamespace
+ MY_DURABLE_OBJECT: DurableObjectNamespace;
}
diff --git a/dev-packages/e2e-tests/test-applications/create-react-app/src/index.css b/dev-packages/e2e-tests/test-applications/create-react-app/src/index.css
index 7323ae85c542..25543f727ab8 100644
--- a/dev-packages/e2e-tests/test-applications/create-react-app/src/index.css
+++ b/dev-packages/e2e-tests/test-applications/create-react-app/src/index.css
@@ -1,7 +1,8 @@
body {
margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
- 'Droid Sans', 'Helvetica Neue', sans-serif;
+ font-family:
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
+ 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tests/server-transactions.test.ts b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tests/server-transactions.test.ts
index 36c51debbb98..d57c45545caf 100644
--- a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tests/server-transactions.test.ts
+++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tests/server-transactions.test.ts
@@ -81,8 +81,9 @@ test('Propagates trace when ErrorBoundary is triggered', async ({ page }) => {
const httpServerTraceId = httpServerTransaction.contexts?.trace?.trace_id;
const httpServerSpanId = httpServerTransaction.contexts?.trace?.span_id;
- const loaderSpanId = httpServerTransaction?.spans?.find(span => span.data && span.data['code.function'] === 'loader')
- ?.span_id;
+ const loaderSpanId = httpServerTransaction?.spans?.find(
+ span => span.data && span.data['code.function'] === 'loader',
+ )?.span_id;
const pageLoadTraceId = pageloadTransaction.contexts?.trace?.trace_id;
const pageLoadSpanId = pageloadTransaction.contexts?.trace?.span_id;
diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json
index 909c40f4d950..0c6c558ce578 100644
--- a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json
@@ -17,6 +17,6 @@
"~/*": ["./app/*"]
},
// Remix takes care of building everything in `remix build`.
- "noEmit": true,
- },
+ "noEmit": true
+ }
}
diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/server-transactions.test.ts b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/server-transactions.test.ts
index 69508ed67183..9c24209e3f10 100644
--- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/server-transactions.test.ts
+++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/server-transactions.test.ts
@@ -38,8 +38,9 @@ test('Sends two linked transactions (server & client) to Sentry', async ({ page
const httpServerTraceId = httpServerTransaction.contexts?.trace?.trace_id;
const httpServerSpanId = httpServerTransaction.contexts?.trace?.span_id;
- const loaderSpanId = httpServerTransaction?.spans?.find(span => span.data && span.data['code.function'] === 'loader')
- ?.span_id;
+ const loaderSpanId = httpServerTransaction?.spans?.find(
+ span => span.data && span.data['code.function'] === 'loader',
+ )?.span_id;
const pageLoadTraceId = pageloadTransaction.contexts?.trace?.trace_id;
const pageLoadSpanId = pageloadTransaction.contexts?.trace?.span_id;
diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/app/components/link.ts b/dev-packages/e2e-tests/test-applications/ember-classic/app/components/link.ts
index 1ba66df216fc..a57b5ea7b930 100644
--- a/dev-packages/e2e-tests/test-applications/ember-classic/app/components/link.ts
+++ b/dev-packages/e2e-tests/test-applications/ember-classic/app/components/link.ts
@@ -14,7 +14,7 @@ interface Args {
Since glimmer components are, as of now, not instrumented, this leads to different test results.
*/
export default class LinkComponent extends Component {
- @service public declare router: RouterService;
+ @service declare public router: RouterService;
public get href(): string {
return this.router.urlFor(this.args.route);
diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/slow-loading-route.ts b/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/slow-loading-route.ts
index 01a523ea0985..f10bfa01ce23 100644
--- a/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/slow-loading-route.ts
+++ b/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/slow-loading-route.ts
@@ -4,7 +4,7 @@ import type RouterService from '@ember/routing/router-service';
import { inject as service } from '@ember/service';
export default class SlowLoadingRouteController extends Controller {
- @service public declare router: RouterService;
+ @service declare public router: RouterService;
@action
public back(): void {
diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/tracing.ts b/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/tracing.ts
index 72c0d635702e..3d24969c4b46 100644
--- a/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/tracing.ts
+++ b/dev-packages/e2e-tests/test-applications/ember-classic/app/controllers/tracing.ts
@@ -4,7 +4,7 @@ import type RouterService from '@ember/routing/router-service';
import { inject as service } from '@ember/service';
export default class TracingController extends Controller {
- @service public declare router: RouterService;
+ @service declare public router: RouterService;
@action
public navigateToSlowRoute(): void {
diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json
index 55663457968a..f87679196bb3 100644
--- a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json
+++ b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json
@@ -10,12 +10,8 @@
// work with TypeScript.
"baseUrl": ".",
"paths": {
- "ember-classic/*": [
- "app/*"
- ],
- "*": [
- "types/*"
- ],
+ "ember-classic/*": ["app/*"],
+ "*": ["types/*"]
}
},
"include": ["app/**/*", "types/**/*"],
diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json
index 78f134a16dca..66b5e5703e83 100644
--- a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json
@@ -7,5 +7,5 @@
{
"path": "./tsconfig.app.json"
}
- ],
+ ]
}
diff --git a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json
index bdfe8763ecc2..35f5e9b7f3c3 100644
--- a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json
+++ b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json
@@ -10,12 +10,8 @@
// work with TypeScript.
"baseUrl": ".",
"paths": {
- "ember-embroider/*": [
- "app/*"
- ],
- "*": [
- "types/*"
- ],
+ "ember-embroider/*": ["app/*"],
+ "*": ["types/*"]
}
},
"include": ["app/**/*", "types/**/*"],
diff --git a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json
index 78f134a16dca..66b5e5703e83 100644
--- a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json
@@ -7,5 +7,5 @@
{
"path": "./tsconfig.app.json"
}
- ],
+ ]
}
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx
index c2410fe87b26..acf5b4782b20 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx
@@ -18,15 +18,17 @@ async function handleRequest(
],
});
- const body = Sentry.injectTraceMetaTags(await renderToReadableStream(
-
-
- ,
- {
- nonce,
- signal: request.signal,
- },
- ));
+ const body = Sentry.injectTraceMetaTags(
+ await renderToReadableStream(
+
+
+ ,
+ {
+ nonce,
+ signal: request.signal,
+ },
+ ),
+ );
responseHeaders.set('Content-Type', 'text/html');
responseHeaders.set('Content-Security-Policy', header);
@@ -50,5 +52,4 @@ export const handleError: HandleErrorFunction = (error, { request }) => {
}
};
-
export default Sentry.wrapSentryHandleRequest(handleRequest);
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx
index e38f97bd3f06..afa85270e045 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/react-router/cloudflare';
-import {type LoaderFunctionArgs} from '@shopify/remix-oxygen';
+import { type LoaderFunctionArgs } from '@shopify/remix-oxygen';
import {
Outlet,
isRouteErrorResponse,
@@ -9,20 +9,16 @@ import {
Scripts,
ScrollRestoration,
} from 'react-router';
-import {FOOTER_QUERY, HEADER_QUERY} from '~/lib/fragments';
+import { FOOTER_QUERY, HEADER_QUERY } from '~/lib/fragments';
-import {useNonce} from '@shopify/hydrogen';
+import { useNonce } from '@shopify/hydrogen';
export type RootLoader = typeof loader;
/**
* This is important to avoid re-fetching root queries on sub-navigations
*/
-export const shouldRevalidate: ShouldRevalidateFunction = ({
- formMethod,
- currentUrl,
- nextUrl,
-}) => {
+export const shouldRevalidate: ShouldRevalidateFunction = ({ formMethod, currentUrl, nextUrl }) => {
// revalidate when a mutation is performed e.g add to cart, login...
if (formMethod && formMethod !== 'GET') return true;
@@ -67,7 +63,7 @@ export async function loader(args: LoaderFunctionArgs) {
// Await the critical data required to render initial state of the page
const criticalData = await loadCriticalData(args);
- const {env} = args.context;
+ const { env } = args.context;
return {
...deferredData,
@@ -92,8 +88,8 @@ export async function loader(args: LoaderFunctionArgs) {
* Load data necessary for rendering content above the fold. This is the critical data
* needed to render the page. If it's unavailable, the whole page should 400 or 500 error.
*/
-async function loadCriticalData({context}: LoaderFunctionArgs) {
- const {storefront} = context;
+async function loadCriticalData({ context }: LoaderFunctionArgs) {
+ const { storefront } = context;
const [header] = await Promise.all([
storefront.query(HEADER_QUERY, {
@@ -105,7 +101,7 @@ async function loadCriticalData({context}: LoaderFunctionArgs) {
// Add other queries here, so that they are loaded in parallel
]);
- return {header};
+ return { header };
}
/**
@@ -113,8 +109,8 @@ async function loadCriticalData({context}: LoaderFunctionArgs) {
* fetched after the initial page load. If it's unavailable, the page should still 200.
* Make sure to not throw any errors here, as it will cause the page to 500.
*/
-function loadDeferredData({context}: LoaderFunctionArgs) {
- const {storefront, customerAccount, cart} = context;
+function loadDeferredData({ context }: LoaderFunctionArgs) {
+ const { storefront, customerAccount, cart } = context;
// defer the footer query (below the fold)
const footer = storefront
@@ -136,7 +132,7 @@ function loadDeferredData({context}: LoaderFunctionArgs) {
};
}
-export function Layout({children}: {children?: React.ReactNode}) {
+export function Layout({ children }: { children?: React.ReactNode }) {
const nonce = useNonce();
return (
@@ -160,11 +156,7 @@ export default function App() {
return ;
}
-export function ErrorBoundary({
- error
-}: {
- error: unknown
-}) {
+export function ErrorBoundary({ error }: { error: unknown }) {
let errorMessage = 'Unknown error';
let errorStatus = 500;
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts
index f717956345d0..e5b3547b37f3 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts
@@ -1,6 +1,6 @@
-import {flatRoutes} from '@react-router/fs-routes';
-import {type RouteConfig} from '@react-router/dev/routes';
-import {hydrogenRoutes} from '@shopify/hydrogen';
+import { flatRoutes } from '@react-router/fs-routes';
+import { type RouteConfig } from '@react-router/dev/routes';
+import { hydrogenRoutes } from '@shopify/hydrogen';
export default hydrogenRoutes([
...(await flatRoutes()),
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs
index 044e50e1b86c..adab0b0b3d32 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs
@@ -1,6 +1,6 @@
-import * as Sentry from "@sentry/react-router";
+import * as Sentry from '@sentry/react-router';
Sentry.init({
- dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
+ dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
// Adds request headers and IP for users, for more info visit:
// https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#sendDefaultPii
sendDefaultPii: true,
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json
index 75b4f35ae507..503ad2758767 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json
@@ -13,7 +13,6 @@
"test:build": "pnpm install && npx playwright install && pnpm build",
"test:assert": "pnpm playwright test"
},
- "prettier": "@shopify/prettier-config",
"dependencies": {
"@sentry/cloudflare": "latest || *",
"@sentry/react-router": "latest || *",
@@ -38,7 +37,6 @@
"@shopify/hydrogen-codegen": "^0.3.3",
"@shopify/mini-oxygen": "3.2.1",
"@shopify/oxygen-workers-types": "^4.1.6",
- "@shopify/prettier-config": "^1.1.2",
"@tailwindcss/vite": "4.0.0-alpha.17",
"@total-typescript/ts-reset": "^0.4.2",
"@types/eslint": "^8.4.10",
@@ -47,7 +45,6 @@
"esbuild": "0.25.0",
"eslint": "^9.18.0",
"eslint-plugin-hydrogen": "0.12.2",
- "prettier": "^3.4.2",
"typescript": "^5.2.2",
"vite": "^6.2.4",
"vite-tsconfig-paths": "^4.3.1"
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts
index 5c25f23ad404..09071780e0e5 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts
@@ -1,4 +1,4 @@
-import type {Config} from '@react-router/dev/config';
+import type { Config } from '@react-router/dev/config';
import { sentryOnBuildEnd } from '@sentry/react-router';
export default {
@@ -8,7 +8,6 @@ export default {
buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => {
// ...
// Call this at the end of the hook
- (await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest }));
- }
+ await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest });
+ },
} satisfies Config;
-
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts
index 07638d967cf7..d28fab88135f 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts
@@ -39,7 +39,7 @@ export default {
request: request as any,
context: executionContext,
},
- async () => {
+ async () => {
try {
/**
* Open a cache instance in the worker and a custom session instance.
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json
index af4a50ee6f5a..0d4c4dc2e4de 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json
@@ -1,11 +1,5 @@
{
- "include": [
- "server.ts",
- "./app/**/*.d.ts",
- "./app/**/*.ts",
- "./app/**/*.tsx",
- ".react-router/types/**/*"
- ],
+ "include": ["server.ts", "./app/**/*.d.ts", "./app/**/*.ts", "./app/**/*.tsx", ".react-router/types/**/*"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"isolatedModules": true,
diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts
index fbce6e7c8463..fbff797eddfa 100644
--- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts
+++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts
@@ -6,15 +6,14 @@ import tsconfigPaths from 'vite-tsconfig-paths';
import { sentryReactRouter, type SentryReactRouterBuildOptions } from '@sentry/react-router';
const sentryConfig: SentryReactRouterBuildOptions = {
- org: "example-org",
- project: "example-project",
+ org: 'example-org',
+ project: 'example-project',
// An auth token is required for uploading source maps;
// store it in an environment variable to keep it secure.
authToken: process.env.SENTRY_AUTH_TOKEN,
// ...
};
-
export default defineConfig(config => ({
plugins: [
hydrogen(),
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-11/package.json b/dev-packages/e2e-tests/test-applications/nestjs-11/package.json
index ed1784ccee8e..50ef252865be 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-11/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-11/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -36,9 +35,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json
index bbf2946f4c33..aa17d718c01d 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -36,9 +35,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json
index c6d95a42113f..f11ff272b072 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -38,9 +37,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json
index a91e7db8abf4..ba3535042af8 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -36,9 +35,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json
index b1153afee84b..8ed28dd45430 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -35,9 +34,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json b/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json
index f36c427e2e8a..9553a3b4e115 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -36,9 +35,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json b/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json
index 797d8abe0ead..15a7fce7f4b2 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json
@@ -16,6 +16,6 @@
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
- "noFallthroughCasesInSwitch": false,
+ "noFallthroughCasesInSwitch": false
}
}
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json
index 21fcd6e3fdf6..d6a501596b35 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -38,9 +37,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json
index 41722a6adc32..1b8fd5b69c7f 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -34,9 +33,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json
index 08e02f4077e6..e17b1d3a5cbd 100644
--- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json
+++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json
@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "nest build",
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
@@ -34,9 +33,6 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-prettier": "^5.0.0",
- "prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx
index 080e09fe6df2..16ef0482d53b 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx
@@ -1,7 +1,3 @@
export default function StaticPage() {
- return (
-
- Static page
-
- );
+ return Static page
;
}
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx
index 080e09fe6df2..16ef0482d53b 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx
@@ -1,7 +1,3 @@
export default function StaticPage() {
- return (
-
- Static page
-
- );
+ return Static page
;
}
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx
index 828e92baf62a..d28a147eb88d 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx
@@ -54,7 +54,7 @@ async function runAITest() {
tools: {
getWeather: {
parameters: z.object({ location: z.string() }),
- execute: async (args) => {
+ execute: async args => {
return `Weather in ${args.location}: Sunny, 72°F`;
},
},
@@ -85,12 +85,9 @@ async function runAITest() {
}
export default async function Page() {
- const results = await Sentry.startSpan(
- { op: 'function', name: 'ai-test' },
- async () => {
- return await runAITest();
- }
- );
+ const results = await Sentry.startSpan({ op: 'function', name: 'ai-test' }, async () => {
+ return await runAITest();
+ });
return (
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx
index 080e09fe6df2..16ef0482d53b 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx
@@ -1,7 +1,3 @@
export default function StaticPage() {
- return (
-
- Static page
-
- );
+ return
Static page
;
}
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx
index c67513e0e4fd..f2e096164d04 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx
@@ -1,10 +1,6 @@
import * as Sentry from '@sentry/nextjs';
-export default async function Page({
- searchParams,
-}: {
- searchParams: any;
-}) {
+export default async function Page({ searchParams }: { searchParams: any }) {
// We need to dynamically check for this because Next.js made the API async for Next.js 15 and we use this test in canary tests
const normalizedSearchParams = await searchParams;
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts
index 947e8bb7f819..270c7244ad17 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts
+++ b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts
@@ -10,7 +10,5 @@ Sentry.init({
// We are doing a lot of events at once in this test
bufferSize: 1000,
},
- integrations: [
- Sentry.vercelAIIntegration(),
- ],
+ integrations: [Sentry.vercelAIIntegration()],
});
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json b/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json
index cd1697890ced..f8c9e58f06d1 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json
+++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json
@@ -36,7 +36,6 @@
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"postcss": "^8.4.39",
- "prettier": "^3.3.2",
"typescript": "^5.5.3",
"zod": "^3.24.2"
},
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx
index 912ad3606a61..20c175015b03 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx
@@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs';
import NextError from 'next/error';
import { useEffect } from 'react';
-export default function GlobalError({
- error,
-}: {
- error: Error & { digest?: string };
-}) {
+export default function GlobalError({ error }: { error: Error & { digest?: string } }) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json b/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json
index 905062ded60c..246178da2b5e 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json
@@ -29,14 +29,6 @@
"~/*": ["./src/*"]
}
},
- "include": [
- ".eslintrc.cjs",
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx",
- "**/*.cjs",
- "**/*.js",
- ".next/types/**/*.ts"
- ],
+ "include": [".eslintrc.cjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json b/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json
index e9a7ae6a232d..467d47c69c68 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json
+++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json
@@ -40,8 +40,6 @@
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"postcss": "^8.4.39",
- "prettier": "^3.3.2",
- "prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.5.3"
},
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx
index 912ad3606a61..20c175015b03 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx
@@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs';
import NextError from 'next/error';
import { useEffect } from 'react';
-export default function GlobalError({
- error,
-}: {
- error: Error & { digest?: string };
-}) {
+export default function GlobalError({ error }: { error: Error & { digest?: string } }) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json b/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json
index 905062ded60c..246178da2b5e 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json
+++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json
@@ -29,14 +29,6 @@
"~/*": ["./src/*"]
}
},
- "include": [
- ".eslintrc.cjs",
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx",
- "**/*.cjs",
- "**/*.js",
- ".next/types/**/*.ts"
- ],
+ "include": [".eslintrc.cjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx
index 912ad3606a61..20c175015b03 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx
@@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs';
import NextError from 'next/error';
import { useEffect } from 'react';
-export default function GlobalError({
- error,
-}: {
- error: Error & { digest?: string };
-}) {
+export default function GlobalError({ error }: { error: Error & { digest?: string } }) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx
index 080e09fe6df2..16ef0482d53b 100644
--- a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx
+++ b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx
@@ -1,7 +1,3 @@
export default function StaticPage() {
- return (
-
- Static page
-
- );
+ return
Static page
;
}
diff --git a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts
index 6a4283a9caa9..12c2a55166f9 100644
--- a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts
+++ b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts
@@ -117,9 +117,7 @@ test('Should record a transaction for route with parameters', async ({ request }
});
});
-// This fails https://github.com/getsentry/sentry-javascript/pull/12587#issuecomment-2181019422
-// Skipping this for now so we don't block releases
-test.skip('Should record spans from http instrumentation', async ({ request }) => {
+test('Should record spans from http instrumentation', async ({ request }) => {
const transactionEventPromise = waitForTransaction('node-express-esm-preload', transactionEvent => {
return transactionEvent.contexts?.trace?.data?.['http.target'] === '/http-req';
});
diff --git a/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts b/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts
index 2b810615039a..56b4f51d228d 100644
--- a/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts
+++ b/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts
@@ -43,11 +43,11 @@ test('Should record caught exceptions with local variable', async ({ baseURL })
test('To not crash app from withMonitor', async ({ baseURL }) => {
const doRequest = async (id: number) => {
- const response = await fetch(`${baseURL}/crash-in-with-monitor/${id}`)
+ const response = await fetch(`${baseURL}/crash-in-with-monitor/${id}`);
return response.json();
- }
- const [response1, response2] = await Promise.all([doRequest(1), doRequest(2)])
- expect(response1.message).toBe('This is an exception withMonitor: 1')
- expect(response2.message).toBe('This is an exception withMonitor: 2')
- expect(response1.pid).toBe(response2.pid) //Just to double-check, TBS
+ };
+ const [response1, response2] = await Promise.all([doRequest(1), doRequest(2)]);
+ expect(response1.message).toBe('This is an exception withMonitor: 1');
+ expect(response2.message).toBe('This is an exception withMonitor: 2');
+ expect(response1.pid).toBe(response2.pid); //Just to double-check, TBS
});
diff --git a/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts b/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts
index 23c3d2fa5974..c3b4a642375a 100644
--- a/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts
+++ b/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts
@@ -1,6 +1,5 @@
import * as Sentry from '@sentry/node';
-
Sentry.init({
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue
index 23283a522546..17a9e263bd72 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue
@@ -13,5 +13,4 @@
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue
index 92ea714ae489..b686436bee17 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue
@@ -4,13 +4,13 @@ import { defineProps } from 'vue';
const props = defineProps({
errorText: {
type: String,
- required: true
+ required: true,
},
id: {
type: String,
- required: true
- }
-})
+ required: true,
+ },
+});
const triggerError = () => {
throw new Error(props.errorText);
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue
index 5e1a14931f84..6911dff7c2ee 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue
@@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue';
-
-
+
+
-
-
-
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue
index 74513c5697f3..a3741b5111d0 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue
@@ -1,3 +1,3 @@
-Hello!
+ Hello!
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue
index 23283a522546..17a9e263bd72 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue
@@ -13,5 +13,4 @@
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue
index 92ea714ae489..b686436bee17 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue
@@ -4,13 +4,13 @@ import { defineProps } from 'vue';
const props = defineProps({
errorText: {
type: String,
- required: true
+ required: true,
},
id: {
type: String,
- required: true
- }
-})
+ required: true,
+ },
+});
const triggerError = () => {
throw new Error(props.errorText);
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json b/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json
index 92e21b103eeb..77a0459542be 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json
@@ -31,7 +31,7 @@
"ofetch": "1.4.0",
"@vercel/nft": "0.29.4"
}
-},
+ },
"volta": {
"extends": "../../package.json"
}
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue
index d244ef773140..2bc7f00c866b 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue
@@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue';
-
-
+
+
-
-
-
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue
index 74513c5697f3..a3741b5111d0 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue
@@ -1,3 +1,3 @@
-Hello!
+ Hello!
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue
index 23283a522546..17a9e263bd72 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue
@@ -13,5 +13,4 @@
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue
index 92ea714ae489..b686436bee17 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue
@@ -4,13 +4,13 @@ import { defineProps } from 'vue';
const props = defineProps({
errorText: {
type: String,
- required: true
+ required: true,
},
id: {
type: String,
- required: true
- }
-})
+ required: true,
+ },
+});
const triggerError = () => {
throw new Error(props.errorText);
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue
index 5e1a14931f84..6911dff7c2ee 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue
@@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue';
-
-
+
+
-
-
-
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue
index 74513c5697f3..a3741b5111d0 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue
@@ -1,3 +1,3 @@
-Hello!
+ Hello!
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue
index 23283a522546..17a9e263bd72 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue
@@ -13,5 +13,4 @@
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue
index 92ea714ae489..b686436bee17 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue
@@ -4,13 +4,13 @@ import { defineProps } from 'vue';
const props = defineProps({
errorText: {
type: String,
- required: true
+ required: true,
},
id: {
type: String,
- required: true
- }
-})
+ required: true,
+ },
+});
const triggerError = () => {
throw new Error(props.errorText);
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue
index ea353639a3f4..649917c16f83 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue
@@ -3,14 +3,14 @@ import ErrorButton from '../components/ErrorButton.vue';
const catchErr = () => {
console.log('Additional functionality in NuxtErrorBoundary');
-}
+};
-
-
+
+
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue
index 74513c5697f3..a3741b5111d0 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue
@@ -1,3 +1,3 @@
-Hello!
+ Hello!
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue
index 92ea714ae489..b686436bee17 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue
@@ -4,13 +4,13 @@ import { defineProps } from 'vue';
const props = defineProps({
errorText: {
type: String,
- required: true
+ required: true,
},
id: {
type: String,
- required: true
- }
-})
+ required: true,
+ },
+});
const triggerError = () => {
throw new Error(props.errorText);
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue
index 9ec99d1e7471..97f8abf00fb9 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue
@@ -3,14 +3,14 @@ import ErrorButton from '../components/ErrorButton.vue';
const catchErr = () => {
console.log('Additional functionality in NuxtErrorBoundary');
-}
+};
-
-
+
+
-
+
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue
index 74513c5697f3..a3741b5111d0 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue
@@ -1,3 +1,3 @@
-Hello!
+ Hello!
diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue
index 3d210cf459de..07464aa28ca3 100644
--- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue
+++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue
@@ -1,24 +1,24 @@
@@ -26,7 +26,7 @@ function clearCart() {
-
+
@@ -40,26 +40,18 @@ function clearCart() {
-
{{ item.name }} ({{ item.amount }})
-
+
-
+
-
-