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
23 24 25 26 |
# File 'lib/opentelemetry/instrumentation/http/instrumentation.rb', line 23 def patch ::HTTP::Client.prepend(Patches::Client) ::HTTP::Connection.prepend(Patches::Connection) end |
#require_dependencies ⇒ Object
28 29 30 31 |
# File 'lib/opentelemetry/instrumentation/http/instrumentation.rb', line 28 def require_dependencies require_relative 'patches/client' require_relative 'patches/connection' end |