feat(pino-transport): Add functionality to send logs to sentry#16667
feat(pino-transport): Add functionality to send logs to sentry#16667AbhiPrasad merged 9 commits intodevelopfrom
Conversation
4661a26 to
ad39866
Compare
| | error | 50 | error | | ||
| | fatal | 60 | fatal | | ||
|
|
||
| ### Custom Levels Support |
There was a problem hiding this comment.
I'm still undecided about this behaviour.
See https://getpino.io/#/docs/api?id=opt-customlevels for details about pino custom levels.
What does everyone think?
There was a problem hiding this comment.
Do you mean the level ranges?
Currently, you're "cutting" it in the middle of the range (or are those already the Pino level cuts?). How about cutting it at the point where the level changes? Like this:
0-19→trace20-29→debug30-39→info40-49→warn50-59→error60+→fatal
But I am not quite sure how pino works here 🤔
There was a problem hiding this comment.
How about cutting it at the point where the level changes
I think that feels better, just tried it out in my test app. Feels easier to explain to users as well.
| | error | 50 | error | | ||
| | fatal | 60 | fatal | | ||
|
|
||
| ### Custom Levels Support |
There was a problem hiding this comment.
Do you mean the level ranges?
Currently, you're "cutting" it in the middle of the range (or are those already the Pino level cuts?). How about cutting it at the point where the level changes? Like this:
0-19→trace20-29→debug30-39→info40-49→warn50-59→error60+→fatal
But I am not quite sure how pino works here 🤔
| | error | 50 | error | | ||
| | fatal | 60 | fatal | | ||
|
|
||
| ### Custom Levels Support |
398fe71 to
4f3435a
Compare
4f3435a to
57434de
Compare
ref #15952
resolves #16622
This PR adds the ability to send logs to sentry via a pino transport.
Usage
Options
logLevelsType:
Array<'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'>Default:
['trace', 'debug', 'info', 'warn', 'error', 'fatal'](all levels)Use this option to filter which log levels should be sent to Sentry.
Next
I need to write some integration tests - this is being tracked by #16624