mirror of
https://github.com/zoriya/drizzle-otel.git
synced 2026-06-03 11:26:15 +00:00
update readme
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@kubiks/otel-drizzle": patch
|
||||
---
|
||||
|
||||
update README
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
OpenTelemetry instrumentation for [Drizzle ORM](https://orm.drizzle.team/). Add distributed tracing to your database queries with a single line of code.
|
||||
|
||||

|
||||

|
||||
|
||||
*Visualize your database queries with detailed span information including operation type, SQL statements, and performance metrics.*
|
||||
_Visualize your database queries with detailed span information including operation type, SQL statements, and performance metrics._
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -87,13 +87,13 @@ Each database query automatically creates a span with rich telemetry data:
|
||||
|
||||
The instrumentation adds the following attributes to each span following [OpenTelemetry semantic conventions](https://opentelemetry.io/docs/specs/semconv/database/):
|
||||
|
||||
| Attribute | Description | Example |
|
||||
|-----------|-------------|---------|
|
||||
| `db.operation` | SQL operation type | `SELECT` |
|
||||
| `db.statement` | Full SQL query | `select "id", "name" from "users"...` |
|
||||
| `db.system` | Database system | `postgresql` |
|
||||
| `db.name` | Database name | `myapp` |
|
||||
| `operation.name` | Client operation name | `kubiks_otel-drizzle.client` |
|
||||
| Attribute | Description | Example |
|
||||
| ---------------- | --------------------- | ------------------------------------- |
|
||||
| `db.operation` | SQL operation type | `SELECT` |
|
||||
| `db.statement` | Full SQL query | `select "id", "name" from "users"...` |
|
||||
| `db.system` | Database system | `postgresql` |
|
||||
| `db.name` | Database name | `myapp` |
|
||||
| `operation.name` | Client operation name | `kubiks_otel-drizzle.client` |
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user