Module: Datadog::Tracing::Contrib::GRPC::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/tracing/contrib/grpc/patcher.rb
Overview
Patcher enables patching of ‘grpc’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
20 21 22 23 24 |
# File 'lib/datadog/tracing/contrib/grpc/patcher.rb', line 20 def patch require_relative 'intercept_with_datadog' prepend_interceptor end |
.prepend_interceptor ⇒ Object
26 27 28 29 |
# File 'lib/datadog/tracing/contrib/grpc/patcher.rb', line 26 def prepend_interceptor ::GRPC::InterceptionContext .prepend(InterceptWithDatadog) end |
.target_version ⇒ Object
16 17 18 |
# File 'lib/datadog/tracing/contrib/grpc/patcher.rb', line 16 def target_version Integration.version end |