Aviary
Recipes

Recipes

Copy-pasteable cookbook for extending Telescope — a custom storage adapter, custom watchers, dashboard login, custom tags and redaction, request-context capture, archiving to S3 before prune, reporting frontend errors, and AI exception diagnosis.

Every recipe here is a complete, working example built against the current SPI — the same interfaces the shipped adapters and watchers implement. Read the problem statement, copy the code, adapt the clearly-marked sketch parts to your stack.

RecipeWhen you reach for it
Custom storage adapterPersist entries in a store no shipped adapter covers (Mongo, Knex, a file). Implement StorageProvider end to end.
Custom watcherCapture a source Telescope doesn't ship a watcher for (WebSocket events, a bespoke cache), correlated to the request that caused it.
Capture @nestjs/axios trafficOutbound calls through HttpService (or any axios instance) bypass the fetch patch — wire the axios source to capture them too.
Custom tags & redactionTag entries by tenant, mask extra fields, drop noisy entries, and sample high-volume types.
Request context for your routesCapture the authenticated user under a setGlobalPrefix, and drop ad-hoc debug dumps.
Archiving exceptions to S3Export entries of a type to cold storage before the pruner deletes them, with the archive.sink hook and @aws-sdk/client-s3.
Reporting frontend errorsLet browsers POST errors straight to Telescope (client_exception entries) instead of a hand-rolled reporter — endpoint config, the security knobs, a fetch/sendBeacon snippet, and a react-error-boundary integration.
Federated consoleOne console for several apps that keep their own stores: the central app reads each app's store in place (federation), with DB read grants per app schema.
Alert integrationsSend alerts to PagerDuty, Opsgenie, Better Stack, incident.io, Grafana OnCall, Discord, Teams, Telegram, Google Chat or email; route by rule and severity; ping heartbeat monitors, sync a status page, and expose an uptime endpoint.
AI exception diagnosisAdd a Diagnose with AI button (and optional auto-mode that enriches new-exception alerts) that turns a captured exception into a probable-cause report — Bedrock, OpenAI, or any Vercel AI SDK model.

Each recipe links back to the concept page that explains the mechanism — the recipes are the how, the concepts are the why.