Skip to content

Timer helpers

Timer helpers #1421

Triggered via pull request August 22, 2025 17:16
Status Failure
Total duration 45s
Artifacts

go.yml

on: pull_request
Fetch supported Go versions
5s
Fetch supported Go versions
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Tests (1.23)
Process completed with exit code 2.
Tests (1.23): prometheus/timer_test.go#L156
cannot use ObserverFunc(func(v float64) {…}) (value of type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.23): prometheus/timer_test.go#L122
cannot use ObserverFunc(func(v float64) {…}) (value of type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.23): prometheus/timer_test.go#L69
cannot use ObserverFunc(gauge.Set) (value of type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.23): prometheus/timer_test.go#L35
cannot use ObserverFunc(gauge.Set) (value of type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.24)
Process completed with exit code 2.
Tests (1.24): prometheus/timer_test.go#L156
cannot use ObserverFunc(func(v float64) {…}) (value of func type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.24): prometheus/timer_test.go#L122
cannot use ObserverFunc(func(v float64) {…}) (value of func type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.24): prometheus/timer_test.go#L69
cannot use ObserverFunc(gauge.Set) (value of func type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)
Tests (1.24): prometheus/timer_test.go#L35
cannot use ObserverFunc(gauge.Set) (value of func type ObserverFunc) as Observer value in argument to NewTimer: ObserverFunc does not implement Observer (missing method Collect)