From 0884e23a757ec58d860b6dcd83b6827c4812176e Mon Sep 17 00:00:00 2001 From: Tomasz Rojek Date: Wed, 20 Jan 2021 00:05:34 +0100 Subject: [PATCH] OTLP change default port number From specification - https://github.com/open-telemetry/opentelemetry-specification/pull/1221 --- examples/otlp/README.md | 4 ++-- exporters/otlp/README.md | 6 +++--- .../include/opentelemetry/exporters/otlp/otlp_exporter.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/otlp/README.md b/examples/otlp/README.md index 9b1a8fd95a..7880bcccfd 100644 --- a/examples/otlp/README.md +++ b/examples/otlp/README.md @@ -15,7 +15,7 @@ receivers: otlp: protocols: grpc: - endpoint: localhost:55680 + endpoint: localhost:4317 exporters: zipkin: endpoint: "http://localhost:9411/api/v2/spans" @@ -26,6 +26,6 @@ service: exporters: [zipkin] ``` -Note that the OTLP exporter connects to the Collector at `localhost:55680` by default. This can be changed with first argument from command-line, for example: `./example_otlp gateway.docker.internal:55680`. +Note that the OTLP exporter connects to the Collector at `localhost:4317` by default. This can be changed with first argument from command-line, for example: `./example_otlp gateway.docker.internal:4317`. Once you have the Collector running, see [CONTRIBUTING.md](../../CONTRIBUTING.md) for instructions on building and running the example. diff --git a/exporters/otlp/README.md b/exporters/otlp/README.md index 05915d7b27..7c6ea1d81f 100644 --- a/exporters/otlp/README.md +++ b/exporters/otlp/README.md @@ -18,9 +18,9 @@ auto exporter = std::unique_ptr(new otlp::OtlpExporter(o ### Configuration options -| Option | Default | -| ------------ |------------------ | -| `endpoint` | `localhost:55680` | +| Option | Default | +| ------------ |----------------- | +| `endpoint` | `localhost:4317` | ## Example diff --git a/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_exporter.h b/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_exporter.h index e5a0fb8116..cb2b0066d2 100644 --- a/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_exporter.h +++ b/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_exporter.h @@ -14,7 +14,7 @@ namespace otlp struct OtlpExporterOptions { // The endpoint to export to. By default the OpenTelemetry Collector's default endpoint. - std::string endpoint = "localhost:55680"; + std::string endpoint = "localhost:4317"; }; /**