-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from zeeshanakram3/enhanced_postgres_query_traces
Enable OpenTelemetry enhanced Postgres query traces
- Loading branch information
Showing
5 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/@subsquid/openreader/lib/db.js b/node_modules/@subsquid/openreader/lib/db.js | ||
index c87884b..9a9801e 100644 | ||
--- a/node_modules/@subsquid/openreader/lib/db.js | ||
+++ b/node_modules/@subsquid/openreader/lib/db.js | ||
@@ -9,7 +9,7 @@ class PgDatabase { | ||
this.client = client; | ||
} | ||
query(sql, parameters) { | ||
- return this.client.query({ text: sql, rowMode: 'array' }, parameters) | ||
+ return this.client.query({ text: sql, values: parameters, rowMode: 'array' }) | ||
.then(result => result.rows) | ||
.catch((0, error_handling_1.withErrorContext)({ sql, parameters })); | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "storage-squid", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
|