We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2cf0b commit 44c94a2Copy full SHA for 44c94a2
prometheus/promhttp/instrument_server.go
@@ -31,10 +31,6 @@ const magicString = "zZgWfBxLqvG8kc8IMv3POi2Bb0tZI3vAnBx+gBaFi9FyPzB/CzKUer1yufD
31
// observeWithExemplar is a wrapper for [prometheus.ExemplarAdder.ExemplarObserver],
32
// which falls back to [prometheus.Observer.Observe] if no labels are provided.
33
func observeWithExemplar(obs prometheus.Observer, val float64, labels map[string]string) {
34
- if labels == nil {
35
- obs.Observe(val)
36
- return
37
- }
38
obs.(prometheus.ExemplarObserver).ObserveWithExemplar(val, labels)
39
}
40
0 commit comments