From 07433c852098b0eebb171c80f8199ed4239d8b55 Mon Sep 17 00:00:00 2001 From: yfortier Date: Tue, 25 Jun 2019 13:51:06 -0400 Subject: [PATCH 1/2] Changed open census to OpenTelemetry in readme file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a245937097..b97f2541487 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 From 2f9e385641629fe0c67c2f62ee18637e7e845b63 Mon Sep 17 00:00:00 2001 From: yfortier Date: Tue, 25 Jun 2019 14:04:41 -0400 Subject: [PATCH 2/2] Added + wildcard, updated sample and readme to reflect sample --- README.md | 2 +- samples/Exporters/TestPrometheus.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b97f2541487..63bb8cfc441 100644 --- a/README.md +++ b/README.md @@ -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);