Skip to content

pkg/services/otelhealth: add otelhealth; update promhealth#1494

Merged
jmank88 merged 2 commits intomainfrom
otelhealth
Aug 21, 2025
Merged

pkg/services/otelhealth: add otelhealth; update promhealth#1494
jmank88 merged 2 commits intomainfrom
otelhealth

Conversation

@jmank88
Copy link
Copy Markdown
Contributor

@jmank88 jmank88 commented Aug 20, 2025

No description provided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The attributes are aligned with prom for familiarity, but perhaps they should be tweaked for otel standards? cc @pkcll

@jmank88 jmank88 requested a review from pkcll August 20, 2025 19:57
@jmank88 jmank88 marked this pull request as ready for review August 20, 2025 19:57
@jmank88 jmank88 requested a review from a team as a code owner August 20, 2025 19:57
@jmank88 jmank88 requested a review from patrickhuie19 August 20, 2025 20:05
Comment thread pkg/services/otelhealth/otelhealth.go Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 21, 2025

apidiff results - backwards-incompatible changes detected ❌

Module: github-com-smartcontractkit-chainlink-common

Status: ❌ 4 incompatible, 2 compatible

Incompatible Changes (4)

Element Change
./pkg/services.HealthCheckerConfig.AddUptime changed from func(time.Duration) to func(context.Context, time.Duration)
./pkg/services.HealthCheckerConfig.Delete changed from func(string) to func(context.Context, string)
./pkg/services.HealthCheckerConfig.IncVersion changed from func(string, string) to func(context.Context, string, string)
./pkg/services.HealthCheckerConfig.SetStatus changed from func(string, int) to func(context.Context, string, int)

(Full summary: https://github.com/smartcontractkit/chainlink-common/actions/runs/17132372470/#summary-48599736657)

@jmank88 jmank88 requested a review from vreff August 21, 2025 15:47
Comment thread pkg/services/health.go
}

func (cfg HealthCheckerConfig) setNoopHooks() {
func (cfg *HealthCheckerConfig) setNoopHooks() {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was leading to nil pointers

Comment thread pkg/services/health.go
@@ -196,10 +199,10 @@ func (c *HealthChecker) update() {
}

// report metrics to prometheus
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

// report metrics to prometheus or otel

@jmank88 jmank88 merged commit e3e586f into main Aug 21, 2025
17 of 22 checks passed
@jmank88 jmank88 deleted the otelhealth branch August 21, 2025 16:26
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.

5 participants