lib/opentelemetry/instrumentation/redis/patches/client.rb in opentelemetry-instrumentation-redis-0.19.0 vs lib/opentelemetry/instrumentation/redis/patches/client.rb in opentelemetry-instrumentation-redis-0.20.0

- old
+ new

@@ -42,13 +42,10 @@ tracer.in_span(span_name, attributes: attributes, kind: :client) do |s| super(commands).tap do |reply| if reply.is_a?(::Redis::CommandError) s.record_exception(reply) - s.status = Trace::Status.new( - Trace::Status::ERROR, - description: reply.message - ) + s.status = Trace::Status.error(reply.message) end end end end