Skip to content

add With() on otelzap - #148

Open
roger-russel wants to merge 1 commit into
uptrace:mainfrom
roger-russel:with
Open

add With() on otelzap#148
roger-russel wants to merge 1 commit into
uptrace:mainfrom
roger-russel:with

Conversation

@roger-russel

@roger-russel roger-russel commented Jan 12, 2026

Copy link
Copy Markdown

This pull request adds a new convenience method to the Logger type in otelzap/otelzap.go. The new method allows you to attach additional fields to a logger instance in a clean and reusable way.

Logging improvements:

  • Added a With(fields ...zapcore.Field) method to the Logger type, enabling the creation of logger instances with additional structured fields. This helps with contextual logging and avoids mutating the original logger.

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.

1 participant