diff --git a/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs b/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs index 610268294e..c9c874b0f7 100644 --- a/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs +++ b/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs @@ -41,7 +41,7 @@ fn init_logs() -> Result .with_resource(RESOURCE.clone()) .with_exporter( http_exporter() - .with_protocol(Protocol::HttpBinary) //can be changed to `Protocol::HttpJson` to export in JSON format + .with_protocol(Protocol::HttpJson) //can be changed to `Protocol::HttpBinary` .with_endpoint("http://localhost:4318/v1/logs"), ) .install_batch(opentelemetry_sdk::runtime::Tokio)