Method Client.doSendRequest(). Add span.

This commit is contained in:
Владислав Весельский 2025-01-25 11:42:55 +03:00
parent 7b4c34b1a1
commit ce36c038cc
1 changed files with 4 additions and 0 deletions

4
fcm.go
View File

@ -157,6 +157,10 @@ func (c *Client) Validate(ctx context.Context, message Message) (string, error)
}
func (c *Client) doSendRequest(ctx context.Context, req SendRequest, loggerEnabled bool) (SendResponse, error) {
_, span := tracer.Start(ctx, "Client.doSendRequest")
defer span.End()
accessToken, err := c.ts.Token()
if err != nil {
return SendResponse{}, err