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 wheneverapalis
is added without
somewhere in the dependency tree.default-features = false - 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
Affects
layers::sentry
… - prometheus layers? = metrics, metrics-exporter-prometheus
-
Support Prometheus metrics
Affects
layers::prometheus
… - retry layers?
-
Support direct retrying jobs
Affects
layers::retry
,layers::WorkerBuilderExt.retry
… - timeout layers?
-
Support timeouts on jobs
Affects
layers::WorkerBuilderExt.timeout
… - limit layers?
-
💪 Limit the amount of jobs
Affects
layers::limit
,layers::WorkerBuilderExt.concurrency
,layers::WorkerBuilderExt.rate_limit
… - filter layers?
-
Support filtering jobs based on a predicate
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?