Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_xray_sdk.core.exceptions.exceptions.SegmentNameMissingException: Segment name is required. #401

Open
BhushanPDS opened this issue Aug 23, 2023 · 1 comment
Labels

Comments

@BhushanPDS
Copy link

Hi ,
I am facing segment required issue.
I have follow below tutorial:
https://docs.aws.amazon.com/xray-sdk-for-python/latest/reference/frameworks.html#configure-x-ray-recorder
I have django version 4 in my code.
Can you please help me.

Thanks

@carolabadeer
Copy link
Contributor

carolabadeer commented 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_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants