Skip to content

Commit 71e08b3

Browse files
committed
Lint
1 parent 4b699a5 commit 71e08b3

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConf
158158
(module: any) => {
159159
this._unpatchPgClient(module.Client);
160160
return module;
161-
}, [modulePgClient, modulePgNativeClient]
161+
},
162+
[modulePgClient, modulePgNativeClient]
162163
);
163164

164165
const modulePGPool = new InstrumentationNodeModuleDefinition(
@@ -185,9 +186,7 @@ export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConf
185186
return [modulePG, modulePGPool];
186187
}
187188

188-
private _patchPgClient(
189-
module: any,
190-
) {
189+
private _patchPgClient(module: any) {
191190
const moduleExports = extractModuleExports(module);
192191

193192
if (isWrapped(moduleExports.prototype.query)) {
@@ -213,9 +212,7 @@ export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConf
213212
return module;
214213
}
215214

216-
private _unpatchPgClient(
217-
module: any,
218-
) {
215+
private _unpatchPgClient(module: any) {
219216
const moduleExports = extractModuleExports(module);
220217

221218
if (isWrapped(moduleExports.prototype.query)) {
@@ -229,7 +226,6 @@ export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConf
229226
return module;
230227
}
231228

232-
233229
private _getClientConnectPatch() {
234230
const plugin = this;
235231
return (original: PgClientConnect) => {
@@ -312,12 +308,12 @@ export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConf
312308
// to properly narrow arg0, but TS 4.3.5 does not.
313309
const queryConfig = firstArgIsString
314310
? {
315-
text: arg0 as string,
316-
values: Array.isArray(args[1]) ? args[1] : undefined,
317-
}
311+
text: arg0 as string,
312+
values: Array.isArray(args[1]) ? args[1] : undefined,
313+
}
318314
: firstArgIsQueryObjectWithText
319-
? (arg0 as utils.ObjectWithText)
320-
: undefined;
315+
? (arg0 as utils.ObjectWithText)
316+
: undefined;
321317

322318
const attributes: Attributes = {
323319
[SEMATTRS_DB_SYSTEM]: DBSYSTEMVALUES_POSTGRESQL,

0 commit comments

Comments
 (0)