SDK v3 #8
@ -52,8 +52,8 @@ func CreatePostInBatch(ctx context.Context, post []models.Post, batchSize int) e
|
|||||||
})
|
})
|
||||||
|
|
||||||
span.SetAttributes(
|
span.SetAttributes(
|
||||||
attribute.Int64("batch_size", int64(batchSize)),
|
attribute.Int("batch_size", batchSize),
|
||||||
attribute.Int64("post_count", int64(len(post))),
|
attribute.Int("post_count", len(post)),
|
||||||
)
|
)
|
||||||
|
|
||||||
utils.HandleEvent(span, localLogger, "Starting batch post creation")
|
utils.HandleEvent(span, localLogger, "Starting batch post creation")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user