lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.6.0 vs lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.7.0
- old
+ new
@@ -90,10 +90,10 @@
)
end
if datum.key?(:error)
span.status = OpenTelemetry::Trace::Status.new(
- OpenTelemetry::Trace::Status::UNKNOWN_ERROR,
+ OpenTelemetry::Trace::Status::ERROR,
description: "Request has failed: #{datum[:error]}"
)
end
span.finish