Commit 6154b37
ref(core)!: Migrate to SENTRY_SEGMENT_NAME_SOURCE (#23368)
Besides removing SEMANTIC_ATTRIBUTE_SENTRY_SOURCE and using
SENTRY_SEGMENT_NAME_SOURCE instead, this PR also:
* Sets name source only on segment spans (per the [Sentry segment name
source
convention](<https://develop.sentry.dev/sdk/telemetry/attributes/#sentrysegmentnamesource>))
— e.g. updateName, HTTP server spans, and tRPC when it is the segment
root
* Removes envelope-time backfill from sentry.source →
sentry.segment.name.source in captureSpan
CI note: This PR alone is expected to fail CI. It will stay blocked
until
[#23367](<#23367>)
is merged into it — that split is intentional to keep the core changes
easier to review.
Fixes #22259
---------
Co-authored-by: Cursor Grok 4.6 <cursoragent@cursor.com>1 parent 1dca402 commit 6154b37
360 files changed
Lines changed: 1421 additions & 1514 deletions
File tree
- dev-packages
- browser-integration-tests/suites
- public-api
- beforeSendTransaction
- startSpan
- basic
- streamed
- tracing
- browserTracingIntegration
- pageload-streamed
- pageload-update-txn-name
- pageload-updateSpanName
- pageload
- reportPageLoaded-streamed
- default
- finalTimeout
- reportPageLoaded
- default
- finalTimeout
- dsc-txn-name-update
- envelope-header-transaction-name
- interactions/spans
- metrics
- web-vitals-inp-before-send-span
- web-vitals-inp-late
- web-vitals-inp-parametrized-late
- web-vitals-inp-parametrized
- web-vitals-inp
- bundler-plugin-integration-tests/fixtures
- esbuild
- rolldown
- rollup3
- rollup4
- vite4
- vite7
- vite8
- webpack5
- cloudflare-integration-tests/suites
- public-api/startSpan-streamed
- tracing
- dsc-url-source
- scheduled
- workflow
- e2e-tests/test-applications
- angular-17/tests
- angular-18/tests
- angular-19/tests
- angular-20/tests
- angular-21/tests
- angular-22/tests
- astro-4/tests
- astro-5/tests
- astro-6-cf-workers/tests
- astro-6/tests
- astro-7/tests
- aws-serverless-layer/tests
- aws-serverless/tests
- cloudflare-mcp/tests
- create-remix-app-express-vite-dev/tests
- create-remix-app-express/tests
- create-remix-app-v2-non-vite/tests
- create-remix-app-v2/tests
- default-browser/tests
- deno-streamed/tests
- effect-3-browser/tests
- effect-4-browser/tests
- ember-classic/tests
- ember-embroider/tests
- ember-strict-resolver/tests
- hono-4/tests
- nestjs-11/tests
- nestjs-8/tests
- nestjs-basic/tests
- nestjs-distributed-tracing/tests
- nestjs-fastify/tests
- nestjs-with-submodules-decorator/tests
- nestjs-with-submodules/tests
- nextjs-14/tests
- nextjs-15-basepath/tests
- nextjs-15-intl/tests
- nextjs-15/tests
- nextjs-16-bun/tests
- nextjs-16-cf-workers/tests
- nextjs-16-streaming/tests
- nextjs-16-trailing-slash/tests
- nextjs-16/tests
- nextjs-app-dir/tests
- nextjs-orpc/tests
- nextjs-pages-dir/tests
- node-express-esm-loader/tests
- node-express-streaming/tests
- node-express-v5/tests
- node-express/tests
- node-fastify-3/tests
- node-fastify-4/tests
- node-fastify-5/tests
- node-firebase/tests
- node-hapi/tests
- node-koa/tests
- nuxt-3-dynamic-import/tests
- nuxt-3-min/tests
- nuxt-3-top-level-import/tests
- nuxt-3/tests
- nuxt-4/tests
- nuxt-5/tests
- react-17/tests
- react-create-browser-router/tests
- react-create-hash-router/tests
- react-create-memory-router/tests
- react-router-5/tests
- react-router-6-descendant-routes/tests
- react-router-6-use-routes/tests
- react-router-6/tests
- react-router-7-cross-usage/tests
- react-router-7-framework-instrumentation/tests/performance
- react-router-7-framework-spa/tests/performance
- react-router-7-framework/tests/performance
- react-router-7-lazy-routes/tests
- react-router-7-spa-streaming/tests
- react-router-7-spa/tests
- react-router-8-cross-usage/tests
- react-router-8-framework/tests/performance
- react-router-8-spa/tests
- remix-hydrogen/tests
- solid-tanstack-router/tests
- solidstart-2/tests
- solidstart-dynamic-import/tests
- solidstart-spa/tests
- solidstart-top-level-import/tests
- solidstart/tests
- sveltekit-2-kit-tracing/tests
- sveltekit-2-svelte-5/tests
- sveltekit-2/tests
- sveltekit-3/tests
- tanstack-router/tests
- tanstackstart-react-cloudflare/tests
- tanstackstart-react/tests
- tsx-express/tests
- vue-3/tests
- vue-tanstack-router/tests
- node-integration-tests/suites
- express/tracing/updateName
- public-api/startSpan
- basic-usage-streamed
- basic-usage
- updateName-method-streamed
- updateName-method
- updateSpanName-function-streamed
- updateSpanName-function
- tracing
- dsc-txn-name-update
- envelope-header
- transaction-route
- transaction-url
- httpIntegration-streamed
- httpIntegration
- docs/migration
- packages
- angular
- src
- test
- astro
- src
- client
- server
- test/server
- aws-serverless/src
- browser-utils/test/performance
- browser
- src
- tracing
- test/tracing
- bun
- src
- integrations
- test/integrations
- cloudflare
- src
- instrumentations/worker
- test
- instrumentations/worker
- core
- src
- integrations
- http
- mcp-server
- tracing
- spans
- types
- utils
- test/lib
- integrations
- http
- mcp-server
- tracing
- spans
- utils
- deno
- src
- test
- elysia
- src
- test
- ember
- src/utils
- tests
- google-cloud-serverless
- src
- gcpfunction
- test/gcpfunction
- hono
- nextjs
- src
- client/routing
- common
- utils
- edge
- server
- test
- common
- edge
- performance
- server
- node
- src
- integrations
- http
- node-fetch
- test
- integrations
- integration
- nuxt
- src/runtime/hooks
- test/runtime/hooks
- opentelemetry/test
- integration
- react-router
- src
- client
- server
- test
- client
- server
- react
- src
- reactrouter-compat-utils
- test
- reactrouter-compat-utils
- remix
- src
- client
- cloudflare
- server
- integrations
- test/server
- replay-internal/src
- server-utils
- src
- integrations
- firebase
- graphql
- redis
- utils
- test
- ai/lib/tracing
- integrations/redis
- solidstart
- src/server
- test
- client
- server
- solid
- src
- test
- sveltekit
- src
- client
- server-common
- server
- worker
- test
- client
- server-common
- tanstackstart-react/src/server
- vercel-edge/src
- vue
- src
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 258 | + | |
263 | 259 | | |
264 | 260 | | |
265 | 261 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 156 | | |
162 | 157 | | |
163 | 158 | | |
| |||
223 | 218 | | |
224 | 219 | | |
225 | 220 | | |
226 | | - | |
| 221 | + | |
227 | 222 | | |
228 | 223 | | |
229 | 224 | | |
| |||
248 | 243 | | |
249 | 244 | | |
250 | 245 | | |
251 | | - | |
| 246 | + | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
| |||
dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/navigation/test.ts
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 164 | + | |
169 | 165 | | |
170 | 166 | | |
171 | 167 | | |
| |||
0 commit comments