Skip to content

@sentry/node README.md ESM details appear outdated #12890

Closed
@timfish

Description

@timfish

https://github.com/getsentry/sentry-javascript/tree/develop/packages/node#esm-support

node --experimental-loader=@opentelemetry/instrumentation/hook.mjs ./app.js

We should probably be telling users to use our own hook rather than the otel one, that way we can change the behaviour in the future without it being a breaking change

You'll need to install @opentelemetry/instrumentation in your app to ensure this works.

This isn't required. Has this been mistakenly kept from when this was the node-experimental package?

Maybe we can just remove all this ESM detail and point to these docs?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions