-
-
Notifications
You must be signed in to change notification settings - Fork 22
Description
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