diff --git a/save.go b/save.go index d9fdff5..77206fc 100644 --- a/save.go +++ b/save.go @@ -13,6 +13,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" + "go.opentelemetry.io/otel/trace" ) const tracerName = "git.bit5.ru/backend/dbmeta" @@ -114,7 +115,11 @@ func SaveMetaRootStruct( deltaSave bool, ) error { - ctx, span := tracer.Start(ctx, "SaveMetaRootStruct") + spanAttrs := trace.WithAttributes( + attribute.Int64("owner.id", int64(ownerId)), + ) + + ctx, span := tracer.Start(ctx, "SaveMetaRootStruct", spanAttrs) defer span.End() dataItem := reflect.ValueOf(data)