lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.25.2 vs lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.25.3
- old
+ new
@@ -11,10 +11,10 @@
# Module to prepend to Redis::Client for instrumentation
module RedisV4Client
MAX_STATEMENT_LENGTH = 500
private_constant :MAX_STATEMENT_LENGTH
- def process(commands) # rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
+ def process(commands)
return super unless instrumentation_config[:trace_root_spans] || OpenTelemetry::Trace.current_span.context.valid?
host = options[:host]
port = options[:port]