Skip to content

Add integrations after init #6319

@jamesarosen

Description

@jamesarosen

Problem Statement

I would like to initialize Sentry in one context (Express) and later add an Integration in another context (Remix).

Some relevant links:

Solution Brainstorm

Some ideas:

  • allow Sentry.init(…) multiple times. Clients can use either integrations: […] to append or integrations: Integration[] => Integration[] to modify the stack.
  • add a new addIntegration(integration) to append only. This is simpler but more limited.
  • add a new Sentry.integrations(Integration[] => Integration[]) to modify the stack after initialization.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions