Skip to content

InstrumentationAbstract#setConfig doesn't honor enabled flag #2257

@Flarna

Description

@Flarna
  • This only affects the JavaScript OpenTelemetry library
  • This may affect other libraries, but I would like to get opinions here first

Enabling of an Instrumentation is done automatically if user is not explicit disabling it. See InstrumentationAbstract constructor

If later config is updated using setConfig the config.enabled flag is not evaluated nor defaulted.

Should we add defaulting of enabled in setConfig and also call enable/disable there? Or is it up to the user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionIssue or PR that needs/is extended discussion.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions