Skip to content

Unify console instrumentation to a single integration #17702

Open

Description

@AbhiPrasad

Description

Our console instrumentation is spread across different sdks and integrations, making for a confusing set up experience. We should try to unify this to be a single integration in the next major version of the SDK. This also allows us to look at enabling sending logs by default via console logs if enableLogs is set to true.

Our ideal end state is a single console integration that captures breadcrumbs by default, captures logs if enableLogs is set to true, and optionally captures errors if configured by users. This allows us to delete captureConsoleIntegration, and simplify breadcrumbsIntegration in browser (something we've wanted to do for a long time).

the instrumentConsole utility:

function instrumentConsole(): void {

Previous: #4532

Activity

  1. added this to the 11.0.0 milestone on Sep 18, 2025
  2. linear commented on Sep 18, 2025

    @linear
  3. Lms24 commented on Sep 24, 2025

    @Lms24
    Member

    Posting a longer version of my review comment here as well:

    Our ideal end state is a single console integration that captures breadcrumbs by default, captures logs if enableLogs is set to true, and optionally captures errors if configured by users.

    I'm not sure if it makes sense to do this with us more recently rather splitting integrations into single-purpose integrations than doing the inverse. I personally find captureConsoleIntegration for example pretty useless and never enable it, so I'm not sure if we always want to include the respective bundle size hit in browser, if users e.g. only want logs. This probably also depends on our long-term plan for breadcrumbs.

  4. modified the milestones: 11.0.0, 12.0.0 on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions