class OpenTracing::Instrumentation::Thrift::TracedProcessorTagsBuilder

Tags builder for TracedProcessor

Constants

DEFAULT_STATIC_TAGS

Attributes

static_tags[R]

Public Class Methods

new(static_tags: DEFAULT_STATIC_TAGS) click to toggle source
Calls superclass method
# File lib/opentracing/instrumentation/thrift/traced_processor_tags_builder.rb, line 13
def initialize(static_tags: DEFAULT_STATIC_TAGS)
  super()
  @static_tags = static_tags
end

Public Instance Methods

build_tags(protocol, name, type) click to toggle source
# File lib/opentracing/instrumentation/thrift/traced_processor_tags_builder.rb, line 18
def build_tags(protocol, name, type)
  static_tags
    .merge(build_protocol_tags(protocol))
    .merge(build_message_tags(name, type))
end