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

User-defined event-id #38

Open
devurandom opened this issue Sep 27, 2023 · 0 comments
Open

User-defined event-id #38

devurandom opened this issue Sep 27, 2023 · 0 comments

Comments

@devurandom
Copy link

In Raven 1.7.0 capture is:

(defn capture
"Send a message to a Sentry server.
event-info is a map that should contain a :message key and optional
keys found at https://docs.getsentry.com/hosted/clientdev/#building-the-json-packet"
[dsn event-info]
(send-packet
(merge (parse-dsn dsn)
{:level "error"
:platform "clojure"
:server_name (.getHostName (InetAddress/getLocalHost))
:ts (.getTime (Date.))}
event-info
{:event_id (generate-uuid)})))

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.

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

No branches or pull requests

1 participant