From 9d9b354698b6e3ffe7d1802c9aeab6d5d1419c76 Mon Sep 17 00:00:00 2001 From: SoXX Date: Mon, 12 Aug 2024 11:52:53 +0200 Subject: [PATCH] fix(tracing): wrong attribute type changed attribute types in to Int --- pkg/database/favorite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/database/favorite.go b/pkg/database/favorite.go index 5a720ac..c730176 100644 --- a/pkg/database/favorite.go +++ b/pkg/database/favorite.go @@ -52,8 +52,8 @@ func CreateUserFavoriteInBatch(ctx context.Context, userFav []models.UserFavorit }) span.SetAttributes( - attribute.Int64("batch_size", int64(batchSize)), - attribute.Int64("user_favorite_count", int64(len(userFav))), + attribute.Int("batch_size", batchSize), + attribute.Int("user_favorite_count", len(userFav)), ) utils.HandleEvent(span, localLogger, "Starting batch user favorite creation")