Skip to content

Commit

Permalink
feat(payments): add span on atlar credit post
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Oct 31, 2024
1 parent f9e565c commit 3735dcd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import (
)

func (c *Client) PostV1CreditTransfers(ctx context.Context, req *atlar_models.CreatePaymentRequest) (*credit_transfers.PostV1CreditTransfersCreated, error) {
ctx, span := connectors.StartSpan(
ctx,
"atlar.client.PostV1CreditTransfers",
)
defer span.End()

f := connectors.ClientMetrics(ctx, "atlar", "create_credit_transfer")
now := time.Now()
defer f(ctx, now)
Expand Down

0 comments on commit 3735dcd

Please sign in to comment.