mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Address PR feedback
Co-authored-by: Julien Pivotto <roidelapluie@o11y.eu> Signed-off-by: Charles Korn <charleskorn@users.noreply.github.com>
This commit is contained in:
parent
667a1efb04
commit
9a8dbf06bc
|
@ -443,7 +443,7 @@ func (g *Group) Eval(ctx context.Context, ts time.Time) {
|
|||
}(time.Now())
|
||||
|
||||
if sp.SpanContext().IsSampled() && sp.SpanContext().HasTraceID() {
|
||||
logger = log.WithPrefix(g.logger, "traceID", sp.SpanContext().TraceID())
|
||||
logger = log.WithPrefix(logger, "traceID", sp.SpanContext().TraceID())
|
||||
}
|
||||
|
||||
g.metrics.EvalTotal.WithLabelValues(GroupKey(g.File(), g.Name())).Inc()
|
||||
|
|
Loading…
Reference in a new issue