fix(tracing): wrong attribute type

changed attribute types in to Int
This commit is contained in:
SoXX 2024-08-12 11:52:53 +02:00
parent ae7bc131f7
commit 9d9b354698

View File

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