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.
raw docstring

add-breadcrumbs-to-payloadclj

(add-breadcrumbs-to-payload context payload)

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.
raw 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).
raw docstring

add-extra!clj

(add-extra! extra)
(add-extra! context extra)

Add a map of extra data to the context (or a thread-local storage) preserving its previous keys.

Add a map of extra data to the context (or a thread-local storage)
preserving its previous keys.
raw 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).
raw 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.
raw 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
raw 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).
raw docstring

add-http-info-to-payloadclj

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

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.
raw 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).
raw 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).
raw 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.
raw 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).
raw docstring

add-user-to-payloadclj

(add-user-to-payload context payload)

add-uuid-to-payloadclj

(add-uuid-to-payload context payload)

auth-headerclj

(auth-header ts key sig)

Compute the Sentry auth header.

Compute the Sentry auth header.
raw 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.
raw docstring

clear-contextclj

(clear-context)

Reset this thread's context

Reset this thread's context
raw 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.
raw docstring

closable?clj


close-http-connectionclj

(close-http-connection response)

When having a connection pool set, the body cannot be closed as it's of a different type.

When having a connection pool set, the body
cannot be closed as it's of a different type.
raw docstring

default-payloadclj

(default-payload ts localhost)

Provide default values for a payload.

Provide default values for a payload.
raw docstring

dsn-patternclj

The shape of a sentry DSN

The shape of a sentry DSN
raw docstring

get-contextsclj

(get-contexts)

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.
raw docstring

get-hostnameclj

(get-hostname)

Get the current hostname by shelling out to 'hostname'

Get the current hostname by shelling out to 'hostname'
raw 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.
raw docstring

get-os-contextclj

(get-os-context)

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
raw docstring

get-ring-envclj

(get-ring-env request)

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.
raw docstring

hostname-refresh-intervalclj

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

How often to allow reading /etc/hostname, in seconds.
raw 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).
raw docstring

json-mapperclj


localhostclj

(localhost)

Returns the local host name.

Returns the local host name.
raw 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']
raw docstring

make-http-infoclj

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

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
raw docstring

make-userclj

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

Create a user map.

Create a user map.
raw docstring

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.
raw docstring

parse-dsnclj

(parse-dsn dsn)

Extract DSN parameters into a map

Extract DSN parameters into a map
raw docstring

payloadclj

(payload context event ts localhost tags)

Build a full valid payload.

Build a full valid payload.
raw docstring

perform-http-requestclj

(perform-http-request context dsn ts payload)

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.
raw docstring

re-throw-responseclj

(re-throw-response response)

Throw the response in case of its status was not 2xx as we don't want Sentry errors to be unnoticed.

Throw the response in case of its status was not 2xx
as we don't want Sentry errors to be unnoticed.
raw docstring

release!clj

(release! webhook-endpoint payload)

Release new application version with provided webhook release URL.

Release new application version with provided webhook release URL.
raw docstring

sentry-uuid!clj

(sentry-uuid!)

A random UUID, without dashes

A random UUID, without dashes
raw docstring

signclj

(sign payload ts key secret)

HMAC-SHA1 for Sentry's format.

HMAC-SHA1 for Sentry's format.
raw docstring

slurp-pretty-nameclj

(slurp-pretty-name path)

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.
raw 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).
raw docstring

user-agentclj

Our advertized UA

Our advertized UA
raw docstring

validate-payloadclj

(validate-payload merged)

Returns a validated payload.

Returns a validated payload.
raw docstring

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

× close