Skip to content

Conversation

@addshore
Copy link

@addshore addshore commented Oct 9, 2025

The Write() method was only processing core.coreFields and completely ignoring the fields parameter. This caused fields passed at log time to be lost and not sent to Airbrake.

Found when using logrus -> logrus-zap-hook -> zap -> airbrake/gobrake/zap, where logrus.WithFields() data was missing from Airbrake notifications.

Now processes both core.coreFields (from .With()) and the fields parameter (passed at log time) to ensure all structured logging fields are captured.

The Write() method was only processing core.coreFields and completely
ignoring the fields parameter. This caused fields passed at log time
to be lost and not sent to Airbrake.

Found when using logrus -> logrus-zap-hook -> zap -> airbrake/gobrake/zap,
where logrus.WithFields() data was missing from Airbrake notifications.

Now processes both core.coreFields (from .With()) and the fields
parameter (passed at log time) to ensure all structured logging
fields are captured.
Copy link
Contributor

@rbg rbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

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

Successfully merging this pull request may close these issues.

2 participants