Skip to content

Pino integration wraps all loggers (sometimes undesired) #17904

@lforst

Description

@lforst

Problem Statement

🥔 for shipping the pino integration. We looked at it and immediately found a potential issue with our setup, which is that we have multiple loggers/logger-streams and we would only like one of them to be sent to Sentry. Currently from what I understand, it looks like the integration just blanket wraps all of the loggers with IITM.

Solution Brainstorm

Multiple options I could quickly come up with:

  • Add some API for transports/destinations
  • Allow to wrap individual loggers (but also make it so that child logger logging statements are instrumented)

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions