sparrow v1.0.1 Sparrow.Event

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

Link to this type

t()

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))

Link to this function

put_error(event, reason)

Link to this function

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

Link to this function

put_extra(event, extra)

Link to this function

put_fingerprint(event, kind, reason, pid)

Link to this function

put_message(event, message)

Link to this function

put_plug_conn(event, conn)

Link to this function

put_stacktrace(event, stacktrace)