diff --git a/exporters/otlp/README.md b/exporters/otlp/README.md index 8c6efe90d3..cc2c4510e6 100644 --- a/exporters/otlp/README.md +++ b/exporters/otlp/README.md @@ -44,9 +44,10 @@ auto exporter = std::unique_ptr(new otlp::OtlpHttpExport ### Configuration options -| Option | Default | -| ------------ |----------------- | -| `endpoint` | `localhost:4317` | +| Option | Default | +| ------------------------------------ |----------------- | +| `OtlpGrpcExporterOptions.endpoint` | `localhost:4317` | +| `OtlpHttpExporterOptions.endpoint` | `localhost:4318` | ## Example diff --git a/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter.h b/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter.h index 0d6f04e653..5088409adb 100644 --- a/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter.h +++ b/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter.h @@ -50,7 +50,7 @@ struct OtlpHttpExporterOptions // @see // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md // @see https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver - std::string url = std::string("http://localhost:4317") + kDefaultTracePath; + std::string url = std::string("http://localhost:4318") + kDefaultTracePath; // By default, post json data HttpRequestContentType content_type = HttpRequestContentType::kJson;