Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not add any extras to logs #63

Open
Kimblis opened this issue May 16, 2023 · 1 comment
Open

Does not add any extras to logs #63

Kimblis opened this issue May 16, 2023 · 1 comment

Comments

@Kimblis
Copy link

Kimblis commented May 16, 2023

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?

@SGudbrandsson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants