From 285a2442246a4b8913bd609397e634e2cdb66d58 Mon Sep 17 00:00:00 2001 From: Naseem Date: Thu, 4 Jun 2020 13:25:39 -0400 Subject: [PATCH] docs: define consts as to not exceed README line length max Signed-off-by: Naseem --- getting-started/ts-example/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/getting-started/ts-example/README.md b/getting-started/ts-example/README.md index e3f8f9bbb1e..d5d7b522951 100644 --- a/getting-started/ts-example/README.md +++ b/getting-started/ts-example/README.md @@ -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}`, + ); }, );