mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
wip: debug
This commit is contained in:
parent
68b15e73b5
commit
571938de01
@ -137,9 +137,9 @@ func TelemetryWithOptions(opts TelemetryOptions) middleware.Middleware {
|
||||
spanCtx := trace.SpanContextFromContext(r.Context())
|
||||
if v, ok := observer.(prometheus.ExemplarObserver); ok && opts.Exemplars && spanCtx.HasTraceID() {
|
||||
v.ObserveWithExemplar(duration.Seconds(), prometheus.Labels{
|
||||
"TraceID": spanCtx.TraceID().String(),
|
||||
"traceID": spanCtx.TraceID().String(),
|
||||
})
|
||||
} else if v, ok := observer.(prometheus.Observer); ok {
|
||||
} else if v, ok2 := observer.(prometheus.Observer); ok2 {
|
||||
if !ok {
|
||||
l.Info("==> not ok")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user