Skip to content

Commit 9dc8f32

Browse files
committed
squash: linter
1 parent c253ab3 commit 9dc8f32

File tree

2 files changed

+2
-6
lines changed
  • instrumentation

2 files changed

+2
-6
lines changed

instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/http_helper.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

instrumentation/net_http/lib/opentelemetry/instrumentation/net/http/http_helper.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)