Skip to content

Provide IGNORE option for AWS_XRAY_CONTEXT_MISSING configuration variable #334

Closed
@NathanielRN

Description

@NathanielRN

Description

In #52, it was noted that calls to unsupported APIs will result in exceptions that break a customer's app. We suggested a workaround where setting AWS_XRAY_CONTEXT_MISSING=LOG_ERROR logs instead of throwing an exception as explained in our X-Ray Java SDK Documentation.

However, there are so many logs that the log file is flooded.

We should update the code to support an option like IGNORE so that neither an exception is raised nor a log message is printed out. (Or we can log at a Debug log level with LOG_DEBUG).

Perhaps we can even make it only log once so that the customer can still notice the issue.

if self.context_missing == 'RUNTIME_ERROR':
raise SegmentNotFoundException(MISSING_SEGMENT_MSG)
else:
log.error(MISSING_SEGMENT_MSG)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions