Skip to content

Commit

Permalink
Change open census to OpenTelemetry in readme file + Update prometheu…
Browse files Browse the repository at this point in the history
…s quick guide in readme (#123)

* Changed open census to OpenTelemetry in readme file

* Added + wildcard, updated sample and readme to reflect sample
  • Loading branch information
ysma500 authored and SergeyKanzhelev committed Jun 26, 2019
1 parent cfd233c commit 0554756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion samples/Exporters/TestPrometheus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0554756

Please sign in to comment.