Skip to content

Commit

Permalink
Update opentelemetry-otlp/src/exporter/http/trace.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Zhongyang Wu <zhongyang.wu@outlook.com>
  • Loading branch information
ramgdev and TommyCpp authored Feb 28, 2024
1 parent 587c341 commit d460bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-otlp/src/exporter/http/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn build_body(spans: Vec<SpanData>) -> TraceResult<(Vec<u8>, &'static str)> {
buf = req.encode_to_vec();
ctype = "application/x-protobuf";
}
#[cfg(all(feature = "http-json", not(feature = "http=proto")))]{
#[cfg(all(feature = "http-json", not(feature = "http-proto")))]{
let json_struct = serde_json::to_string_pretty(&req).unwrap();
buf = json_struct.into();
ctype = "application/json";
Expand Down

0 comments on commit d460bda

Please sign in to comment.