@@ -32,16 +32,16 @@ import {
3232} from "./v3/runOpsMigration/splitMode.server" ;
3333import { computeRunOpsSplitReadEnabled } from "./v3/runOpsMigration/runOpsSplitReadGate" ;
3434import { resolveRunOpsPoolKnobs } from "./v3/runOpsPoolKnobs.server" ;
35- import { resolveShardResilience } from "./v3/transactionResilience.server" ;
36- import { assertControlPlaneCoresidencyAdvisory } from "./v3/runOpsMigration/controlPlaneCoresidencySentinel.server" ;
37- import { DATASOURCE_CONTEXT_KEY , startActiveSpan } from "./v3/tracer.server" ;
3835import {
36+ resolveShardResilience ,
3937 controlPlaneTransactionResilience ,
4038 registerTransactionResilience ,
4139 resilienceForClient ,
4240 runOpsLegacyTransactionResilience ,
4341 runOpsTransactionResilience ,
4442} from "./v3/transactionResilience.server" ;
43+ import { assertControlPlaneCoresidencyAdvisory } from "./v3/runOpsMigration/controlPlaneCoresidencySentinel.server" ;
44+ import { DATASOURCE_CONTEXT_KEY , startActiveSpan } from "./v3/tracer.server" ;
4545import type { Span } from "@opentelemetry/api" ;
4646import { context , trace } from "@opentelemetry/api" ;
4747import { queryPerformanceMonitor } from "./utils/queryPerformanceMonitor.server" ;
@@ -277,7 +277,7 @@ export const webhookReplica: WebhookReplicaDatabase = singleton("webhookReplica"
277277
278278type RunOpsClients = { writer : PrismaClient ; replica : PrismaReplicaClient } ;
279279type NewRunOpsClients = { writer : RunOpsPrismaClient ; replica : RunOpsPrismaClient } ;
280- export type ShardTopologyDescriptor = {
280+ type ShardTopologyDescriptor = {
281281 key : string ;
282282 url ?: string ;
283283 replicaUrl ?: string ;
@@ -1060,7 +1060,9 @@ function buildRunOpsClient({
10601060} ) : RunOpsPrismaClient {
10611061 const isWriter = role === "writer" ;
10621062 const setupLabel = isWriter ? "run-ops prisma client" : "run-ops read replica connection" ;
1063- const connectedLabel = isWriter ? "run-ops prisma client connected" : "run-ops read replica connected" ;
1063+ const connectedLabel = isWriter
1064+ ? "run-ops prisma client connected"
1065+ : "run-ops read replica connected" ;
10641066
10651067 const connectionUrl = buildPrismaConnectionUrl ( url , {
10661068 connectionLimit : connectionLimit . toString ( ) ,
@@ -1111,7 +1113,11 @@ function buildRunOpsClient({
11111113 client . $on ( "error" , ( log ) =>
11121114 // The writer bridges P2002 -> 422 at the store boundary, so its infra errors are logged once
11131115 // there (ignoreError). Replica errors are not on that write path, so they log normally.
1114- logger . error ( "RunOpsPrismaClient error" , { clientType, event : log , ...( isWriter ? { ignoreError : true } : { } ) } )
1116+ logger . error ( "RunOpsPrismaClient error" , {
1117+ clientType,
1118+ event : log ,
1119+ ...( isWriter ? { ignoreError : true } : { } ) ,
1120+ } )
11151121 ) ;
11161122 }
11171123
0 commit comments