Unistore Chore: Fix span name (#94965)

fix span name
This commit is contained in:
Diego Augusto Molina 2024-10-24 12:12:20 -03:00 committed by GitHub
parent f379329127
commit 257aca5340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),