elixir-error-tracker / error-tracker

🐛 An Elixir-based built-in error reporting and tracking solution
https://hex.pm/packages/error_tracker
Apache License 2.0
331 stars 14 forks source link

Add `ErrorTracker.Filter` behavior for modifying error context before saving #94

Open MSE99 opened 5 days ago

MSE99 commented 5 days ago

Adds a ErrorTracker.Filter behavior that users can supply, it has a single function sanitize/1 that takes an error context and returns a new error context which will be saved in the DB.

Closes #88

crbelaus commented 4 days ago

Thanks @MSE99! I took a quick look and the MR looks fantastic. Will do a deeper review soon.