Class: Sbmt::KafkaProducer::Instrumentation::TracingMiddleware

Inherits:
WaterDrop::Middleware
  • Object
show all
Defined in:
lib/sbmt/kafka_producer/instrumentation/tracing_middleware.rb

Instance Method Summary collapse

Constructor Details

#initializeTracingMiddleware

Returns a new instance of TracingMiddleware.



7
8
9
10
11
# File 'lib/sbmt/kafka_producer/instrumentation/tracing_middleware.rb', line 7

def initialize
  super

  append(OpenTelemetryTracer.new) if defined?(OpenTelemetryTracer)
end