Skip to content

Unify console instrumentation #4532

Closed
@AbhiPrasad

Description

@AbhiPrasad

The console instrumentation in the SDK seem to duplicate code. Maybe we can find a way to unify them? We can also improve testing this way, and it may help save bundle size.

the instrumentConsole utility:

function instrumentConsole(): void {

the node Console integration: https://github.com/getsentry/sentry-javascript/blob/master/packages/node/src/integrations/console.ts

the CaptureConsole integration: https://github.com/getsentry/sentry-javascript/blob/master/packages/integrations/src/captureconsole.ts

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions