Skip to content

Commit

Permalink
docs: define consts as to not exceed README line length max
Browse files Browse the repository at this point in the history
Signed-off-by: Naseem <naseem@transit.app>
  • Loading branch information
Naseem committed Jun 4, 2020
1 parent 78131e1 commit 285a244
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions getting-started/ts-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,18 @@ import { MeterProvider } from '@opentelemetry/metrics';
import { Metric, BoundCounter } from '@opentelemetry/api';
import { PrometheusExporter } from '@opentelemetry/exporter-prometheus';
const prometheusPort = PrometheusExporter.DEFAULT_OPTIONS.port
const prometheusEndpoint = PrometheusExporter.DEFAULT_OPTIONS.endpoint
const exporter = new PrometheusExporter(
{
startServer: true,
},
() => {
console.log(
`prometheus scrape endpoint: http://localhost:${PrometheusExporter.DEFAULT_OPTIONS.port}${PrometheusExporter.DEFAULT_OPTIONS.endpoint}`,
);
`prometheus scrape endpoint: http://localhost:${prometheusPort}${Prometheusendpoint}`,
);
},
);

Expand Down

0 comments on commit 285a244

Please sign in to comment.