Skip to content

Commit d647256

Browse files
committed
squash: renames
1 parent 7e39bfc commit d647256

File tree

17 files changed

+51
-51
lines changed

17 files changed

+51
-51
lines changed

instrumentation/ethon/lib/opentelemetry/instrumentation/ethon/helpers.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module Instrumentation
99
module Ethon
1010
# Helper methods for Ethon instrumentation
1111
module Helpers
12-
class << self
13-
def determine_span_name(attributes, http_method)
14-
template = attributes['url.template']
15-
template ? "#{http_method} #{template}" : http_method
16-
end
12+
extend self
13+
14+
def format_span_name(attributes, http_method)
15+
template = attributes['url.template']
16+
template ? "#{http_method} #{template}" : http_method
1717
end
1818
end
1919
end

instrumentation/excon/lib/opentelemetry/instrumentation/excon/helpers.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module Instrumentation
99
module Excon
1010
# Helper methods for Excon instrumentation
1111
module Helpers
12-
class << self
13-
def determine_span_name(attributes, http_method)
14-
template = attributes['url.template']
15-
template ? "#{http_method} #{template}" : http_method
16-
end
12+
extend self
13+
14+
def format_span_name(attributes, http_method)
15+
template = attributes['url.template']
16+
template ? "#{http_method} #{template}" : http_method
1717
end
1818
end
1919
end

instrumentation/excon/lib/opentelemetry/instrumentation/excon/middlewares/dup/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def request_call(datum)
5151
peer_service = Excon::Instrumentation.instance.config[:peer_service]
5252
attributes[OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = peer_service if peer_service
5353
attributes.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
54-
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.determine_span_name(attributes, http_method)
54+
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.format_span_name(attributes, http_method)
5555
span = tracer.start_span(span_name, attributes: attributes, kind: :client)
5656
ctx = OpenTelemetry::Trace.context_with_span(span)
5757
datum[:otel_span] = span

instrumentation/excon/lib/opentelemetry/instrumentation/excon/middlewares/old/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def request_call(datum)
4343
peer_service = Excon::Instrumentation.instance.config[:peer_service]
4444
attributes[OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = peer_service if peer_service
4545
attributes.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
46-
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.determine_span_name(attributes, http_method)
46+
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.format_span_name(attributes, http_method)
4747
span = tracer.start_span(span_name, attributes: attributes, kind: :client)
4848
ctx = OpenTelemetry::Trace.context_with_span(span)
4949
datum[:otel_span] = span

instrumentation/excon/lib/opentelemetry/instrumentation/excon/middlewares/stable/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def request_call(datum)
4343
peer_service = Excon::Instrumentation.instance.config[:peer_service]
4444
attributes[OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = peer_service if peer_service
4545
attributes.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
46-
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.determine_span_name(attributes, http_method)
46+
span_name = OpenTelemetry::Instrumentation::Excon::Helpers.format_span_name(attributes, http_method)
4747
span = tracer.start_span(span_name, attributes: attributes, kind: :client)
4848
ctx = OpenTelemetry::Trace.context_with_span(span)
4949
datum[:otel_span] = span

instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/helpers.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module Instrumentation
99
module Faraday
1010
# Helper methods for Faraday instrumentation
1111
module Helpers
12-
class << self
13-
def determine_span_name(attributes, http_method)
14-
template = attributes['url.template']
15-
template ? "#{http_method} #{template}" : http_method
16-
end
12+
extend self
13+
14+
def format_span_name(attributes, http_method)
15+
template = attributes['url.template']
16+
template ? "#{http_method} #{template}" : http_method
1717
end
1818
end
1919
end

instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/middlewares/dup/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def call(env)
3838
)
3939

4040
OpenTelemetry::Common::HTTP::ClientContext.with_attributes(attributes) do |attrs, _|
41-
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.determine_span_name(attrs, http_method)
41+
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.format_span_name(attrs, http_method)
4242
tracer.in_span(
4343
span_name, attributes: attrs, kind: config.fetch(:span_kind)
4444
) do |span|

instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/middlewares/old/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def call(env)
3838
)
3939

4040
OpenTelemetry::Common::HTTP::ClientContext.with_attributes(attributes) do |attrs, _|
41-
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.determine_span_name(attrs, http_method)
41+
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.format_span_name(attrs, http_method)
4242
tracer.in_span(
4343
span_name, attributes: attrs, kind: config.fetch(:span_kind)
4444
) do |span|

instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/middlewares/stable/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def call(env)
3838
)
3939

4040
OpenTelemetry::Common::HTTP::ClientContext.with_attributes(attributes) do |attrs, _|
41-
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.determine_span_name(attrs)
41+
span_name = OpenTelemetry::Instrumentation::Faraday::Helpers.format_span_name(attrs, http_method)
4242
tracer.in_span(
4343
span_name, attributes: attrs, kind: config.fetch(:span_kind)
4444
) do |span|

instrumentation/http/lib/opentelemetry/instrumentation/http/helpers.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module Instrumentation
99
module HTTP
1010
# Helper methods for HTTP instrumentation
1111
module Helpers
12-
class << self
13-
def determine_span_name(attributes, http_method)
14-
template = attributes['url.template']
15-
template ? "#{http_method} #{template}" : http_method
16-
end
12+
extend self
13+
14+
def format_span_name(attributes, http_method)
15+
template = attributes['url.template']
16+
template ? "#{http_method} #{template}" : http_method
1717
end
1818
end
1919
end

0 commit comments

Comments
 (0)