Cargo Features

[dependencies]
apalis = { version = "0.6.0", default-features = false, features = ["tracing", "sentry", "prometheus", "retry", "timeout", "limit", "filter", "catch-panic", "layers", "docsrs", "ulid"] }
default = tracing

The tracing feature is set by default whenever apalis is added without default-features = false somewhere in the dependency tree.

tracing default layers?

Support Tracing 👀

Enables tracing and tracing-futures

Affects layers::tracing, layers::WorkerBuilderExt.enable_tracing

sentry layers? = sentry-core, uuid

Support for Sentry exception and performance monitoring

Enables uuid of optional ulid

Affects layers::sentry

prometheus layers? = metrics, metrics-exporter-prometheus

Support Prometheus metrics

Affects layers::prometheus

retry layers?

Support direct retrying jobs

Enables retry of tower

Affects layers::retry, layers::WorkerBuilderExt.retry

timeout layers?

Support timeouts on jobs

Enables timeout of tower

Affects layers::WorkerBuilderExt.timeout

limit layers?

💪 Limit the amount of jobs

Enables limit of tower

Affects layers::limit, layers::WorkerBuilderExt.concurrency, layers::WorkerBuilderExt.rate_limit

filter layers?

Support filtering jobs based on a predicate

Enables filter of tower

Affects layers::WorkerBuilderExt.filter, layers::WorkerBuilderExt.filter_async

catch-panic layers?

Captures panics in executions and convert them to errors

Affects layers::catch_panic, layers::WorkerBuilderExt.catch_panic

layers = catch-panic, filter, limit, prometheus, retry, sentry, timeout, tracing
docsrs = document-features

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

sentry-core sentry?
metrics prometheus?
metrics-exporter-prometheus prometheus?
uuid sentry?

Enables uuid

Needed only for sentry reporting

ulid implicit feature

Enables ulid

ulid:

a Universally Unique Lexicographically Sortable Identifier implementation

document-features docsrs?