Sparrow.Event (sparrow v1.1.2) View Source

Helpers to form catched error event to Sentry's acceptable format. Use it if you want to make your own reducer.

Link to this section Summary

Link to this section Types

Specs

t() :: %Sparrow.Event{
  breadcrumbs: term(),
  contexts: term(),
  environment: term(),
  event_id: term(),
  exception: term(),
  extra: term(),
  fingerprint: term(),
  level: term(),
  message: term(),
  modules: term(),
  platform: term(),
  project: term(),
  release: term(),
  request: term(),
  server_name: term(),
  stacktrace: term(),
  tags: term(),
  timestamp: term(),
  user: term()
}

Link to this section Functions

Link to this function

new(unix_timestamp \\ System.system_time(:microsecond))

View Source
Link to this function

put_error(event, reason)

View Source
Link to this function

put_exception(event, kind, exception, stacktrace \\ [])

View Source
Link to this function

put_fingerprint(event, kind, reason, pid)

View Source
Link to this function

put_message(event, message)

View Source
Link to this function

put_plug_conn(event, conn)

View Source
Link to this function

put_stacktrace(event, stacktrace)

View Source