@lunora/runtime 1.0.0-alpha.173 → 1.0.0-alpha.174

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/dist/index.d.mts CHANGED
@@ -2533,7 +2533,7 @@ interface ObservabilitySink {
2533
2533
  */
2534
2534
  fuseCloudflareTraces?: boolean;
2535
2535
  /**
2536
- * How much detail automatic `ctx.db` instrumentation produces.
2536
+ * How much detail automatic `ctx.db` (and `ctx.sql`) instrumentation produces.
2537
2537
  *
2538
2538
  * `"summary"` (**default**) — aggregate counters (`db.calls`, `db.duration_ms`,
2539
2539
  * per-operation counts) folded onto the dispatch's own root span, and onto the
@@ -2553,7 +2553,14 @@ interface ObservabilitySink {
2553
2553
  *
2554
2554
  * `"off"` — no database telemetry.
2555
2555
  *
2556
- * Applies only when a sink is configured; with none, `ctx.db` is untouched.
2556
+ * The same level applies to the action-only `ctx.sql` (Hyperdrive), which
2557
+ * keeps its own tally under `sql.*` keys (`sql.calls`, `sql.duration_ms`,
2558
+ * `sql.op.SELECT`, `sql.spans_truncated`, …) so external-database time stays
2559
+ * distinguishable from the shard's own SQLite. Its spans carry the leading
2560
+ * SQL keyword and the system, never the statement text or parameters.
2561
+ *
2562
+ * Applies only when a sink is configured; with none, `ctx.db` and `ctx.sql`
2563
+ * are untouched.
2557
2564
  */
2558
2565
  instrumentDatabase?: "off" | "spans" | "summary";
2559
2566
  /**
package/dist/index.d.ts CHANGED
@@ -2533,7 +2533,7 @@ interface ObservabilitySink {
2533
2533
  */
2534
2534
  fuseCloudflareTraces?: boolean;
2535
2535
  /**
2536
- * How much detail automatic `ctx.db` instrumentation produces.
2536
+ * How much detail automatic `ctx.db` (and `ctx.sql`) instrumentation produces.
2537
2537
  *
2538
2538
  * `"summary"` (**default**) — aggregate counters (`db.calls`, `db.duration_ms`,
2539
2539
  * per-operation counts) folded onto the dispatch's own root span, and onto the
@@ -2553,7 +2553,14 @@ interface ObservabilitySink {
2553
2553
  *
2554
2554
  * `"off"` — no database telemetry.
2555
2555
  *
2556
- * Applies only when a sink is configured; with none, `ctx.db` is untouched.
2556
+ * The same level applies to the action-only `ctx.sql` (Hyperdrive), which
2557
+ * keeps its own tally under `sql.*` keys (`sql.calls`, `sql.duration_ms`,
2558
+ * `sql.op.SELECT`, `sql.spans_truncated`, …) so external-database time stays
2559
+ * distinguishable from the shard's own SQLite. Its spans carry the leading
2560
+ * SQL keyword and the system, never the statement text or parameters.
2561
+ *
2562
+ * Applies only when a sink is configured; with none, `ctx.db` and `ctx.sql`
2563
+ * are untouched.
2557
2564
  */
2558
2565
  instrumentDatabase?: "off" | "spans" | "summary";
2559
2566
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/runtime",
3
- "version": "1.0.0-alpha.173",
3
+ "version": "1.0.0-alpha.174",
4
4
  "description": "Lunora Worker runtime: the RPC router, shard resolver, and query coordinator",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -46,10 +46,10 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@lunora/bindings": "1.0.0-alpha.93",
49
+ "@lunora/bindings": "1.0.0-alpha.94",
50
50
  "@lunora/errors": "1.0.0-alpha.50",
51
- "@lunora/observability": "1.0.0-alpha.117",
52
- "@lunora/platform": "1.0.0-alpha.52"
51
+ "@lunora/observability": "1.0.0-alpha.118",
52
+ "@lunora/platform": "1.0.0-alpha.53"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@lunora/shard-engine": ">=1.0.0-alpha.24 <2.0.0-0",