Skip to content

Commit

Permalink
No need to strip '/' twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Jun 24, 2024
1 parent 75e6865 commit 53b4e64
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ fn normalize_collector_url(collector_url: &str) -> String {
.strip_suffix("/v1/traces")
.unwrap_or(collector_url);

// Backport https://github.com/open-telemetry/opentelemetry-rust/pull/1553
let collector_url = collector_url.strip_suffix('/').unwrap_or(collector_url);

// And now starting from version 0.23 opentelemetry randomly stopped appending
// the url suffix, so we need to do it ourselves.
// This was not announced in the changelogs 🙃
Expand Down

0 comments on commit 53b4e64

Please sign in to comment.