From ccff2fe8b6f90a9dde81524bd03757bdb61870ed Mon Sep 17 00:00:00 2001 From: Robert Escriva Date: Wed, 4 Dec 2024 16:25:56 -0800 Subject: [PATCH] [CHORE] Set tonic to http binary for chroma-load --- 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");