Skip to content

Commit

Permalink
fix: complete metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Mar 3, 2024
1 parent fa4dbfe commit 05a0963
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,13 @@ func (c *Client) Ping(ctx context.Context, id int) error {
span.RecordError(token.Error())
span.SetStatus(codes.Error, token.Error().Error())

c.Metrics.PublishErrors.Inc()

return fmt.Errorf("failed to publish %w", err)
}

c.Metrics.Pings.Inc()

return nil
}

Expand Down

0 comments on commit 05a0963

Please sign in to comment.