Skip to content

Commit 0435edb

Browse files
authored
OTLP change default port number (#522)
1 parent 880e392 commit 0435edb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/otlp/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ receivers:
1515
otlp:
1616
protocols:
1717
grpc:
18-
endpoint: localhost:55680
18+
endpoint: localhost:4317
1919
exporters:
2020
zipkin:
2121
endpoint: "http://localhost:9411/api/v2/spans"
@@ -26,6 +26,6 @@ service:
2626
exporters: [zipkin]
2727
```
2828

29-
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`.
29+
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`.
3030

3131
Once you have the Collector running, see [CONTRIBUTING.md](../../CONTRIBUTING.md) for instructions on building and running the example.

exporters/otlp/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ auto exporter = std::unique_ptr<sdktrace::SpanExporter>(new otlp::OtlpExporter(o
1818

1919
### Configuration options
2020

21-
| Option | Default |
22-
| ------------ |------------------ |
23-
| `endpoint` | `localhost:55680` |
21+
| Option | Default |
22+
| ------------ |----------------- |
23+
| `endpoint` | `localhost:4317` |
2424

2525
## Example
2626

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_exporter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace otlp
1414
struct OtlpExporterOptions
1515
{
1616
// The endpoint to export to. By default the OpenTelemetry Collector's default endpoint.
17-
std::string endpoint = "localhost:55680";
17+
std::string endpoint = "localhost:4317";
1818
};
1919

2020
/**

0 commit comments

Comments
 (0)