mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Apply suggestions from code review
Co-authored-by: Charles Korn <charleskorn@users.noreply.github.com>
This commit is contained in:
parent
92606f3b52
commit
e1e64f36c2
|
@ -140,12 +140,12 @@ func (p *postingsForMatcherPromise) result(ctx context.Context) (index.Postings,
|
|||
return nil, ctx.Err()
|
||||
}
|
||||
if p.err != nil {
|
||||
span.AddEvent("failed postingsForMatchers promise", trace.WithAttributes(
|
||||
span.AddEvent("postingsForMatchers promise completed with error", trace.WithAttributes(
|
||||
attribute.String("err", p.err.Error()),
|
||||
))
|
||||
return nil, p.err
|
||||
}
|
||||
span.AddEvent("successful postingsForMatchers promise")
|
||||
span.AddEvent("postingsForMatchers promise completed successfully")
|
||||
return p.cloner.Clone(), nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue