Skip to content

Commit aaf989b

Browse files
committed
Update plugin.rb
1 parent 339613a commit aaf989b

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/httpx/lib/opentelemetry/instrumentation/httpx

1 file changed

+1
-1
lines changed

instrumentation/httpx/lib/opentelemetry/instrumentation/httpx/plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def call(request)
5151
def finish(response, span)
5252
span.set_attribute(OpenTelemetry::SemanticConventions::Trace::HTTP_STATUS_CODE, response.status)
5353
response.raise_for_status
54-
rescue HTTPX::HTTPError => err
54+
rescue ::HTTPX::Error => err
5555
span.record_exception(err)
5656
span.status = Trace::Status.error(err.to_s)
5757
ensure

0 commit comments

Comments
 (0)