Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonJS Support #567

Open
Zineeddine07 opened this issue Feb 21, 2025 · 1 comment
Open

CommonJS Support #567

Zineeddine07 opened this issue Feb 21, 2025 · 1 comment
Labels
feature request New feature or request

Comments

@Zineeddine07
Copy link

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

@Zineeddine07 Zineeddine07 added the feature request New feature or request label Feb 21, 2025
@jjtang1985
Copy link
Contributor

jjtang1985 commented Feb 21, 2025

Hi @Zineeddine07 ,

Thanks for reaching out.

Could you please share more details about the steps to reproduce the issue, as I've never used the Dynatrace OneAgent.

Also, where did you deploy your application? BTP?

Best regards,
Junjie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants