-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(driver-adapters): Ensure transaction metrics do not get negative
Current dispatcher for a thread gets lost somewhere within napi-rs/napi `ThreadsafeFunction` nad thearfore, gauge increment in `Transaction::new` is not registered. That in turn means that when the same gauge is decremented in `commit`/`rollback`, it's value will get negative. Moving increment to proxy fixes the problem. Unblocks prisma/prisma-orm#21746
- Loading branch information
Sergey Tatarintsev
committed
Nov 6, 2023
1 parent
79843f7
commit dc2eb8a
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters