diff --git a/pkg/database/post.go b/pkg/database/post.go index a69698f..623995c 100644 --- a/pkg/database/post.go +++ b/pkg/database/post.go @@ -52,8 +52,8 @@ func CreatePostInBatch(ctx context.Context, post []models.Post, batchSize int) e }) span.SetAttributes( - attribute.Int64("batch_size", int64(batchSize)), - attribute.Int64("post_count", int64(len(post))), + attribute.Int("batch_size", batchSize), + attribute.Int("post_count", len(post)), ) utils.HandleEvent(span, localLogger, "Starting batch post creation")