|
|
|
@ -664,7 +664,7 @@ func (b *backend) poll(ctx context.Context, grp string, res string, since int64, |
|
|
|
|
// in a single roundtrip. This would reduce the latency of the operation, and also increase the
|
|
|
|
|
// throughput of the system. This is a good candidate for a future optimization.
|
|
|
|
|
func (b *backend) resourceVersionAtomicInc(ctx context.Context, x db.ContextExecer, key *resource.ResourceKey) (newVersion int64, err error) { |
|
|
|
|
ctx, span := b.tracer.Start(ctx, "resourceVersionAtomicInc", trace.WithAttributes( |
|
|
|
|
ctx, span := b.tracer.Start(ctx, tracePrefix+"version_atomic_inc", trace.WithAttributes( |
|
|
|
|
semconv.K8SNamespaceName(key.Namespace), |
|
|
|
|
// TODO: the following attributes could use some standardization.
|
|
|
|
|
attribute.String("k8s.resource.group", key.Group), |
|
|
|
|