lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.25.4 vs lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.25.6

- old
+ new

@@ -41,10 +41,10 @@ else 'PIPELINED' end instrumentation_tracer.in_span(span_name, attributes: attributes, kind: :client) do |s| - super(commands).tap do |reply| + super.tap do |reply| if reply.is_a?(::Redis::CommandError) s.record_exception(reply) s.status = Trace::Status.error(reply.message) end end