Sha256: 5445f66e4ab10159a48fa6ef608af1422f2f445b709275fcbd42f0eca84612f1
Contents?: true
Size: 983 Bytes
Versions: 9
Compression:
Stored size: 983 Bytes
Contents
# frozen_string_literal: true require 'redis/connection/ruby' module OpenTracing module Instrumentation module Redis # Redis tracing mixin config class Config DEFAULT_SPAN_NAME = 'redis_command' # Safe by default DEFAULT_LOG_ARGS = false DEFAULT_LOG_REPLY = false DEFAULT_COMPONENT = 'kv' attr_accessor :tracer attr_accessor :span_name attr_accessor :log_args attr_accessor :log_reply attr_accessor :component def initialize( tracer: OpenTracing.global_tracer, span_name: DEFAULT_SPAN_NAME, log_args: DEFAULT_LOG_ARGS, log_reply: DEFAULT_LOG_REPLY, component: DEFAULT_COMPONENT ) @tracer = tracer @span_name = span_name @log_args = log_args @log_reply = log_reply @component = component yield self if block_given? end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems