Skip to content

Commit ef37a80

Browse files
authored
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 33a6232 commit ef37a80

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
@@ -69,6 +69,10 @@ export {
6969
continueTrace,
7070
cron,
7171
parameterize,
72+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
73+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
74+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
75+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
7276
} from '@sentry/node';
7377

7478
// 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
@@ -69,6 +69,13 @@ export {
6969
parameterize,
7070
} from '@sentry/core';
7171

72+
export {
73+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
74+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
75+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
76+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
77+
} from '@sentry/core';
78+
7279
export { WINDOW } from './helpers';
7380
export { BrowserClient } from './client';
7481
export { makeFetchTransport, makeXHRTransport } from './transports';

packages/bun/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export {
101101
onUncaughtExceptionIntegration,
102102
onUnhandledRejectionIntegration,
103103
spotlightIntegration,
104+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
105+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
106+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
107+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
104108
} from '@sentry/node';
105109

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

packages/deno/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ export {
7373
linkedErrorsIntegration,
7474
functionToStringIntegration,
7575
requestDataIntegration,
76+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
77+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
78+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
79+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
7680
} from '@sentry/core';
81+
7782
export type { SpanStatusType } from '@sentry/core';
7883

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

packages/node-experimental/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export {
8484
functionToStringIntegration,
8585
inboundFiltersIntegration,
8686
linkedErrorsIntegration,
87+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
88+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
89+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
90+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8791
} from '@sentry/node';
8892

8993
export type {

packages/node/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,16 @@ export {
7676
linkedErrorsIntegration,
7777
requestDataIntegration,
7878
} from '@sentry/core';
79+
80+
export {
81+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
82+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
83+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
84+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
85+
} from '@sentry/core';
86+
7987
export type { SpanStatusType } from '@sentry/core';
88+
8089
export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
8190

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

packages/remix/src/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export {
9090
createGetModuleFromFilename,
9191
hapiErrorPlugin,
9292
runWithAsyncContext,
93+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
94+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
95+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
96+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
9397
} from '@sentry/node';
9498

9599
// 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
@@ -95,4 +95,8 @@ export {
9595
httpIntegration,
9696
nativeNodeFetchintegration,
9797
spotlightIntegration,
98+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
99+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
100+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
101+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
98102
} from '@sentry/node';

packages/sveltekit/src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export {
8383
hapiErrorPlugin,
8484
metrics,
8585
runWithAsyncContext,
86+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
87+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
88+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
89+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
8690
} from '@sentry/node';
8791

8892
// 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
@@ -74,6 +74,10 @@ export {
7474
inboundFiltersIntegration,
7575
linkedErrorsIntegration,
7676
requestDataIntegration,
77+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
78+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
79+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
80+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
7781
} from '@sentry/core';
7882
export type { SpanStatusType } from '@sentry/core';
7983

0 commit comments

Comments
 (0)