Skip to content

Commit 252feba

Browse files
committed
record exception when exc is not a HTTPError
1 parent 20b2846 commit 252feba

File tree

1 file changed

+1
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado

1 file changed

+1
-0
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def _finish_tracing_callback(
125125
status_code=StatusCode.ERROR,
126126
description=description,
127127
)
128+
span.record_exception(exc)
128129
else:
129130
response = future.result()
130131
status_code = response.code

0 commit comments

Comments
 (0)