sethtrain / raven-clj

A Clojure interface to Sentry
84 stars 29 forks source link

User-defined event-id #38

Open devurandom opened 1 year ago

devurandom commented 1 year ago

In Raven 1.7.0 capture is: https://github.com/sethtrain/raven-clj/blob/6a5fada1793bc0026b4f75c93db1763a54aeb99f/src/raven_clj/core.clj#L61-L73

Raven always overrides event_id. Thus retrying capture (e.g. in case of network errors) would create additional events, making capture not idempotent.

It would we nice if the event_id could be passed in by the caller, so the caller could safely retry capture in case of e.g. network errors.