From 53b4e6474a51666c51470b10e988147c48807b02 Mon Sep 17 00:00:00 2001 From: mae <26093674+MaeIsBad@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:08:05 +0200 Subject: [PATCH] No need to strip '/' twice --- src/telemetry.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/telemetry.rs b/src/telemetry.rs index a32524d..35b55df 100644 --- a/src/telemetry.rs +++ b/src/telemetry.rs @@ -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 🙃