aws_xray_sdk.ext.pymongo.patch

Module Contents

class XrayCommandListener(record_full_documents)

Bases:pymongo.monitoring.CommandListener

A 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 and reply. They may contain business secrets. If you insist to record them, specify record_full_documents=True.

started(self, event)
succeeded(self, event)
failed(self, event)
patch(record_full_documents=False)