Skip to content

Commit

Permalink
lint: Fix linting error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbachmann committed Oct 18, 2022
1 parent 99358fc commit 13426fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const {MeterProvider} = require('@opentelemetry/sdk-metrics')
const {PrometheusExporter} = require('@opentelemetry/exporter-prometheus')

const meterProvider = new MeterProvider({})
const exporter = new PrometheusExporter({ port: 9464 }, () => {
const exporter = new PrometheusExporter({port: 9464}, () => {
// eslint-disable-next-line no-console
console.log(
`Prometheus scrape endpoint: http://localhost:%s%s`,
PrometheusExporter.DEFAULT_OPTIONS.port,
PrometheusExporter.DEFAULT_OPTIONS.endpoint
)
})
meterProvider.addMetricReader(exporter);
meterProvider.addMetricReader(exporter)

require('opentelemetry-node-metrics')(meterProvider)

Expand Down

0 comments on commit 13426fc

Please sign in to comment.