lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.22.0 vs lib/opentelemetry/instrumentation/http/instrumentation.rb in opentelemetry-instrumentation-http-0.23.0
- old
+ new
@@ -16,9 +16,11 @@
present do
!(defined?(::HTTP::Client).nil? || defined?(::HTTP::Connection).nil?)
end
+ option :span_name_formatter, default: nil, validate: :callable
+
def patch
::HTTP::Client.prepend(Patches::Client)
::HTTP::Connection.prepend(Patches::Connection)
end