Skip to content

Commit 555f4e8

Browse files
authored
Revert "Update default OTLP http port (#939)" (#941)
1 parent da5c79a commit 555f4e8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

exporters/otlp/README.md

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

4545
### Configuration options
4646

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

5251
## Example
5352

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:4318") + kDefaultTracePath;
53+
std::string url = std::string("http://localhost:4317") + kDefaultTracePath;
5454

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

0 commit comments

Comments
 (0)