From f17a4bdc82162afeba72bd116ac49b64a9afb5df Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Fri, 24 Jan 2025 19:23:57 +0300 Subject: [PATCH] Add span Client.SendEach --- fcm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fcm.go b/fcm.go index 76215ce..c4d4108 100644 --- a/fcm.go +++ b/fcm.go @@ -326,6 +326,10 @@ func makeSendResponseFromPart(part *multipart.Part) (SendResponse, error) { } func (c *Client) SendEach(ctx context.Context, messages []Message) (MessageMultiSendResponse, error) { + + _, span := tracer.Start(ctx, "Client.SendEach") + defer span.End() + return c.doSendEachInBatch(messages, false) }