Open alafanechere opened 1 year ago
Sentry issue: CONNECTORS-CI-3J
@pedroslopez what makes Sentry capture an error in the logs: the fact it has an exc_info attribute and/or its log level. In other words: will a WARN log message with exc_info lead to a sentry event?
@alafanechere Only error logs with exc_info lead to a sentry error
We implemented a retry mechanism for transient dagger error. It has proven to be working: e.g; this error :
was retried in the pipeline and the execution ended up being successful.
Still, a sentry error was created, probably because of a not optimal logging strategy that logs with "error" level the retries.
Solution
Make sure retries log using the WARN level. Make sure final failures log using the ERROR level
Questions
@pedroslopez what makes Sentry capture an error in the logs: the fact it has an
exc_info
attribute and/or its log level. In other words: will a WARN log message with exc_info lead to a sentry event?