This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Commit 7778e9a
committed
fix: Check span recording state before ending process span
Adds a check to verify the subscribe span is still recording before
attempting to end the process span in the __exit__ method. This prevents
errors when the span has already been terminated or is no longer active.
This fix ensures proper cleanup of OpenTelemetry spans during subscriber
callback execution and prevents potential errors in the context manager
exit flow.1 parent e6294a1 commit 7778e9a
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments