Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ObanTelemetry to check if it needs to report errors #8

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

MvanDiemen
Copy link
Member

Not all errors in Oban always need to be reported as errors. If Oban is setup to have multiple attempts with the potential of reaching timeouts or rate limits these are expected errors and not reportable.

Oban has an example on how to deal with expected failures see documentation which is the inspiration of adding reportable?/1 as a check.

As Tracing.ObanWorker is not in the application to decide this, allowing each Oban worker module to specify reportable?/1 will give back the decisiveness to the developer to decide on a worker by worker basis.

@MvanDiemen MvanDiemen force-pushed the reportable_oban_telemetry branch from a489029 to 8ce7aaf Compare August 23, 2024 06:47
@MvanDiemen MvanDiemen merged commit bdf3355 into main Aug 23, 2024
2 checks passed
@MvanDiemen MvanDiemen deleted the reportable_oban_telemetry branch August 23, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant