pino-sentry icon indicating copy to clipboard operation
pino-sentry copied to clipboard

Does not add any extras to logs

Open Kimblis opened this issue 2 years ago • 1 comments

Hi, I tried various of approaches to add some extra data via extra, tags, breadcrumbs , nothing worked. I don't see that additional data logged into sentry.

 req.log.error({
    message: error.message || 'An unknown error occured',
    trace: error.stack,
    extra: { type: 'bobas', foo: 'bar' },
    tags: { type: 'testinu', foo: 'bar' },
    breadcrumbs: [
      {
        category: 'auth',
        message: 'please something',
        level: 'info',
      },
    ],
  });

that's my logging, the issue appears on sentry, however no additional data. Any ideas?

Kimblis avatar May 16 '23 18:05 Kimblis

I tried using this tool and get very few logs as well.. I guess a PR makes sense here..?

SGudbrandsson avatar Jan 23 '24 10:01 SGudbrandsson