Skip to content

Commit

Permalink
Improve handlePostQueryHook readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-Katz committed Dec 19, 2021
1 parent d6f8af0 commit 85d5611
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ export class PgInstrumentation extends InstrumentationBase {
);
}

utils.handlePostQueryHook(pluginConfig, postQueryHookParams);

// Bind callback to parent span
if (args.length > 0) {
const parentSpan = trace.getSpan(context.active());
Expand Down Expand Up @@ -191,8 +193,6 @@ export class PgInstrumentation extends InstrumentationBase {
}
}

utils.handlePostQueryHook(pluginConfig, postQueryHookParams);

// Perform the original query
const result: unknown = original.apply(this, args as never);

Expand Down

0 comments on commit 85d5611

Please sign in to comment.