Skip to content

Commit 45b77a2

Browse files
committed
Update default OTLP http port
1 parent dc25ea6 commit 45b77a2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

exporters/otlp/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ auto exporter = std::unique_ptr<sdktrace::SpanExporter>(new otlp::OtlpHttpExport
4444

4545
### Configuration options
4646

47-
| Option | Default |
48-
| ------------ |----------------- |
49-
| `endpoint` | `localhost:4317` |
47+
| Option | Default |
48+
| ------------------------------------ |----------------- |
49+
| `OtlpGrpcExporterOptions.endpoint` | `localhost:4317` |
50+
| `OtlpHttpExporterOptions.endpoint` | `localhost:4318` |
5051

5152
## Example
5253

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct OtlpHttpExporterOptions
5050
// @see
5151
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md
5252
// @see https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver
53-
std::string url = std::string("http://localhost:4317") + kDefaultTracePath;
53+
std::string url = std::string("http://localhost:4318") + kDefaultTracePath;
5454

5555
// By default, post json data
5656
HttpRequestContentType content_type = HttpRequestContentType::kJson;

0 commit comments

Comments
 (0)