You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aws_xray_sdk.core.exceptions.exceptions.SegmentNameMissingException: Segment name is required. #401
Hello @BhushanPDS,
My first guess about where this error could be coming from based on the documentation above is that AWS_XRAY_TRACING_NAME in the XRAY_RECORDER namespace is still set to None. From the documentation:
Environment variables have higher precedence over user settings. If neither is set, the defaults values shown previously are used. ‘AWS_XRAY_TRACING_NAME’ is required unless specified as an environment variable.
If there is no value other than None being set for AWS_XRAY_TRACING_NAME through an environment variable or in the X-Ray Recorder configuration, it will fallback to the default value of None, which throws a SegmentNameMissingException in this line.
Otherwise, please provide a simple reproduction that can help with finding the root cause of this error.
Activity
carolabadeer commentedon Sep 5, 2023
Hello @BhushanPDS,
My first guess about where this error could be coming from based on the documentation above is that
AWS_XRAY_TRACING_NAMEin theXRAY_RECORDERnamespace is still set toNone. From the documentation:If there is no value other than
Nonebeing set forAWS_XRAY_TRACING_NAMEthrough an environment variable or in the X-Ray Recorder configuration, it will fallback to the default value ofNone, which throws aSegmentNameMissingExceptionin this line.Otherwise, please provide a simple reproduction that can help with finding the root cause of this error.