Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore(deps): upgrade Effect to 4.0.2 #17571

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/17571/headmerged by juliusmarminge View on GitHub

Showing 28 changed files with 18 additions and 10 deletions (loading 24).

x
0 of 28 viewed, 28 left
6 additions and 5 deletionsapps/server/integration/SqlStatementCounter.integration.tsModified
View file
@@ -7,16 +7,17 @@
}
​
/**
- * Counts `sql.execute` spans, which the Effect SQL client opens once per
- * statement. Spans behave exactly as with the native tracer. Install the same
- * counter on every runtime under test, otherwise statements run by background
- * reactors and statements run by request handlers land in different counters.
+ * Counts the client spans the Effect SQL client opens once per statement. Our
+ * SQLite client names them after its `db.system.name`, `sqlite`. Spans behave
+ * exactly as with the native tracer. Install the same counter on every runtime
+ * under test, otherwise statements run by background reactors and statements
+ * run by request handlers land in different counters.
*/
export function makeSqlStatementCounter(): SqlStatementCounter {
let statements = 0;
const tracer = Tracer.make({
span: (options) => {
- if (options.name === "sql.execute") statements += 1;
+ if (options.kind === "client" && options.name === "sqlite") statements += 1;
return new Tracer.NativeSpan(options);
},
});
3 additions and 3 deletionsapps/server/integration/TransferBudgetReport.integration.tsModified
View file
@@ -30,9 +30,9 @@
/** The second client resubscribes after the turn from the cursor it held before it. */
readonly reconnectThread: WebSocketCatchUpMeasurement;