Skip to content

Conversation

@Roman505050
Copy link

Issue #, if available:

#422

Description of changes:

Added null checks in XrayCommandListener methods (started, succeeded, failed) to gracefully skip tracing when begin_subsegment() returns None. This fixes AttributeError: 'NoneType' object has no attribute 'put_annotation' when MongoDB operations run outside an active X-Ray segment.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Roman505050 Roman505050 requested a review from a team as a code owner January 6, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant