Method Client.doSendEachInBatch(). Add span.

This commit is contained in:
Владислав Весельский 2025-01-25 11:38:15 +03:00
parent d32afb0d3a
commit 58b1d6cc00
1 changed files with 3 additions and 0 deletions

3
fcm.go
View File

@ -359,6 +359,9 @@ func (c *Client) doSendEachInBatch(
validateOnly bool,
) (MessageMultiSendResponse, error) {
ctx, span := tracer.Start(ctx, "Client.doSendEachInBatch")
defer span.End()
messageCount := len(messages)
if messageCount == 0 {
return MessageMultiSendResponse{}, nil