Skip to content

Commit dd31fdb

Browse files
committed
feat: Export semantic attribute keys from SDK packages (#10637)
Add exports for our semantic attributes keys from the SDK packages so that users don't have to install `@sentry/core` explicitly.
1 parent c9f5846 commit dd31fdb

File tree

10 files changed

+49
-0
lines changed

10 files changed

+49
-0
lines changed

packages/astro/src/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ export {
9393
continueTrace,
9494
cron,
9595
parameterize,
96+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
97+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
98+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
99+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
96100
} from '@sentry/node';
97101

98102
// We can still leave this for the carrier init and type exports

packages/browser/src/exports.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ export {
7676
parameterize,
7777
} from '@sentry/core';
7878

79+
export {
80+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
81+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
82+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
83+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
84+
} from '@sentry/core';
85+
7986
export { WINDOW } from './helpers';
8087
export { BrowserClient } from './client';
8188
export { makeFetchTransport, makeXHRTransport } from './transports';

packages/bun/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ export {
117117
onUncaughtExceptionIntegration,
118118
onUnhandledRejectionIntegration,
119119
spotlightIntegration,
120+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
121+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
122+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
123+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
120124
} from '@sentry/node';
121125

122126
export { BunClient } from './client';

packages/deno/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ export {
8585
linkedErrorsIntegration,
8686
functionToStringIntegration,
8787
requestDataIntegration,
88+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
89+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
90+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
91+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8892
} from '@sentry/core';
93+
8994
export type { SpanStatusType } from '@sentry/core';
9095

9196
export { DenoClient } from './client';

packages/node-experimental/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ export {
9898
functionToStringIntegration,
9999
inboundFiltersIntegration,
100100
linkedErrorsIntegration,
101+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
102+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
103+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
104+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
101105
} from '@sentry/node';
102106

103107
export type {

packages/node/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,16 @@ export {
9090
linkedErrorsIntegration,
9191
requestDataIntegration,
9292
} from '@sentry/core';
93+
94+
export {
95+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
96+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
97+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
98+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
99+
} from '@sentry/core';
100+
93101
export type { SpanStatusType } from '@sentry/core';
102+
94103
export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
95104

96105
export { NodeClient } from './client';

packages/remix/src/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export {
104104
runWithAsyncContext,
105105
// eslint-disable-next-line deprecation/deprecation
106106
enableAnrDetection,
107+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
108+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
109+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
110+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
107111
} from '@sentry/node';
108112

109113
// Keeping the `*` exports for backwards compatibility and types

packages/serverless/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,8 @@ export {
107107
httpIntegration,
108108
nativeNodeFetchintegration,
109109
spotlightIntegration,
110+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
111+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
112+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
113+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
110114
} from '@sentry/node';

packages/sveltekit/src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ export {
9999
runWithAsyncContext,
100100
// eslint-disable-next-line deprecation/deprecation
101101
enableAnrDetection,
102+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
103+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
104+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
105+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
102106
} from '@sentry/node';
103107

104108
// We can still leave this for the carrier init and type exports

packages/vercel-edge/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export {
8686
inboundFiltersIntegration,
8787
linkedErrorsIntegration,
8888
requestDataIntegration,
89+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
90+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
91+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
92+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8993
} from '@sentry/core';
9094
export type { SpanStatusType } from '@sentry/core';
9195

0 commit comments

Comments
 (0)