Skip to content

Commit

Permalink
remove duplicate line
Browse files Browse the repository at this point in the history
  • Loading branch information
ramgdev committed Mar 29, 2024
1 parent f9abf24 commit 250fab4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion opentelemetry-otlp/src/exporter/http/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ fn build_body(metrics: &mut ResourceMetrics) -> Result<(Vec<u8>, &'static str)>
(&*metrics).into();

match default_protocol() {

Check warning on line 61 in opentelemetry-otlp/src/exporter/http/metrics.rs

View check run for this annotation

Codecov / codecov/patch

opentelemetry-otlp/src/exporter/http/metrics.rs#L61

Added line #L61 was not covered by tests
#[cfg(feature = "http-json")]
#[cfg(feature = "http-json")]
Protocol::HttpJson => match serde_json::to_string_pretty(&req) {
Ok(json) => Ok((json.into(), "application/json")),
Expand Down

0 comments on commit 250fab4

Please sign in to comment.