From 4a7fd0a47e6cbd2becf5b9351b6292fc165b5b5b Mon Sep 17 00:00:00 2001 From: Robert Escriva Date: Wed, 4 Dec 2024 16:57:28 -0800 Subject: [PATCH] [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. --- rust/load/src/opentelemetry_config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/load/src/opentelemetry_config.rs b/rust/load/src/opentelemetry_config.rs index 3af748761d0..bca43f8c5c6 100644 --- a/rust/load/src/opentelemetry_config.rs +++ b/rust/load/src/opentelemetry_config.rs @@ -73,6 +73,7 @@ pub(crate) fn init_otel_tracing(service_name: &String, otel_endpoint: &String) { // Prepare tracer. let span_exporter = opentelemetry_otlp::SpanExporter::builder() .with_tonic() + .with_protocol(opentelemetry_otlp::Protocol::HttpBinary) .with_endpoint(otel_endpoint) .build() .expect("could not build span exporter"); @@ -90,6 +91,7 @@ pub(crate) fn init_otel_tracing(service_name: &String, otel_endpoint: &String) { // Prepare meter. let metric_exporter = opentelemetry_otlp::MetricExporter::builder() .with_tonic() + .with_protocol(opentelemetry_otlp::Protocol::HttpBinary) .with_endpoint(otel_endpoint) .build() .expect("could not build metric exporter");