Skip to content

Commit 4e67910

Browse files
committed
test
1 parent 0e8f259 commit 4e67910

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-otlp/examples/basic-otlp-http/src

1 file changed

+1
-1
lines changed

opentelemetry-otlp/examples/basic-otlp-http/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn init_logs() -> Result<sdklogs::LoggerProvider, opentelemetry::logs::LogError>
4141
.with_resource(RESOURCE.clone())
4242
.with_exporter(
4343
http_exporter()
44-
.with_protocol(Protocol::HttpBinary) //can be changed to `Protocol::HttpJson` to export in JSON format
44+
.with_protocol(Protocol::HttpJson) //can be changed to `Protocol::HttpBinary`
4545
.with_endpoint("http://localhost:4318/v1/logs"),
4646
)
4747
.install_batch(opentelemetry_sdk::runtime::Tokio)

0 commit comments

Comments
 (0)