Sha256: 1d98a18a7ad083bf028b5e7e5c6475a3476f4c5f83812b3aca6708e6c2266887

Contents?: true

Size: 853 Bytes

Versions: 7

Compression:

Stored size: 853 Bytes

Contents

# frozen_string_literal: true

module OpenTracing
  module Instrumentation
    module Thrift
      # Config for TracedProtocol
      class TracedProtocolConfig
        attr_accessor :tracer,
                      :tags_builder,
                      :operation_name_builder,
                      :error_writer,
                      :logger

        def initialize(
          tracer: OpenTracing.global_tracer,
          tags_builder: TracedProtocolTagsBuilder.new,
          operation_name_builder: TracedProtocolOperationNameBuilder.new,
          error_writer: Common::ErrorWriter.new,
          logger: nil
        )
          @tracer = tracer
          @tags_builder = tags_builder
          @operation_name_builder = operation_name_builder
          @error_writer = error_writer
          @logger = logger
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opentracing-instrumentation-0.1.14 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.13 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.12 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.11 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.10 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.9 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb
opentracing-instrumentation-0.1.8 lib/opentracing/instrumentation/thrift/traced_protocol_config.rb