Method Client.doSendRequest(). Add span.
This commit is contained in:
parent
7b4c34b1a1
commit
ce36c038cc
4
fcm.go
4
fcm.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue