This is my Python code with AWS X-Ray
There is no Error but it is not sending anything to X-Ray Daemon.
What is missing in this code ?
from aws_xray_sdk.core import xray_recorder
xray_recorder.configure(daemon_address="xx.xx.xx.xx:2000")
# Start a segment
segment = xray_recorder.begin_segment('segment_name')
# Start a subsegment
subsegment = xray_recorder.begin_subsegment('subsegment_name')
# Add metadata and annotations
segment.put_metadata('key', dict, 'namespace')
subsegment.put_annotation('key', 'value')
# Close the subsegment and segment
xray_recorder.end_subsegment()
xray_recorder.end_segment()```