Download the PHP package enthusiast/worker-template without Composer
On this page you can find all versions of the php package enthusiast/worker-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package worker-template
Enthusiast worker template
Sharing common worker parts: instrumentation, queue logic etc.
Shared infra env
OpenBao keys (as ops inject them) are copied onto the app prefix. Call before
config reads $_ENV:
| OpenBao | App (API_ / WORKER_INTEGRATION_ / …) |
|---|---|
KAFKA_BROKERS, KAFKA_SASL_USERNAME, KAFKA_SASL_PASSWORD |
*_KAFKA_BROKERS, *_KAFKA_SASL_* |
REDIS_HOSTS, REDIS_PASSWORD |
*_REDIS_HOSTS, *_REDIS_PASSWORD |
LM_CH_* |
*_CLICKHOUSE_* |
LM_PG_* |
*_POSTGRES_* |
DRAFT_PG_* |
*_DB_DRAFT_* |
PANEL_PG_* |
*_PANEL_POSTGRES_* |
Filled only when the app key is empty. Topics, Redis persistent ids and Svix stay app-local.
The map is SharedEnv::MAP.
Kafka tracing
AbstractBufferedConsumer does not manage spans. Lifecycle is owned by
open-telemetry/opentelemetry-auto-ext-rdkafka:
KafkaConsumer::consume→ start consumer span (+ parent from messagetraceparent)- app processes the message (PSR-3 span-events hook writes to current span)
acknowledge→commit/commitAsync→ end span
Do not call Span::getCurrent()->end() in the consumer loop: it races the commit
hook and leaks context scopes, so later messages inherit the same trace.
PSR-3 → span events (Jaeger-friendly)
Jaeger does not store OTLP Logs / Loki streams. This package can hook every PSR-3
logger call onto the active span as an event (Span::addEvent).
Works alongside open-telemetry/opentelemetry-auto-psr3 (inject / export).
Enable
Disable:
Requires ext-opentelemetry. Registered via Composer files autoload
(_register_psr3_span_events.php) — no DI changes in apps.
All versions of worker-template with dependencies
ext-pcntl Version *
ext-redis Version *
ext-rdkafka Version *
open-telemetry/api Version ^1.0
open-telemetry/sdk Version ^1.14
enqueue/rdkafka Version ^0.10.27
yiisoft/yii-console Version ^2.4
psr/log Version ^2.0 || ^3.0