Skip to content

Commit 4a7fd0a

Browse files
authored
[CHORE] Set tonic to http binary for chroma-load (#3245)
HTTP2 (gRPC) is not supported by whatever chroma-load is talking to for exporting tracing. Use http with the binary format instead.
1 parent 5861af3 commit 4a7fd0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/load/src/opentelemetry_config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub(crate) fn init_otel_tracing(service_name: &String, otel_endpoint: &String) {
7373
// Prepare tracer.
7474
let span_exporter = opentelemetry_otlp::SpanExporter::builder()
7575
.with_tonic()
76+
.with_protocol(opentelemetry_otlp::Protocol::HttpBinary)
7677
.with_endpoint(otel_endpoint)
7778
.build()
7879
.expect("could not build span exporter");
@@ -90,6 +91,7 @@ pub(crate) fn init_otel_tracing(service_name: &String, otel_endpoint: &String) {
9091
// Prepare meter.
9192
let metric_exporter = opentelemetry_otlp::MetricExporter::builder()
9293
.with_tonic()
94+
.with_protocol(opentelemetry_otlp::Protocol::HttpBinary)
9395
.with_endpoint(otel_endpoint)
9496
.build()
9597
.expect("could not build metric exporter");

0 commit comments

Comments
 (0)