autotel-drizzle

Add OpenTelemetry tracing to Drizzle ORM database interactions in Node.js.

7|3|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/jagreehal/autotel --skill autotel-drizzle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autotel-drizzle
Source: https://github.com/jagreehal/autotel/tree/main/packages/autotel-drizzle/skills/autotel-drizzle
Command: npx skills add https://github.com/jagreehal/autotel --skill autotel-drizzle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires autotel, autotel-drizzle, and includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to incorporate comprehensive tracing into Drizzle ORM database operations, filling the gap caused by the absence of official OpenTelemetry support for Drizzle.

Core Features & Use Cases

  • Instrument Drizzle ORM: Patches the Drizzle session and client to automatically create spans for queries, transactions, and prepared statements.
  • Supports Multiple Databases: Works with PostgreSQL, MySQL, and SQLite databases by customizing span attributes.
  • Use Case: A developer attaches this to a Node.js application to monitor database performance and troubleshoot query latency issues seamlessly.

Quick Start

Use the autotel-drizzle package to instrument your Drizzle ORM database connection and enable automatic tracing of queries and transactions.

Frequently Asked Questions about autotel-drizzle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry tracing to Drizzle ORM queries in Node.js?

OpenTelemetry tracing for Drizzle ORM is added by patching the session and client objects to automatically create spans for queries, transactions, and prepared statements. This provides enhanced observability for Node.js applications.

Can I instrument Drizzle ORM for PostgreSQL, MySQL, and SQLite databases?

Yes, you can instrument Drizzle ORM for PostgreSQL, MySQL, and SQLite databases. The tracing mechanism customizes span attributes to support multiple database systems within your Node.js application.

Why does Drizzle ORM lack official OpenTelemetry support and how do I fix it?

Drizzle ORM lacks official OpenTelemetry support, creating a gap in database observability. You fix this by using an instrumentation package that patches Drizzle's client objects to generate trace spans for database operations.

Does OpenTelemetry instrumentation automatically trace Drizzle transactions and prepared statements?

Yes, OpenTelemetry instrumentation automatically traces Drizzle transactions and prepared statements. It patches the Drizzle session and client to capture these interactions without requiring manual span creation.

What is the best way to monitor Drizzle ORM database performance and troubleshoot query latency?

The best way to monitor Drizzle ORM performance and troubleshoot query latency is by adding OpenTelemetry-based tracing to automatically instrument database interactions and track query execution times.