Log Export Variables
Queue Metrics
WhenAP_OTEL_QUEUE_METRICS_ENABLED=true and OTEL_EXPORTER_OTLP_ENDPOINT is set, the app container also exports BullMQ queue metrics to <endpoint>/v1/metrics every 60 seconds, so your monitoring stack receives queue depth without exposing any HTTP admin surface.
The gauge covers all queues, including dedicated worker-group queues. Each data point carries
service.name=activepieces-api and host.name resource attributes, so replicas of the app container produce distinguishable series.
Sampling Variables
Events with level
warn or error are always kept regardless of sampling configuration.
AP_OTEL_ENABLED=true enables the OTLP log drain; AP_OTEL_QUEUE_METRICS_ENABLED=true enables queue metrics export. OpenTelemetry tracing is not emitted.