Skip to content

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

Description

@BhushanPDS

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

Activity

  1. carolabadeer commented on Sep 5, 2023

    @carolabadeer
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions