File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
faraday/lib/opentelemetry/instrumentation/faraday
net_http/lib/opentelemetry/instrumentation/net/http Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,11 @@ module HttpHelper
5959
6060 private_constant :METHOD_CACHE , :OLD_SPAN_NAMES
6161
62- module_function
63-
6462 # Prepares all span data for the specified semantic convention in a single call
6563 # @param method [String, Symbol] The HTTP method
6664 # @param semconv [Symbol] The semantic convention to use (:stable or :old)
6765 # @return [SpanCreationAttributes] struct containing span_name, normalized_method, and original_method
68- module_function def span_attrs_for ( method , semconv : :stable )
66+ def self . span_attrs_for ( method , semconv : :stable )
6967 normalized = METHOD_CACHE [ method ]
7068 if normalized
7169 span_name = semconv == :old ? OLD_SPAN_NAMES [ normalized ] : normalized
Original file line number Diff line number Diff line change @@ -60,13 +60,11 @@ module HttpHelper
6060
6161 private_constant :METHOD_CACHE , :OLD_SPAN_NAMES
6262
63- module_function
64-
6563 # Prepares all span data for the specified semantic convention in a single call
6664 # @param method [String, Symbol] The HTTP method
6765 # @param semconv [Symbol] The semantic convention to use (:stable or :old)
6866 # @return [SpanCreationAttributes] struct containing span_name, normalized_method, and original_method
69- def span_attrs_for ( method , semconv : :stable )
67+ def self . span_attrs_for ( method , semconv : :stable )
7068 normalized = METHOD_CACHE [ method ]
7169 if normalized
7270 span_name = semconv == :old ? OLD_SPAN_NAMES [ normalized ] : normalized
You can’t perform that action at this time.
0 commit comments