Skip to content

Commit

Permalink
js instrumentation doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legalimpurity committed Feb 26, 2024
1 parent 910040f commit 80a3d3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/en/docs/languages/js/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1261,10 +1261,9 @@ const metricReader = new PeriodicExportingMetricReader({

const myServiceMeterProvider = new MeterProvider({
resource: resource,
readers: [metricReader],
});

myServiceMeterProvider.addMetricReader(metricReader);

// Set this MeterProvider to be global to the app being instrumented.
opentelemetry.metrics.setGlobalMeterProvider(myServiceMeterProvider);
```
Expand Down Expand Up @@ -1299,10 +1298,9 @@ const metricReader = new PeriodicExportingMetricReader({

const myServiceMeterProvider = new MeterProvider({
resource: resource,
readers: [metricReader],
});

myServiceMeterProvider.addMetricReader(metricReader);

// Set this MeterProvider to be global to the app being instrumented.
opentelemetry.metrics.setGlobalMeterProvider(myServiceMeterProvider);
```
Expand Down

0 comments on commit 80a3d3e

Please sign in to comment.