Patcher
enables patching of ‘httpx’ with datadog components.
Included modules
- Datadog::Tracing::Contrib::Patcher
Public Instance methods
patch()
loads a session instannce with the datadog plugin, and replaces the base HTTPX::Session
with the patched session class.
[show source]
# File lib/httpx/adapters/datadog.rb 310 def patch 311 datadog_session = ::HTTPX.plugin(Plugin) 312 313 ::HTTPX.send(:remove_const, :Session) 314 ::HTTPX.send(:const_set, :Session, datadog_session.class) 315 end
target_version()
[show source]
# File lib/httpx/adapters/datadog.rb 304 def target_version 305 Integration.version 306 end