Skip to content
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

feat(v7): Export pluggable integrations from SDK packages #11723

Merged
merged 4 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ export {
functionToStringIntegration,
inboundFiltersIntegration,
linkedErrorsIntegration,
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
Handlers,
trpcMiddleware,
setMeasurement,
Expand Down
1 change: 1 addition & 0 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@sentry-internal/replay-canvas": "7.111.0",
"@sentry-internal/tracing": "7.111.0",
"@sentry/core": "7.111.0",
"@sentry/integrations": "7.111.0",
"@sentry/replay": "7.111.0",
"@sentry/types": "7.111.0",
"@sentry/utils": "7.111.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ export {
sendFeedback,
} from '@sentry-internal/feedback';

export {
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
contextLinesIntegration,
} from '@sentry/integrations';

export {
// eslint-disable-next-line deprecation/deprecation
BrowserTracing,
Expand Down
8 changes: 8 additions & 0 deletions packages/bun/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ export {
onUncaughtExceptionIntegration,
onUnhandledRejectionIntegration,
spotlightIntegration,
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
Expand Down
1 change: 1 addition & 0 deletions packages/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"@sentry/browser": "7.111.0",
"@sentry/core": "7.111.0",
"@sentry/integrations": "7.111.0",
"@sentry/types": "7.111.0",
"@sentry/utils": "7.111.0"
},
Expand Down
10 changes: 10 additions & 0 deletions packages/deno/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ export {
export { breadcrumbsIntegration, dedupeIntegration } from '@sentry/browser';
import { Integrations as CoreIntegrations } from '@sentry/core';

export {
captureConsoleIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
} from '@sentry/integrations';

export { denoContextIntegration } from './integrations/context';
export { globalHandlersIntegration } from './integrations/globalhandlers';
export { normalizePathsIntegration } from './integrations/normalizepaths';
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/src/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable deprecation/deprecation */
import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { GLOBAL_OBJ, logger, normalize, uuid4 } from '@sentry/utils';
import localForage from 'localforage';
import * as localForage from 'localforage';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this deno complained at build time, even if this is not used by the package 😬


import { DEBUG_BUILD } from './debug-build';

Expand Down
1 change: 1 addition & 0 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dependencies": {
"@sentry-internal/tracing": "7.111.0",
"@sentry/core": "7.111.0",
"@sentry/integrations": "7.111.0",
"@sentry/types": "7.111.0",
"@sentry/utils": "7.111.0"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ export const Integrations = {
...TracingIntegrations,
};

export {
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
} from '@sentry/integrations';

export { consoleIntegration } from './integrations/console';
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
Expand Down
8 changes: 8 additions & 0 deletions packages/remix/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ export {
functionToStringIntegration,
inboundFiltersIntegration,
linkedErrorsIntegration,
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
Handlers,
trpcMiddleware,
setMeasurement,
Expand Down
8 changes: 8 additions & 0 deletions packages/sveltekit/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export {
functionToStringIntegration,
inboundFiltersIntegration,
linkedErrorsIntegration,
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
Handlers,
trpcMiddleware,
setMeasurement,
Expand Down
1 change: 1 addition & 0 deletions packages/vercel-edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dependencies": {
"@sentry-internal/tracing": "7.111.0",
"@sentry/core": "7.111.0",
"@sentry/integrations": "7.111.0",
"@sentry/types": "7.111.0",
"@sentry/utils": "7.111.0"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/vercel-edge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ export {
init,
} from './sdk';

export {
captureConsoleIntegration,
dedupeIntegration,
debugIntegration,
extraErrorDataIntegration,
reportingObserverIntegration,
rewriteFramesIntegration,
sessionTimingIntegration,
httpClientIntegration,
contextLinesIntegration,
} from '@sentry/integrations';

import { Integrations as CoreIntegrations, RequestData } from '@sentry/core';

import { WinterCGFetch } from './integrations/wintercg-fetch';
Expand Down