These instrumentations ship with the agent. Each one activates automatically when its package is installed in your application, and can be configured or disabled with a top-level option in config/monocle.ts.
If @adonisjs/mail is installed, the agent automatically instruments all emails sent through the mail service. Every email appears as a span in your traces with subject, recipients, and transport info. You can monitor email activity in the dedicated Emails dashboard.
To disable:
export default defineConfig({
// ...
mail: false,
})Queue
If @adonisjs/queue (boringqueue) is installed, the agent instruments job dispatch and execution. Jobs appear in the Jobs dashboard with execution count, error rate, and latency metrics.
export default defineConfig({
// ...
queue: {
// How consumer spans relate to producer spans
// 'link': consumer span links to producer (default)
// 'parent': consumer span is a child of the producer span
executionSpanLinkMode: 'link',
},
})For BullMQ, install the separate BullMQ instrumentation. To reduce the volume of noisy jobs, see Job Sampling.
Ace commands
Ace CLI command execution is traced by default. Scaffolding commands (make:*, generate:*) and long-running queue workers are excluded automatically.
Command arguments and flags are captured as span attributes (cli.args.*, cli.flags.*).
export default defineConfig({
// ...
cli: {
// Glob patterns to include (all commands by default)
include: ['migration:*', 'db:*'],
// Glob patterns to exclude (defaults below)
exclude: ['make:*', 'generate:*', 'queue:work', 'queue:listen'],
},
})To disable entirely:
export default defineConfig({
// ...
cli: false,
})CLI tracing requires otel.ts in bin/console.ts.
Just like bin/server.ts, your bin/console.ts file must import otel.ts as its very first import for CLI instrumentation to work. The node ace configure command adds this automatically, but if you set up manually or upgraded from an older version, make sure it is there:
import '../otel.js' // Must be the first import
import { Kernel } from '@adonisjs/core/ace'
// ...Optional integrations
Other libraries are supported through separate packages that you install and register in integrations:
Job dispatch and processing
Cache hits, misses, and latency, including @adonisjs/cache
LLM calls, tokens, costs, and conversations
Agents, workflows, and tools
Tool calls on your own MCP server
Query builder spans with readable SQL
ORM queries with readable SQL