From c5f5c5886295e2fdf06e162178f6a1af91630c70 Mon Sep 17 00:00:00 2001 From: Muriel Date: Mon, 23 Oct 2023 13:13:59 +0200 Subject: [PATCH] fix: Remove dependency on ActiveSupport core extensions from Grape instrumentation (#706) --- .../lib/opentelemetry/instrumentation/grape/event_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/grape/lib/opentelemetry/instrumentation/grape/event_handler.rb b/instrumentation/grape/lib/opentelemetry/instrumentation/grape/event_handler.rb index b39fafe33..7228247fc 100644 --- a/instrumentation/grape/lib/opentelemetry/instrumentation/grape/event_handler.rb +++ b/instrumentation/grape/lib/opentelemetry/instrumentation/grape/event_handler.rb @@ -96,7 +96,7 @@ def path(endpoint) version = endpoint.routes.first.options[:version] || '' prefix = endpoint.routes.first.options[:prefix]&.to_s || '' parts = [prefix, version] + namespace.split('/') + endpoint.options[:path] - parts.reject { |p| p.blank? || p.eql?('/') }.join('/').prepend('/') + parts.reject { |p| p.nil? || p.empty? || p.eql?('/') }.join('/').prepend('/') end def formatter_type(formatter)