mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 16:43:21 +00: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 New Issue
Block a user