Class: OpenTelemetry::Instrumentation::HTTP::Instrumentation
- Inherits:
-
Base
- Object
- Base
- OpenTelemetry::Instrumentation::HTTP::Instrumentation
- Defined in:
- lib/opentelemetry/instrumentation/http/instrumentation.rb
Overview
The Instrumentation class contains logic to detect and install the Http instrumentation
Instance Method Summary collapse
Instance Method Details
#patch ⇒ Object
21 22 23 24 |
# File 'lib/opentelemetry/instrumentation/http/instrumentation.rb', line 21 def patch ::HTTP::Client.prepend(Patches::Client) ::HTTP::Connection.prepend(Patches::Connection) end |
#require_dependencies ⇒ Object
26 27 28 29 |
# File 'lib/opentelemetry/instrumentation/http/instrumentation.rb', line 26 def require_dependencies require_relative 'patches/client' require_relative 'patches/connection' end |