Skip to content

Commit

Permalink
[CHORE] Set tonic to http binary for chroma-load (#3245)
Browse files Browse the repository at this point in the history
HTTP2 (gRPC) is not supported by whatever chroma-load is talking to for
exporting tracing. Use http with the binary format instead.
  • Loading branch information
rescrv authored Dec 5, 2024
1 parent 5861af3 commit 4a7fd0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/load/src/opentelemetry_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 4a7fd0a

Please sign in to comment.