Sha256: cdb831d1d84d043fb0a3823c58784e6830b9c598d9274e46ccf33a3c7c33d5c3

Contents?: true

Size: 493 Bytes

Versions: 19

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

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

require_relative "open_telemetry_tracer"

module Sbmt
  module KafkaConsumer
    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

19 entries across 19 versions & 1 rubygems

Version Path
sbmt-kafka_consumer-3.3.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-3.2.2 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-3.2.1 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-3.2.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-3.1.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.8.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-3.0.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.7.1 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.7.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.6.1 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.6.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.5.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.4.1 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.4.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.3.1 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.3.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.2.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.1.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb
sbmt-kafka_consumer-2.0.0 lib/sbmt/kafka_consumer/instrumentation/open_telemetry_loader.rb