Skip to content

Commit

Permalink
chore(docs): Don't suggest prom reader to be dev only
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuin authored and Strazz1337 committed Nov 11, 2024
1 parent 881e5d2 commit d2dcdf0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/open-telemetry-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ new otel.OpenTelemetryBuilder('nest-example')
.withTracing(zonneplan.DefaultTracingOptions)
.withLogging(zonneplan.DefaultLoggingOptions)
.withMetrics(zonneplan.DefaultMetricsOptions)
.withMetrics((options) =>
options.$if(process.env['NODE_ENV'] === 'development', (metricsOptions) =>
metricsOptions.withMetricReader(new nest.PrometheusNestExporter())
)
)
.withMetrics((options) => options.withMetricReader(new nest.PrometheusNestExporter()))
.start();
```

Expand Down

0 comments on commit d2dcdf0

Please sign in to comment.