-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12451 from getsentry/prepare-release/8.9.0
meta(changelog): Update Changelog for 8.9.0
- Loading branch information
Showing
161 changed files
with
3,722 additions
and
1,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/browser-integration-tests/suites/integrations/globalHandlers/fetchStackTrace/subject.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fetch('http://localhost:123/fake/endpoint/that/will/fail'); |
13 changes: 13 additions & 0 deletions
13
...ages/browser-integration-tests/suites/integrations/globalHandlers/fetchStackTrace/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
import type { Event } from '@sentry/types'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers'; | ||
|
||
sentryTest('should create errors with stack traces for failing fetch calls', async ({ getLocalTestPath, page }) => { | ||
const url = await getLocalTestPath({ testDir: __dirname }); | ||
|
||
const envelopes = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url, timeout: 10000 }); | ||
const errorEvent = envelopes.find(event => !event.type)!; | ||
expect(errorEvent?.exception?.values?.[0].stacktrace?.frames?.length).toBeGreaterThan(0); | ||
}); |
7 changes: 7 additions & 0 deletions
7
dev-packages/browser-integration-tests/suites/integrations/globalHandlers/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [ | ||
Sentry.browserTracingIntegration({ | ||
idleTimeout: 1000, | ||
enableLongTask: false, | ||
enableInp: true, | ||
instrumentPageLoad: false, | ||
instrumentNavigation: false, | ||
}), | ||
], | ||
tracesSampleRate: 1, | ||
}); | ||
|
||
const client = Sentry.getClient(); | ||
|
||
// Force page load transaction name to a testable value | ||
Sentry.startBrowserTracingPageLoadSpan(client, { | ||
name: 'test-url', | ||
attributes: { | ||
[Sentry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
}, | ||
}); |
18 changes: 18 additions & 0 deletions
18
dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/subject.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const blockUI = (delay = 70) => e => { | ||
const startTime = Date.now(); | ||
|
||
function getElasped() { | ||
const time = Date.now(); | ||
return time - startTime; | ||
} | ||
|
||
while (getElasped() < delay) { | ||
// | ||
} | ||
|
||
e.target.classList.add('clicked'); | ||
}; | ||
|
||
document.querySelector('[data-test-id=not-so-slow-button]').addEventListener('click', blockUI(300)); | ||
document.querySelector('[data-test-id=slow-button]').addEventListener('click', blockUI(450)); | ||
document.querySelector('[data-test-id=normal-button]').addEventListener('click', blockUI()); |
12 changes: 12 additions & 0 deletions
12
...ckages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp-late/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<div>Rendered Before Long Task</div> | ||
<button data-test-id="slow-button" data-sentry-element="SlowButton">Slow</button> | ||
<button data-test-id="not-so-slow-button" data-sentry-element="NotSoSlowButton">Not so slow</button> | ||
<button data-test-id="normal-button" data-sentry-element="NormalButton">Click Me</button> | ||
</body> | ||
</html> |
Oops, something went wrong.