aws_xray_sdk.ext.django.middleware

Module Contents

log
USER_AGENT_KEY = HTTP_USER_AGENT
X_FORWARDED_KEY = HTTP_X_FORWARDED_FOR
REMOTE_ADDR_KEY = REMOTE_ADDR
HOST_KEY = HTTP_HOST
CONTENT_LENGTH_KEY = content-length
class XRayMiddleware(get_response)

Bases:object

Middleware that wraps each incoming request to a segment.

__call__(self, request)
process_exception(self, request, exception)

Add exception information and fault flag to the current segment.