fix(tracing): wrong attribute type

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

View File

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