You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/opentelemetry/custom-setup.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ const provider = new NodeTracerProvider({
180
180
// Validate that the setup is correct
181
181
Sentry.validateOpenTelemetrySetup();
182
182
```
183
-
## ESM loaders
183
+
## ESM Loaders
184
184
185
185
If your application is running in ESM (`import`/`export` syntax), OpenTelemetry requires a [special setup](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/esm-support.md) to work correctly.
186
186
The Sentry SDK will automatically detect if your application is running in ESM mode and by default [register a loader hook](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/esm-support.md#instrumentation-hook-required-for-esm) itself.
@@ -201,5 +201,5 @@ Registering loader hooks multiple times might result in duplicated spans being c
201
201
</Note>
202
202
203
203
Alternatively, you can also use Sentry's loader hook and remove your own loader hook registration code.
204
-
In this case, ensure that you initialize the Sentry SDK in its own file and you load this file prior to your application via `node --import instrument.mjs your-app.mjs`.
204
+
In this case, ensure that you initialize the Sentry SDK in its own file and load this file prior to your application via `node --import instrument.mjs your-app.mjs`.
205
205
<PlatformLinkto="/install">Learn more about ESM installation methods.</PlatformLink>
0 commit comments