Structured logging exceptions missing in Elastic
When an exception is raised, context is populated for exception.message
and exception.backtrace
. In Stackdriver logs, Anthropic exceptions are present that do not follow structured logging format:
Exception in ASGI application
Source: https://cloudlogging.app.goo.gl/o6Yz8gNN8c4NkABu9
In Elastic logs, said Anthropic exceptions appear to be missing:
Source: https://log.gprd.gitlab.net/app/r/s/xjmJh
Worth noting 3 hits in Stackdriver compared to 2 hits in Elastic. As a result, viewing application logs directly in Elastic is missing critical context for Anthropic exceptions that are actively being raised.