-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
meta(changelog): Update changelog for 10.10.0 #17530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e647ba1
fix(node): Add `origin` for OpenAI spans & test auto instrumentation …
mydea 64e486d
feat(feedback): Add more labels so people can configure Highlight and…
ryan953 47d213b
Merge pull request #17521 from getsentry/master
github-actions[bot] 3c048c3
feat(browser): Add support for `propagateTraceparent` SDK option (#17…
Lms24 9a37660
feat(nextjs): Use compiler hook for uploading turbopack sourcemaps (#…
chargome 9e70a5a
feat(core): Add tool calls attributes for Anthropic AI (#17478)
RulaKhaled 22c7722
meta(changelog): Update changelog for 10.10.0
chargome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
11 changes: 11 additions & 0 deletions
11
...kages/browser-integration-tests/suites/tracing/request/fetch-propagateTraceparent/init.js
This file contains hidden or 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,11 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration()], | ||
tracePropagationTargets: ['http://sentry-test-site.example'], | ||
tracesSampleRate: 1, | ||
propagateTraceparent: true, | ||
}); |
5 changes: 5 additions & 0 deletions
5
...es/browser-integration-tests/suites/tracing/request/fetch-propagateTraceparent/subject.js
This file contains hidden or 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,5 @@ | ||
fetch('http://sentry-test-site.example/0').then( | ||
fetch('http://sentry-test-site.example/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( | ||
fetch('http://sentry-test-site.example/2'), | ||
), | ||
); |
60 changes: 60 additions & 0 deletions
60
...kages/browser-integration-tests/suites/tracing/request/fetch-propagateTraceparent/test.ts
This file contains hidden or 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,60 @@ | ||
import { expect } from '@playwright/test'; | ||
import { extractTraceparentData } from '@sentry/core'; | ||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { shouldSkipTracingTest } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
'attaches traceparent header to fetch requests if `propagateTraceparent` is true', | ||
async ({ getLocalTestUrl, page }) => { | ||
if (shouldSkipTracingTest()) { | ||
sentryTest.skip(); | ||
} | ||
|
||
await page.route('http://sentry-test-site.example/*', route => route.fulfill({ body: 'ok' })); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
|
||
const requests = ( | ||
await Promise.all([ | ||
page.goto(url), | ||
Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), | ||
]) | ||
)[1]; | ||
|
||
expect(requests).toHaveLength(3); | ||
|
||
const request1 = requests[0]; | ||
const requestHeaders1 = request1.headers(); | ||
const traceparentData1 = extractTraceparentData(requestHeaders1['sentry-trace']); | ||
expect(traceparentData1).toMatchObject({ | ||
traceId: expect.stringMatching(/^([a-f0-9]{32})$/), | ||
parentSpanId: expect.stringMatching(/^([a-f0-9]{16})$/), | ||
parentSampled: true, | ||
}); | ||
|
||
expect(requestHeaders1).toMatchObject({ | ||
'sentry-trace': `${traceparentData1?.traceId}-${traceparentData1?.parentSpanId}-1`, | ||
baggage: expect.stringContaining(`sentry-trace_id=${traceparentData1?.traceId}`), | ||
traceparent: `00-${traceparentData1?.traceId}-${traceparentData1?.parentSpanId}-01`, | ||
}); | ||
|
||
const request2 = requests[1]; | ||
const requestHeaders2 = request2.headers(); | ||
const traceparentData2 = extractTraceparentData(requestHeaders2['sentry-trace']); | ||
expect(requestHeaders2).toMatchObject({ | ||
'sentry-trace': `${traceparentData2?.traceId}-${traceparentData2?.parentSpanId}-1`, | ||
baggage: expect.stringContaining(`sentry-trace_id=${traceparentData2?.traceId}`), | ||
traceparent: `00-${traceparentData2?.traceId}-${traceparentData2?.parentSpanId}-01`, | ||
'x-test-header': 'existing-header', | ||
}); | ||
|
||
const request3 = requests[2]; | ||
const requestHeaders3 = request3.headers(); | ||
const traceparentData3 = extractTraceparentData(requestHeaders3['sentry-trace']); | ||
expect(requestHeaders3).toMatchObject({ | ||
'sentry-trace': `${traceparentData3?.traceId}-${traceparentData3?.parentSpanId}-1`, | ||
baggage: expect.stringContaining(`sentry-trace_id=${traceparentData3?.traceId}`), | ||
traceparent: `00-${traceparentData3?.traceId}-${traceparentData3?.parentSpanId}-01`, | ||
}); | ||
}, | ||
); |
11 changes: 11 additions & 0 deletions
11
...gration-tests/suites/tracing/request/fetch-tracing-unsampled-propagateTraceparent/init.js
This file contains hidden or 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,11 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration()], | ||
tracePropagationTargets: ['http://sentry-test-site.example'], | ||
tracesSampleRate: 0, | ||
propagateTraceparent: true, | ||
}); |
1 change: 1 addition & 0 deletions
1
...tion-tests/suites/tracing/request/fetch-tracing-unsampled-propagateTraceparent/subject.js
This file contains hidden or 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://sentry-test-site.example/0'); |
32 changes: 32 additions & 0 deletions
32
...gration-tests/suites/tracing/request/fetch-tracing-unsampled-propagateTraceparent/test.ts
This file contains hidden or 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,32 @@ | ||
import { expect } from '@playwright/test'; | ||
import { extractTraceparentData } from '@sentry/core'; | ||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { shouldSkipTracingTest } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
'attaches traceparent header to unsampled fetch requests if `propagateTraceparent` is true', | ||
async ({ getLocalTestUrl, page }) => { | ||
if (shouldSkipTracingTest()) { | ||
sentryTest.skip(); | ||
} | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
|
||
const [, request] = await Promise.all([page.goto(url), page.waitForRequest('http://sentry-test-site.example/0')]); | ||
|
||
const requestHeaders = request.headers(); | ||
|
||
const traceparentData = extractTraceparentData(requestHeaders['sentry-trace']); | ||
expect(traceparentData).toMatchObject({ | ||
traceId: expect.stringMatching(/^([a-f0-9]{32})$/), | ||
parentSpanId: expect.stringMatching(/^([a-f0-9]{16})$/), | ||
parentSampled: false, | ||
}); | ||
|
||
expect(requestHeaders).toMatchObject({ | ||
'sentry-trace': `${traceparentData?.traceId}-${traceparentData?.parentSpanId}-0`, | ||
traceparent: `00-${traceparentData?.traceId}-${traceparentData?.parentSpanId}-00`, | ||
baggage: expect.stringContaining(`sentry-trace_id=${traceparentData?.traceId}`), | ||
}); | ||
}, | ||
); |
11 changes: 11 additions & 0 deletions
11
...sts/suites/tracing/request/fetch-tracing-without-performance-propagateTraceparent/init.js
This file contains hidden or 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,11 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration()], | ||
tracePropagationTargets: ['http://sentry-test-site.example'], | ||
// no tracesSampleRate defined means TWP mode | ||
propagateTraceparent: true, | ||
}); |
1 change: 1 addition & 0 deletions
1
.../suites/tracing/request/fetch-tracing-without-performance-propagateTraceparent/subject.js
This file contains hidden or 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://sentry-test-site.example/0').then(); |
32 changes: 32 additions & 0 deletions
32
...sts/suites/tracing/request/fetch-tracing-without-performance-propagateTraceparent/test.ts
This file contains hidden or 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,32 @@ | ||
import { expect } from '@playwright/test'; | ||
import { extractTraceparentData } from '@sentry/core'; | ||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { shouldSkipTracingTest } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
'attaches traceparent header to tracing without performance (TWP) fetch requests, if `propagateTraceparent` is true', | ||
async ({ getLocalTestUrl, page }) => { | ||
if (shouldSkipTracingTest()) { | ||
sentryTest.skip(); | ||
} | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
|
||
const [, request] = await Promise.all([page.goto(url), page.waitForRequest('http://sentry-test-site.example/0')]); | ||
|
||
const requestHeaders = request.headers(); | ||
|
||
const traceparentData = extractTraceparentData(requestHeaders['sentry-trace']); | ||
expect(traceparentData).toMatchObject({ | ||
traceId: expect.stringMatching(/^([a-f0-9]{32})$/), | ||
parentSpanId: expect.stringMatching(/^([a-f0-9]{16})$/), | ||
parentSampled: undefined, | ||
}); | ||
|
||
expect(requestHeaders).toMatchObject({ | ||
'sentry-trace': `${traceparentData?.traceId}-${traceparentData?.parentSpanId}`, | ||
baggage: expect.stringContaining(`sentry-trace_id=${traceparentData?.traceId}`), | ||
traceparent: `00-${traceparentData?.traceId}-${traceparentData?.parentSpanId}-00`, | ||
}); | ||
}, | ||
); |
11 changes: 11 additions & 0 deletions
11
...ests/suites/tracing/request/fetch-with-custom-sentry-headers-propagateTraceparent/init.js
This file contains hidden or 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,11 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration()], | ||
tracePropagationTargets: ['http://sentry-test-site.example'], | ||
tracesSampleRate: 1, | ||
propagateTraceparent: true, | ||
}); |
3 changes: 3 additions & 0 deletions
3
...s/suites/tracing/request/fetch-with-custom-sentry-headers-propagateTraceparent/subject.js
This file contains hidden or 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 @@ | ||
fetch('http://sentry-test-site.example/api/test/', { | ||
headers: { 'sentry-trace': 'abc-123-1', baggage: 'sentry-trace_id=abc', traceparent: '00-abc-123-01' }, | ||
}); |
26 changes: 26 additions & 0 deletions
26
...ests/suites/tracing/request/fetch-with-custom-sentry-headers-propagateTraceparent/test.ts
This file contains hidden or 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,26 @@ | ||
import { expect } from '@playwright/test'; | ||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { shouldSkipTracingTest } from '../../../../utils/helpers'; | ||
|
||
sentryTest( | ||
"instrumentation doesn't override manually added traceparent header, if `propagateTraceparent` is true", | ||
async ({ getLocalTestUrl, page }) => { | ||
if (shouldSkipTracingTest()) { | ||
sentryTest.skip(); | ||
} | ||
|
||
const requestPromise = page.waitForRequest('http://sentry-test-site.example/api/test/'); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
|
||
await page.goto(url); | ||
|
||
const request = await requestPromise; | ||
|
||
const headers = await request.allHeaders(); | ||
|
||
expect(headers['sentry-trace']).toBe('abc-123-1'); | ||
expect(headers.baggage).toBe('sentry-trace_id=abc'); | ||
expect(headers.traceparent).toBe('00-abc-123-01'); | ||
}, | ||
); |
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
...ackages/browser-integration-tests/suites/tracing/request/xhr-propagateTraceparent/init.js
This file contains hidden or 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,11 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration()], | ||
tracePropagationTargets: ['http://sentry-test-site.example'], | ||
tracesSampleRate: 1, | ||
propagateTraceparent: true, | ||
}); |
12 changes: 12 additions & 0 deletions
12
...ages/browser-integration-tests/suites/tracing/request/xhr-propagateTraceparent/subject.js
This file contains hidden or 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 @@ | ||
const xhr_1 = new XMLHttpRequest(); | ||
xhr_1.open('GET', 'http://sentry-test-site.example/0'); | ||
xhr_1.send(); | ||
|
||
const xhr_2 = new XMLHttpRequest(); | ||
xhr_2.open('GET', 'http://sentry-test-site.example/1'); | ||
xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); | ||
xhr_2.send(); | ||
|
||
const xhr_3 = new XMLHttpRequest(); | ||
xhr_3.open('GET', 'http://sentry-test-site.example/2'); | ||
xhr_3.send(); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.