-
-
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 #10131 from getsentry/prepare-release/7.93.0
meta: Update CHANGELOG for 7.93.0
- Loading branch information
Showing
276 changed files
with
4,966 additions
and
1,703 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
3 changes: 3 additions & 0 deletions
3
.../browser-integration-tests/suites/public-api/captureException/eventBreadcrumbs/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,3 @@ | ||
Sentry.captureMessage('a'); | ||
|
||
Sentry.captureException(new Error('test_simple_breadcrumb_error')); |
23 changes: 23 additions & 0 deletions
23
...ges/browser-integration-tests/suites/public-api/captureException/eventBreadcrumbs/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,23 @@ | ||
import { expect } from '@playwright/test'; | ||
import type { Event } from '@sentry/types'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
'should capture recorded transactions as breadcrumbs for the following event sent', | ||
async ({ getLocalTestPath, page }) => { | ||
const url = await getLocalTestPath({ testDir: __dirname }); | ||
|
||
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 2, { url }); | ||
|
||
const errorEvent = events.find(event => event.exception?.values?.[0].value === 'test_simple_breadcrumb_error')!; | ||
|
||
expect(errorEvent.breadcrumbs).toHaveLength(1); | ||
expect(errorEvent.breadcrumbs?.[0]).toMatchObject({ | ||
category: 'sentry.event', | ||
event_id: expect.any(String), | ||
level: expect.any(String), | ||
}); | ||
}, | ||
); |
8 changes: 8 additions & 0 deletions
8
...er-integration-tests/suites/public-api/captureException/transactionBreadcrumbs/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,8 @@ | ||
Sentry.captureEvent({ | ||
event_id: 'aa3ff046696b4bc6b609ce6d28fde9e2', | ||
message: 'someMessage', | ||
transaction: 'wat', | ||
type: 'transaction', | ||
}); | ||
|
||
Sentry.captureException(new Error('test_simple_breadcrumb_error')); |
22 changes: 22 additions & 0 deletions
22
...owser-integration-tests/suites/public-api/captureException/transactionBreadcrumbs/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,22 @@ | ||
import { expect } from '@playwright/test'; | ||
import type { Event } from '@sentry/types'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
'should capture recorded transactions as breadcrumbs for the following event sent', | ||
async ({ getLocalTestPath, page }) => { | ||
const url = await getLocalTestPath({ testDir: __dirname }); | ||
|
||
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 2, { url }); | ||
|
||
const errorEvent = events.find(event => event.exception?.values?.[0].value === 'test_simple_breadcrumb_error')!; | ||
|
||
expect(errorEvent.breadcrumbs).toHaveLength(1); | ||
expect(errorEvent.breadcrumbs?.[0]).toMatchObject({ | ||
category: 'sentry.transaction', | ||
message: expect.any(String), | ||
}); | ||
}, | ||
); |
6 changes: 6 additions & 0 deletions
6
...owser-integration-tests/suites/public-api/captureMessage/parameterized_message/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,6 @@ | ||
import { parameterize } from '@sentry/utils'; | ||
|
||
const x = 'first'; | ||
const y = 'second'; | ||
|
||
Sentry.captureMessage(parameterize`This is a log statement with ${x} and ${y} params`); |
22 changes: 22 additions & 0 deletions
22
.../browser-integration-tests/suites/public-api/captureMessage/parameterized_message/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,22 @@ | ||
import { expect } from '@playwright/test'; | ||
import type { Event } from '@sentry/types'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers'; | ||
|
||
sentryTest('should capture a parameterized representation of the message', async ({ getLocalTestPath, page }) => { | ||
const bundle = process.env.PW_BUNDLE; | ||
|
||
if (bundle && bundle.startsWith('bundle_')) { | ||
sentryTest.skip(); | ||
} | ||
|
||
const url = await getLocalTestPath({ testDir: __dirname }); | ||
|
||
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url); | ||
|
||
expect(eventData.logentry).toStrictEqual({ | ||
message: 'This is a log statement with %s and %s params', | ||
params: ['first', 'second'], | ||
}); | ||
}); |
Oops, something went wrong.