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(node): Add Modules integration to default integrations #5706

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion packages/node/src/integrations/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export class Modules implements Integration {
}
return {
...event,
modules: this._getModules(),
modules: {
...event.modules,
...this._getModules(),
},
};
});
}
Expand Down
7 changes: 5 additions & 2 deletions packages/node/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
ContextLines,
Http,
LinkedErrors,
Modules,
OnUncaughtException,
OnUnhandledRejection,
} from './integrations';
Expand All @@ -35,16 +36,18 @@ export const defaultIntegrations = [
// Common
new CoreIntegrations.InboundFilters(),
new CoreIntegrations.FunctionToString(),
new ContextLines(),
// Native Wrappers
new Console(),
new Http(),
// Global Handlers
new OnUncaughtException(),
new OnUnhandledRejection(),
// Event Info
new ContextLines(),
new Context(),
new Modules(),
// Misc
new LinkedErrors(),
new Context(),
];

/**
Expand Down