Skip to content

Unify console instrumentation #4532

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions