class OpenTracing::Instrumentation::Redis::Config

Redis tracing mixin config

Constants

DEFAULT_COMPONENT
DEFAULT_LOG_ARGS

Safe by default

DEFAULT_LOG_REPLY
DEFAULT_OPERATION_NAME_PATTERN

Attributes

component[RW]
log_args[RW]
log_reply[RW]
operation_name_pattern[RW]
tracer[RW]

Public Class Methods

new( tracer: OpenTracing.global_tracer, operation_name_pattern: DEFAULT_OPERATION_NAME_PATTERN, log_args: DEFAULT_LOG_ARGS, log_reply: DEFAULT_LOG_REPLY, component: DEFAULT_COMPONENT ) { |self| ... } click to toggle source
# File lib/opentracing/instrumentation/redis/config.rb, line 23
def initialize(
  tracer: OpenTracing.global_tracer,
  operation_name_pattern: DEFAULT_OPERATION_NAME_PATTERN,
  log_args: DEFAULT_LOG_ARGS,
  log_reply: DEFAULT_LOG_REPLY,
  component: DEFAULT_COMPONENT
)
  @tracer = tracer
  @operation_name_pattern = operation_name_pattern
  @log_args = log_args
  @log_reply = log_reply
  @component = component

  yield self if block_given?
end