Skip to content

Commit

Permalink
fix: Add applying patch debug log to pino module (open-telemetry#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-Sieb committed Oct 17, 2022
1 parent 2777a79 commit a2719c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class PinoInstrumentation extends InstrumentationBase {
new InstrumentationNodeModuleDefinition<any>(
'pino',
pinoVersions,
pinoModule => {
(pinoModule, moduleVersion) => {
diag.debug(`Applying patch for pino@${moduleVersion}`);
const instrumentation = this;
const patchedPino = Object.assign((...args: unknown[]) => {
if (args.length == 0) {
Expand Down

0 comments on commit a2719c5

Please sign in to comment.