diff --git a/components/payments/cmd/connectors/internal/connectors/atlar/client/counter_parties.go b/components/payments/cmd/connectors/internal/connectors/atlar/client/counter_parties.go index 0ac1b199a8..6ae2ff5f1e 100644 --- a/components/payments/cmd/connectors/internal/connectors/atlar/client/counter_parties.go +++ b/components/payments/cmd/connectors/internal/connectors/atlar/client/counter_parties.go @@ -29,6 +29,12 @@ func (c *Client) GetV1CounterpartiesID(ctx context.Context, counterPartyID strin } func (c *Client) CreateCounterParty(ctx context.Context, newExternalBankAccount *models.BankAccount) (*string, error) { + ctx, span := connectors.StartSpan( + ctx, + "atlar.client.CreateCounterParty", + ) + defer span.End() + f := connectors.ClientMetrics(ctx, "atlar", "create_counterparty") now := time.Now() defer f(ctx, now) diff --git a/components/payments/cmd/connectors/internal/connectors/atlar/client/transfers.go b/components/payments/cmd/connectors/internal/connectors/atlar/client/transfers.go index 5aa3f92489..0ecec23136 100644 --- a/components/payments/cmd/connectors/internal/connectors/atlar/client/transfers.go +++ b/components/payments/cmd/connectors/internal/connectors/atlar/client/transfers.go @@ -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)