Skip to content

Commit 6c88dfe

Browse files
committed
Add missing comments
1 parent faf378c commit 6c88dfe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/node/src/integrations/tracing/postgresjs.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class PostgresJsInstrumentation extends InstrumentationBase {
6363
}
6464

6565
/**
66-
*
66+
* Patches the reject method of the Query class to set the span status
6767
*/
6868
private _patchReject(rejectTarget: any, span: Span): any {
6969
return new Proxy(rejectTarget, {
@@ -112,7 +112,7 @@ export class PostgresJsInstrumentation extends InstrumentationBase {
112112
}
113113

114114
/**
115-
*
115+
* Patches the Query class to instrument the handle method.
116116
*/
117117
private _patchQuery(moduleExports: {
118118
Query: {
@@ -182,7 +182,8 @@ export class PostgresJsInstrumentation extends InstrumentationBase {
182182
}
183183

184184
/**
185-
*
185+
* Patches the Connection class to set the database, host, and port attributes
186+
* when a new connection is created.
186187
*/
187188
private _patchConnection(Connection: any): any {
188189
return new Proxy(Connection, {

0 commit comments

Comments
 (0)