wip: debug

This commit is contained in:
franklin 2023-08-11 14:59:05 +02:00
parent fe85d0988d
commit 290ce5d7dc

View File

@ -92,6 +92,15 @@ func TelemetryWithOptions(opts TelemetryOptions) middleware.Middleware {
"TraceID": spanCtx.TraceID().String(),
})
} else {
if !ok {
l.Info("=> not ok")
}
if !opts.Exemplars {
l.Info("=> no exemplars")
}
if !spanCtx.HasTraceID() {
l.Info("=> no trace id")
}
observer.Observe(duration.Seconds())
}
}