Skip to content

adjust reporter to not import entire @datadog/datadog-api-client #145

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kroney
Copy link

@kroney kroney commented Mar 27, 2025

No description provided.

@Mr0grog
Copy link
Collaborator

Mr0grog commented Mar 27, 2025

@kroney Is there a problem this is solving?

@kroney
Copy link
Author

kroney commented Mar 28, 2025

Right now we're always importing v1, v2 and client, which are all huge packages. My hope is that with this fix, the package can be better treeshaken

@Mr0grog
Copy link
Collaborator

Mr0grog commented Mar 28, 2025

Ah, I feel your pain there. But this would have to move to ESM syntax to get that kind of tree-shaking. A better solution to this particular issue is probably #132 and #144. (I started those near the end of last year, but some other things came up and I have not had time to return to them. I have not prioritized them since nobody has commented.)

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

Successfully merging this pull request may close these issues.

2 participants