aws_xray_sdk.ext.pymongo package¶
Submodules¶
aws_xray_sdk.ext.pymongo.patch module¶
- class aws_xray_sdk.ext.pymongo.patch.XrayCommandListener(record_full_documents)¶
Bases:
CommandListenerA listener that traces all pymongo db commands to AWS Xray. Creates a subsegment for each mongo db conmmand.
name: ‘mydb@127.0.0.1:27017’ records all available information provided by pymongo, except for command, reply and failure details. They may contain business secrets. If you insist to record them, specify record_full_documents=True, which also stops the redaction of pymongo exception messages, i.e. of error documents and duplicate key values, in the whole process, from when the listener is created.
- failed(event)¶
Abstract method to handle a CommandFailedEvent.
- Parameters:
event – An instance of
CommandFailedEvent.
- started(event)¶
Abstract method to handle a CommandStartedEvent.
- Parameters:
event – An instance of
CommandStartedEvent.
- succeeded(event)¶
Abstract method to handle a CommandSucceededEvent.
- Parameters:
event – An instance of
CommandSucceededEvent.
- aws_xray_sdk.ext.pymongo.patch.patch(record_full_documents=False)¶
Module contents¶
- aws_xray_sdk.ext.pymongo.patch(record_full_documents=False)¶