Skip to content

Commit a90681f

Browse files
Lms24mydea
andauthored
Apply suggestions from code review
Co-authored-by: Francesco Novy <[email protected]>
1 parent 449a8a5 commit a90681f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/platforms/javascript/common/opentelemetry/custom-setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const provider = new NodeTracerProvider({
180180
// Validate that the setup is correct
181181
Sentry.validateOpenTelemetrySetup();
182182
```
183-
## ESM loaders
183+
## ESM Loaders
184184

185185
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.
186186
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
201201
</Note>
202202

203203
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`.
205205
<PlatformLink to="/install">Learn more about ESM installation methods.</PlatformLink>

0 commit comments

Comments
 (0)