aws-xray-sdk · PyPI
https://pypi.org/project/aws-xray-sdk28.04.2021 · from aws_xray_sdk.core import xray_recorder # Start a segment if no segment exist segment1 = xray_recorder. begin_segment ('segment_name') # This will add the key value pair to segment1 as it is active xray_recorder. put_annotation ('key', 'value') # Start a subsegment so it becomes the active trace entity subsegment1 = xray_recorder. begin_subsegment …
aws-xray-sdk 2.6.0 on PyPI - Libraries.io
https://libraries.io/pypi/aws-xray-sdk08.08.2017 · from aws_xray_sdk. core import xray_recorder # Start a segment if no segment exist segment1 = xray_recorder. begin_segment ('segment_name') # This will add the key value pair to segment1 as it is active xray_recorder. put_annotation ('key', 'value') # Start a subsegment so it becomes the active trace entity subsegment1 = xray_recorder. begin_subsegment …