Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slot guage #2283

Merged
merged 4 commits into from
Nov 24, 2024
Merged

Fix slot guage #2283

merged 4 commits into from
Nov 24, 2024

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Nov 24, 2024

There seems to be an issue where RecordSlotSize panics in this line with nil pointer dereference:

slotMetricGauges.SlotLagGauge.Record(ctx, float64(slotInfo[0].LagInMb), metric.WithAttributeSet(attribute.NewSet(

As far as I can see the only thing that can be nil is slotMetricGauges.SlotLagGauge , so this PR adds a guard for that and the other guages here

@iskakaushik
Copy link
Contributor

this is ok to land for now but @serprex as you rework otel lets fix the guage creation on startup or something

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit c0d1d8a into main Nov 24, 2024
9 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the fix-slot-record-panic branch November 24, 2024 16:40
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