Skip to content

INFOPLAT-2875: OtelZap refactor zap->otel conversion#1637

Merged
jmank88 merged 5 commits intomainfrom
otelzap-fix
Oct 22, 2025
Merged

INFOPLAT-2875: OtelZap refactor zap->otel conversion#1637
jmank88 merged 5 commits intomainfrom
otelzap-fix

Conversation

@kirqz23
Copy link
Contributor

@kirqz23 kirqz23 commented Oct 22, 2025

Problem
The mapZapField function in the otelzap package can panic when processing certain zap fields, particularly when dealing with nil values that implement interfaces like Stringer or error.

Zap's logging framework records type information but may store nil pointers in the Interface field of zapcore. When our code attempts to call methods on these nil pointers String(), it results in a runtime panic that can crash the application.

@kirqz23 kirqz23 requested a review from a team as a code owner October 22, 2025 13:51
@kirqz23 kirqz23 requested a review from pavel-raykov October 22, 2025 13:52
@kirqz23 kirqz23 requested review from pkcll and removed request for mchain0 October 22, 2025 13:52
@github-actions
Copy link

👋 kirqz23, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link

github-actions bot commented Oct 22, 2025

✅ API Diff Results - No breaking changes


📄 View full apidiff report

@kirqz23 kirqz23 changed the title INFOPLAT-2875: OtelZap fix issue with nil Stringer mapping INFOPLAT-2875: OtelZap refactor zap->otel conversion Oct 22, 2025
@jmank88 jmank88 merged commit 7ef4863 into main Oct 22, 2025
18 of 22 checks passed
@jmank88 jmank88 deleted the otelzap-fix branch October 22, 2025 21:31
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.

3 participants