Sha256: dbb6aef347bacb2651b741f20ad2901a274fc6c6b109005dd9c92d4f6ed54181

Contents?: true

Size: 495 Bytes

Versions: 10

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require "opentelemetry"
require "opentelemetry-common"
require "opentelemetry-instrumentation-base"

require_relative "open_telemetry_tracer"

module Sbmt
  module KafkaProducer
    module Instrumentation
      class OpenTelemetryLoader < ::OpenTelemetry::Instrumentation::Base
        install do |_config|
          OpenTelemetryTracer.enabled = true
        end

        present do
          defined?(OpenTelemetryTracer)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sbmt-kafka_producer-3.2.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-3.1.1 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-3.1.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-3.0.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.2.3 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.2.2 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.2.1 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.2.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.1.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_producer-2.0.0 lib/sbmt/kafka_producer/instrumentation/open_telemetry_loader.rb