Skip to content

fix: pass initialized logger to prom metric exporter#639

Merged
patrickpichler merged 1 commit intomainfrom
fix-potential-nil-deref
Feb 11, 2026
Merged

fix: pass initialized logger to prom metric exporter#639
patrickpichler merged 1 commit intomainfrom
fix-potential-nil-deref

Conversation

@patrickpichler
Copy link
Contributor

The prometheus metric exporter in the agent always got a nil logger.
It only logs in a very particular case, which would cause a nil panic.
This issue has been fixed, by initializing the logger before.

The prometheus metric exporter in the agent always got a `nil` logger.
It only logs in a very particular case, which would cause a nil panic.
This issue has been fixed, by initializing the logger before.
@patrickpichler patrickpichler merged commit 87aa3a3 into main Feb 11, 2026
3 checks passed
@patrickpichler patrickpichler deleted the fix-potential-nil-deref branch February 11, 2026 11:20
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

Comments