From 0554756e8c1c5027fb7afa913eef9ffb56c360a2 Mon Sep 17 00:00:00 2001 From: ysma500 <32311542+ysma500@users.noreply.github.com> Date: Wed, 26 Jun 2019 01:54:37 -0400 Subject: [PATCH] Change open census to OpenTelemetry in readme file + Update prometheus quick guide in readme (#123) * Changed open census to OpenTelemetry in readme file * Added + wildcard, updated sample and readme to reflect sample --- README.md | 4 ++-- samples/Exporters/TestPrometheus.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a245937097..63bb8cfc441 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ We encourage contributions. Use tags [up-for-grabs][up-for-grabs-issues] and ## OpenTelemetry QuickStart: collecting data -You can use Open Census API to instrument code and report data. Or use one of +You can use OpenTelemetry API to instrument code and report data. Or use one of automatic data collection modules. ### Using ASP.NET Core incoming requests collector @@ -199,7 +199,7 @@ Configure Prometheus exporter to have stats collected by Prometheus. var exporter = new PrometheusExporter( new PrometheusExporterOptions() { - Url = new Uri("http://localhost:9184/metrics/") + Url = "http://+:9184/metrics/" }, Stats.ViewManager); diff --git a/samples/Exporters/TestPrometheus.cs b/samples/Exporters/TestPrometheus.cs index e89758a9e44..ac42c482a1e 100644 --- a/samples/Exporters/TestPrometheus.cs +++ b/samples/Exporters/TestPrometheus.cs @@ -36,7 +36,7 @@ internal static object Run() var exporter = new PrometheusExporter( new PrometheusExporterOptions() { - Url = "http://localhost:9184/metrics/" + Url = "http://+:9184/metrics/" // "+" is a wildcard used to listen to all hostnames }, Stats.ViewManager);