Liking cljdoc? Tell your friends :D

raven.client

A netty-based Sentry client.

A netty-based Sentry client.
raw docstring

add-breadcrumb!clj

(add-breadcrumb! breadcrumb)
(add-breadcrumb! context breadcrumb)

Append a breadcrumb to the list of breadcrumbs.

The context is expected to be a map, and if no context is specified, a thread-local storage map will be used instead.

Append a breadcrumb to the list of breadcrumbs.

The context is expected to be a map, and if no context is specified, a
thread-local storage map will be used instead.
sourceraw docstring

add-breadcrumbs-to-payloadclj

(add-breadcrumbs-to-payload context payload)
source

add-contexts-to-payloadclj

(add-contexts-to-payload payload)

Add relevant bits of sentry.interfaces.Contexts to our payload.

Add relevant bits of sentry.interfaces.Contexts to our payload.
sourceraw docstring

add-exception!clj

(add-exception! e)
(add-exception! context e)

Add an exception to the context (or a thread-local storage).

Add an exception to the context (or a thread-local storage).
sourceraw docstring

add-fingerprint!clj

(add-fingerprint! fingerprint)
(add-fingerprint! context fingerprint)

Add a custom fingerprint to the context (or a thread-local storage).

Add a custom fingerprint to the context (or a thread-local storage).
sourceraw docstring

add-fingerprint-to-payloadclj

(add-fingerprint-to-payload context payload)

If the context provides a fingerprint override entry, pass it to the payload.

If the context provides a fingerprint override entry, pass it to the payload.
sourceraw docstring

add-full-ring-request!clj

(add-full-ring-request! request)
(add-full-ring-request! context request)

Add HTTP information to the Sentry payload from a ring-compliant request map, including the request body

Add HTTP information to the Sentry payload from a ring-compliant request
map, including the request body
sourceraw docstring

add-http-info!clj

(add-http-info! http-info)
(add-http-info! context http-info)

Add HTTP information to the sentry context (or a thread-local storage).

Add HTTP information to the sentry context (or a thread-local storage).
sourceraw docstring

add-http-info-to-payloadclj

(add-http-info-to-payload context payload)
source

add-ring-request!clj

(add-ring-request! request)
(add-ring-request! context request)

Add HTTP information to the Sentry payload from a ring-compliant request map, excluding its body.

Add HTTP information to the Sentry payload from a ring-compliant request
map, excluding its body.
sourceraw docstring

add-tag!clj

(add-tag! tag value)
(add-tag! context tag value)

Add a custom tag to the context (or a thread-local storage).

Add a custom tag to the context (or a thread-local storage).
sourceraw docstring

add-tags!clj

(add-tags! tags)
(add-tags! context tags)

Add custom tags to the context (or a thread-local storage).

Add custom tags to the context (or a thread-local storage).
sourceraw docstring

add-tags-to-payloadclj

(add-tags-to-payload context payload tags)

If the context provides tags or we were given tags directly during capture!, ad them to the payload. Tags provided by capture! override tags provided by the context map.

If the context provides tags or we were given tags directly during capture!,
ad them to the payload. Tags provided by capture! override tags provided by the
context map.
sourceraw docstring

add-user!clj

(add-user! user)
(add-user! context user)

Add user information to the sentry context (or a thread-local storage).

Add user information to the sentry context (or a thread-local storage).
sourceraw docstring

add-user-to-payloadclj

(add-user-to-payload context payload)
source

add-uuid-to-payloadclj

(add-uuid-to-payload context payload)
source

auth-headerclj

(auth-header ts key sig)

Compute the Sentry auth header.

Compute the Sentry auth header.
sourceraw docstring

capture!clj

(capture! dsn ev)
(capture! dsn ev tags)
(capture! context dsn event tags)

Send a capture over the network. If ev is an exception, build an appropriate payload for the exception.

Send a capture over the network. If `ev` is an exception,
build an appropriate payload for the exception.
sourceraw docstring

clear-contextclj

(clear-context)

Reset this thread's context

Reset this thread's context
sourceraw docstring

clear-http-stubclj

(clear-http-stub)

A convenience function to clear the http stub.

This stub is only used when passing a DSN of ':memory:' to the lib.

A convenience function to clear the http stub.

This stub is only used when passing a DSN of ':memory:' to the lib.
sourceraw docstring

default-payloadclj

(default-payload ts localhost)

Provide default values for a payload.

Provide default values for a payload.
sourceraw docstring

dsn-patternclj

The shape of a sentry DSN

The shape of a sentry DSN
sourceraw docstring

exception->evclj

(exception->ev e)

Format an exception in an appropriate manner.

Format an exception in an appropriate manner.
sourceraw docstring

exception-framesclj

(exception-frames e)
source

exception?clj

(exception? e)

Is the value an exception?

Is the value an exception?
sourceraw docstring

frame->infoclj

(frame->info frame)

Format a stack-trace frame.

Format a stack-trace frame.
sourceraw docstring

get-contextsclj

(get-contexts)
source

get-full-ring-urlclj

(get-full-ring-url request)

Given a ring compliant request object, return the full URL. This was lifted from ring's source code so as to not depend on it.

Given a ring compliant request object, return the full URL.
This was lifted from ring's source code so as to not depend on it.
sourceraw docstring

get-hostnameclj

(get-hostname)

Get the current hostname by shelling out to 'hostname'

Get the current hostname by shelling out to 'hostname'
sourceraw docstring

get-linux-pretty-nameclj

(get-linux-pretty-name)

Get the Linux distribution pretty name from /etc/os-release resp. /usr/lib/os-release.

Get the Linux distribution pretty name from /etc/os-release resp. /usr/lib/os-release.
sourceraw docstring

get-os-contextclj

(get-os-context)
source

get-os-name-linuxclj

(get-os-name-linux)

Get a human-readable name for the current linux distribution from /etc/os-release, caching the output

Get a human-readable name for the current linux distribution from /etc/os-release,
caching the output
sourceraw docstring

get-ring-envclj

(get-ring-env request)
source

hostnameclj

(hostname [age val])

Fetches the hostname by shelling to 'hostname', whenever the given age is stale enough. If the given age is recent, as defined by hostname-refresh-interval, returns age and val instead.

Fetches the hostname by shelling to 'hostname', whenever the given age
is stale enough. If the given age is recent, as defined by
hostname-refresh-interval, returns age and val instead.
sourceraw docstring

hostname-refresh-intervalclj

How often to allow reading /etc/hostname, in seconds.

How often to allow reading /etc/hostname, in seconds.
sourceraw docstring

http-requests-payload-stubclj

Storage for stubbed http 'requests' - actually, we store just the request's payload in clojure form (before it's serialized to JSON).

Storage for stubbed http 'requests' - actually, we store just the request's
payload in clojure form (before it's serialized to JSON).
sourceraw docstring

localhostclj

(localhost)

Returns the local host name.

Returns the local host name.
sourceraw docstring

make-breadcrumb!clj

(make-breadcrumb! message category)
(make-breadcrumb! message category level)
(make-breadcrumb! message category level timestamp)

Create a breadcrumb map.

level can be one of: ['debug' 'info' 'warning' 'warn' 'error' 'exception' 'critical' 'fatal']

Create a breadcrumb map.

level can be one of:
  ['debug' 'info' 'warning' 'warn' 'error' 'exception' 'critical' 'fatal']
sourceraw docstring

make-http-infoclj

(make-http-info url method)
(make-http-info url method headers query_string cookies data env)
source

make-ring-request-infoclj

(make-ring-request-info request)

Create well-formatted context map for the Sentry 'HTTP' interface by extracting the information from a standard ring-compliant 'request', as defined in https://github.com/ring-clojure/ring/wiki/Concepts#requests

Create well-formatted context map for the Sentry 'HTTP' interface by
extracting the information from a standard ring-compliant 'request', as
defined in https://github.com/ring-clojure/ring/wiki/Concepts#requests
sourceraw docstring

make-userclj

(make-user id)
(make-user id email ip-address username)

Create a user map.

Create a user map.
sourceraw docstring

md5clj

(md5 x)
source

merged-payloadclj

(merged-payload event ts localhost)

Return a payload map depending on the type of the event.

Return a payload map depending on the type of the event.
sourceraw docstring

parse-dsnclj

(parse-dsn dsn)

Extract DSN parameters into a map

Extract DSN parameters into a map
sourceraw docstring

payloadclj

(payload context event ts localhost tags)

Build a full valid payload.

Build a full valid payload.
sourceraw docstring

perform-http-requestclj

(perform-http-request context dsn ts payload)
source

perform-in-memory-requestclj

(perform-in-memory-request payload)

Perform an in-memory pseudo-request, actually just storing the payload on a storage atom, to let users inspect/retrieve the payload in their tests.

Perform an in-memory pseudo-request, actually just storing the payload on a storage
atom, to let users inspect/retrieve the payload in their tests.
sourceraw docstring

sentry-uuid!clj

(sentry-uuid!)

A random UUID, without dashes

A random UUID, without dashes
sourceraw docstring

signclj

(sign payload ts key secret)

HMAC-SHA1 for Sentry's format.

HMAC-SHA1 for Sentry's format.
sourceraw docstring

slurp-pretty-nameclj

(slurp-pretty-name path)
source

thread-storageclj

Storage for this particular thread.

This is a little funny in that it needs to be dereferenced once in order to obtain an atom that is sure to be per-thread.

Storage for this particular thread.

This is a little funny in that it needs to be dereferenced once in order to
obtain an atom that is sure to be per-thread.
sourceraw docstring

timestamp!clj

(timestamp!)

Retrieve a timestamp.

The format used is the same as python's 'time.time()' function - the number of seconds since the epoch, as a double to acount for fractional seconds (since the granularity is miliseconds).

Retrieve a timestamp.

The format used is the same as python's 'time.time()' function - the number
of seconds since the epoch, as a double to acount for fractional seconds (since
the granularity is miliseconds).
sourceraw docstring

user-agentclj

Our advertized UA

Our advertized UA
sourceraw docstring

validate-payloadclj

(validate-payload merged)

Returns a validated payload.

Returns a validated payload.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close