Module: Datadog::Tracing::Contrib::Kafka::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/kafka/patcher.rb

Overview

Patcher enables patching of ‘kafka’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



21
22
23
24
# File 'lib/datadog/tracing/contrib/kafka/patcher.rb', line 21

def patch
  # Subscribe to Kafka events
  Events.subscribe!
end

.target_versionObject



17
18
19
# File 'lib/datadog/tracing/contrib/kafka/patcher.rb', line 17

def target_version
  Integration.version
end