Skip to content

how would it work with zero-code-change instrumentation pattern? #20

@liesislukas

Description

@liesislukas

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Currently, this package requires importing from the OpenTelemetry instrumentation file, which makes it impossible to use in zero-code change instrumentation setups. Zero-code change instrumentation is a common approach in many Node.js libraries, as well as across the broader OpenTelemetry ecosystem.

Typically, OpenTelemetry libraries are controlled via environment variables, rather than requiring direct imports or manual plugin configuration.

I wanted to integrate this package into @otelic/open-telemetry, which provides zero-code change instrumentation. However, this doesn’t seem possible with the current API.

Am I missing something?
Is there a recommended approach to achieve this?
Or would supporting auto-instrumentation (e.g., via environment variables) be something to consider?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions