We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8f259 commit 4e67910Copy full SHA for 4e67910
opentelemetry-otlp/examples/basic-otlp-http/src/main.rs
@@ -41,7 +41,7 @@ fn init_logs() -> Result<sdklogs::LoggerProvider, opentelemetry::logs::LogError>
41
.with_resource(RESOURCE.clone())
42
.with_exporter(
43
http_exporter()
44
- .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`
45
.with_endpoint("http://localhost:4318/v1/logs"),
46
)
47
.install_batch(opentelemetry_sdk::runtime::Tokio)
0 commit comments