Closed danielspofford closed 2 months ago
What version are you running? 10.7.1
Ephemeral error in practice. This pattern https://github.com/getsentry/sentry-elixir/blob/10.7.1/lib/sentry/transport/sender.ex#L77 does not always match. It is possible for the right hand side to be :too_many_retries, perhaps from https://github.com/getsentry/sentry-elixir/blob/10.7.1/lib/sentry/transport.ex#L45.
:too_many_retries
The general approach in maybe_log_send_result/2 is to gracefully log and return, so my expectation for this error case would be the same rather than raising an exception.
maybe_log_send_result/2
@danielspofford Absolutely, we have an error message that should have been logged here. Working on a PR for this. Thanks for the report!
Awesome @savhappy, thank you!
Environment
What version are you running? 10.7.1
Steps to Reproduce
Ephemeral error in practice. This pattern https://github.com/getsentry/sentry-elixir/blob/10.7.1/lib/sentry/transport/sender.ex#L77 does not always match. It is possible for the right hand side to be
:too_many_retries
, perhaps from https://github.com/getsentry/sentry-elixir/blob/10.7.1/lib/sentry/transport.ex#L45.Expected Result
The general approach in
maybe_log_send_result/2
is to gracefully log and return, so my expectation for this error case would be the same rather than raising an exception.Actual Result