Sha256: 371ede44c5021992786ee2ef3eb7e7d70d73cc221558ab0b3b880d9cf1e9bdcd
Contents?: true
Size: 1.06 KB
Versions: 10
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 attr_accessor :operation_name_pattern attr_accessor :log_args attr_accessor :log_reply attr_accessor :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
10 entries across 10 versions & 1 rubygems