From 3ac0adc0eb8206fb653bad85d11f80b5e3a438b0 Mon Sep 17 00:00:00 2001 From: Muriel Picone Farias Date: Mon, 23 Oct 2023 12:05:49 +0200 Subject: [PATCH] fix: Remove dependency on ActiveSupport core extensions from Grape instrumentation --- .../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)