Skip to content

User-defined event-id #38

@devurandom

Description

@devurandom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions