Skip to content

CommonJS Support #567

@Zineeddine07

Description

@Zineeddine07

Describe the Problem

I'm using this package in a Node.js application that relies on Dynatrace OneAgent for monitoring. However, since this package is ESM-only, Dynatrace attempts to instrument it which results in a [ERR_REQUIRE_ESM] error.

Issue:

Dynatrace OneAgent does not support ES module instrumentation properly.
This prevents applications using Dynatrace from utilizing this package in a CommonJS environment.

Propose a Solution

Would it be possible to add CommonJS support (e.g., by providing dual module support with both ESM and CommonJS exports)? This would allow broader support.

Describe Alternatives

No response

Affected Development Phase

Getting Started

Impact

No Impact

Timeline

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions