aws_xray_sdk.core.async_recorder

Module Contents

class AsyncSegmentContextManager

Bases:aws_xray_sdk.core.models.segment.SegmentContextManager

class AsyncSubsegmentContextManager

Bases:aws_xray_sdk.core.models.subsegment.SubsegmentContextManager

class AsyncAWSXRayRecorder

Bases:aws_xray_sdk.core.recorder.AWSXRayRecorder

capture_async(self, name=None)

A decorator that records enclosed function in a subsegment. It only works with asynchronous functions.

params str name: The name of the subsegment. If not specified the function name will be used.

in_segment_async(self, name=None, **segment_kwargs)

Return a segment async context manger.

Parameters:
  • name (str) – the name of the segment
  • segment_kwargs (dict) – remaining arguments passed directly to begin_segment
in_subsegment_async(self, name=None, **subsegment_kwargs)

Return a subsegment async context manger.

Parameters:
  • name (str) – the name of the segment
  • segment_kwargs (dict) – remaining arguments passed directly to begin_segment