Sha256: 9e0909f667789fcdb2453cbe5d6d9ff4d1fc8fac4157a55f4204d6901b0a8035
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true require 'redis/connection/ruby' module OpenTracing module Instrumentation module Redis # Redis tracing mixin config class Config DEFAULT_OPERATION_NAME_PATTERN = \ 'redis(command=%<command>s)' # Safe by default DEFAULT_LOG_ARGS = false DEFAULT_LOG_REPLY = false DEFAULT_COMPONENT = 'kv' attr_accessor :tracer, :operation_name_pattern, :log_args, :log_reply, :component 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 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opentracing-instrumentation-0.2.1 | lib/opentracing/instrumentation/redis/config.rb |
opentracing-instrumentation-0.2.0 | lib/opentracing/instrumentation/redis/config.rb |