Skip to content

Add "Enabled" argument to the plugin #79

@solomon-bush

Description

@solomon-bush

What is the problem this feature would solve?

There is no way to programatically toggle telemetry on/off via an argument passed to the plugin.

What is the feature you are proposing to solve the problem?

In other plugins, there is an enabled param. Just add the same thing.

const TELEMETRY_ENABLED = false

server.use(
      opentelemetry({
           enabled: TELEMETRY_ENABLED
      })
)

What alternatives have you considered?

 if (TELEMETRY_ENABLED) {
    server.use(
      opentelemetry({})
    )
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions