Skip to content

Commit 7151a17

Browse files
authored
fix: Remove by accident exported convention (#24542)
1 parent eaeccd9 commit 7151a17

17 files changed

Lines changed: 1 addition & 17 deletions

File tree

‎MIGRATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ Attribute availability remains runtime-dependent. For example, browser and Worke
872872

873873
Span attributes now use the shared `@sentry/conventions` package under the hood.
874874
The deprecated `semanticAttributes` re-export was removed. Import span attribute constants from `@sentry/core` directly.
875-
`SEMANTIC_ATTRIBUTE_SENTRY_SOURCE` (`sentry.source`) was removed. Use `SENTRY_SEGMENT_NAME_SOURCE` (`sentry.segment.name.source`) instead.
875+
`SEMANTIC_ATTRIBUTE_SENTRY_SOURCE` (`sentry.source`) was removed. Use the `sentry.segment.name.source` attribute instead. The SDK does not export a constant for it, import `SENTRY_SEGMENT_NAME_SOURCE` from `@sentry/conventions/attributes` or use the string.
876876
`sentry.segment.name.source` is only set on the root span. Setting it on a child span is a no-op: `setAttribute` ignores it, and a value passed in a child span's initial attributes is dropped when the span is linked to its parent.
877877

878878
### Span operation (`op`) changes

‎packages/astro/src/index.server.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ export {
119119
SEMANTIC_ATTRIBUTE_SENTRY_OP,
120120
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
121121
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
122-
SENTRY_SEGMENT_NAME_SOURCE,
123122
setContext,
124123
setConversationId,
125124
setCurrentClient,

‎packages/aws-serverless/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export {
9595
parameterize,
9696
SEMANTIC_ATTRIBUTE_SENTRY_OP,
9797
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
98-
SENTRY_SEGMENT_NAME_SOURCE,
9998
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
10099
dataloaderIntegration,
101100
expressIntegration,

‎packages/browser/src/exports.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export {
8181
SEMANTIC_ATTRIBUTE_SENTRY_OP,
8282
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
8383
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
84-
SENTRY_SEGMENT_NAME_SOURCE,
8584
} from '@sentry/core';
8685

8786
export { WINDOW } from './helpers';

‎packages/bun/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ export {
116116
parameterize,
117117
SEMANTIC_ATTRIBUTE_SENTRY_OP,
118118
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
119-
SENTRY_SEGMENT_NAME_SOURCE,
120119
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
121120
dataloaderIntegration,
122121
expressIntegration,

‎packages/cloudflare/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export {
8888
consoleIntegration,
8989
SEMANTIC_ATTRIBUTE_SENTRY_OP,
9090
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
91-
SENTRY_SEGMENT_NAME_SOURCE,
9291
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
9392
spanToStaticSpanJSON,
9493
spanToJSON,

‎packages/core/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export type { OfflineStore, OfflineTransportOptions } from './transports/offline
1010
export type { IntegrationIndex } from './integration';
1111
export * from './tracing';
1212
export * from './semanticAttributes';
13-
export { SENTRY_SEGMENT_NAME_SOURCE } from '@sentry/conventions/attributes';
1413
export * from './tracing/spans/spanNames';
1514
export type { RawAttributes } from './attributes';
1615
export { createEventEnvelope, createSessionEnvelope } from './envelope';

‎packages/deno/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export {
8383
zodErrorsIntegration,
8484
SEMANTIC_ATTRIBUTE_SENTRY_OP,
8585
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
86-
SENTRY_SEGMENT_NAME_SOURCE,
8786
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8887
startSession,
8988
captureSession,

‎packages/elysia/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export {
9595
parameterize,
9696
SEMANTIC_ATTRIBUTE_SENTRY_OP,
9797
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
98-
SENTRY_SEGMENT_NAME_SOURCE,
9998
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
10099
dataloaderIntegration,
101100
expressIntegration,

‎packages/google-cloud-serverless/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export {
9696
parameterize,
9797
SEMANTIC_ATTRIBUTE_SENTRY_OP,
9898
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
99-
SENTRY_SEGMENT_NAME_SOURCE,
10099
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
101100
dataloaderIntegration,
102101
expressIntegration,

0 commit comments

Comments
 (0)