Browse Source

Address PR feedback

Co-authored-by: Julien Pivotto <roidelapluie@o11y.eu>
Signed-off-by: Charles Korn <charleskorn@users.noreply.github.com>
pull/13034/head
Charles Korn 1 year ago committed by GitHub
parent
commit
9a8dbf06bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rules/group.go

2
rules/group.go

@ -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…
Cancel
Save