Skip to content

Commit 390be5f

Browse files
Do not treat cancellation as span error
1 parent c550f48 commit 390be5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/utils/telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ async def async_wrapper(*args, **kwargs) -> Any:
170170
raise
171171
# asyncio.CancelledError extends from BaseException
172172
except asyncio.CancelledError as ce:
173+
exception = ce
173174
logger.debug(f'CancelledError in span {actual_span_name}')
174175
span.record_exception(ce)
175-
span.set_status(StatusCode.ERROR, description=str(ce))
176176
raise
177177
finally:
178178
if attribute_extractor:

0 commit comments

Comments
 (0)