From 7cf51f9b90278ab36af607ccd35af452dd977ed0 Mon Sep 17 00:00:00 2001 From: SoXX Date: Mon, 12 Aug 2024 11:53:17 +0200 Subject: [PATCH] fix(tracing): wrong attribute type changed attribute types in to Int --- pkg/database/post.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")