What Monocle tracks
- Throughput over time with success/error breakdown
- Error rate trends to spot problematic jobs
- Processing time (average and P95) per job
- Queue time between dispatch and processing start
- Retry attempts and failure reasons
- Per-job detail pages with recent executions and error breakdown
How it works
Monocle creates two types of spans for each job:- A producer span when a job is dispatched (enqueued)
- A consumer span when a job is processed by a worker
Span attributes
All job instrumentations must emit these attributes for the Jobs dashboard to work correctly.Standard semconv attributes
These follow the official OpenTelemetry Messaging Semantic Conventions:Monocle attributes
These custom attributes power specific dashboard features:Supported libraries
BullMQ
Redis-backed job queue with priorities, retries, rate limiting, and flows
boringnode/queue
Lightweight job queue for Node.js. Instrumentation is built into the Monocle agent when
@boringnode/queue is installed.Getting started
See the individual instrumentation pages above for setup instructions, or the AdonisJS guide if you are using AdonisJS.Sampling high-volume jobs
If one job runs very often or creates very large traces, use job sampling to reduce trace volume for successful executions while keeping failed executions.config/monocle.ts