autotel-drizzle 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
OpenTelemetry instrumentation for Drizzle ORM.
|
|
4
4
|
|
|
5
|
+
## Compatibility
|
|
6
|
+
|
|
7
|
+
- **Requires `drizzle-orm >= 0.45.2`** (declared as a peer dependency).
|
|
8
|
+
- Node runtime only. For Drizzle running on Cloudflare D1 in a Worker, instrument the binding directly via `autotel-cloudflare/bindings`'s `instrumentD1` instead.
|
|
9
|
+
|
|
10
|
+
If you are pinned to an older Drizzle (for example 0.38.x):
|
|
11
|
+
|
|
12
|
+
- npm/pnpm will warn on install but the package will still resolve; the public callable surface (`instrumentDrizzleClient`, `instrumentDrizzle`) targets shapes that exist on 0.45+ and may misbehave on older versions.
|
|
13
|
+
- Either upgrade Drizzle, or skip this package and emit spans manually around your queries with `span()` from `autotel` (see the [autotel README](../autotel#span)).
|
|
14
|
+
- A backport is not currently planned — track the version in `package.json`.
|
|
15
|
+
|
|
5
16
|
## Philosophy
|
|
6
17
|
|
|
7
18
|
**autotel-drizzle only includes instrumentation for Drizzle ORM.**
|
|
@@ -123,6 +134,12 @@ instrumentDrizzleClient(db, {
|
|
|
123
134
|
});
|
|
124
135
|
```
|
|
125
136
|
|
|
137
|
+
## See also
|
|
138
|
+
|
|
139
|
+
- [autotel](../autotel) — Node SDK that this package builds on
|
|
140
|
+
- [autotel-cloudflare](../autotel-cloudflare) — instrument D1 directly when running Drizzle on Workers
|
|
141
|
+
- [autotel-edge](../autotel-edge) — vendor-agnostic edge foundation
|
|
142
|
+
|
|
126
143
|
## License
|
|
127
144
|
|
|
128
145
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-drizzle",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "OpenTelemetry instrumentation for Drizzle ORM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/drizzle.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@opentelemetry/api": "^1.9.1",
|
|
37
37
|
"@opentelemetry/instrumentation": "^0.218.0",
|
|
38
38
|
"@opentelemetry/semantic-conventions": "^1.41.1",
|
|
39
|
-
"autotel": "3.0.
|
|
39
|
+
"autotel": "3.0.6"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"drizzle-orm": ">=0.45.2"
|