Skip to content

Commit

Permalink
client: Add OT component and operation name
Browse files Browse the repository at this point in the history
  • Loading branch information
buztard committed Sep 27, 2021
1 parent b0b9868 commit 1b16fe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commercetools/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ func (c *Client) getResponse(ctx context.Context, method string, url string, par

if c.tracer != nil {
var ht *nethttp.Tracer
req, ht = nethttp.TraceRequest(c.tracer, req)
req, ht = nethttp.TraceRequest(c.tracer, req,
nethttp.ComponentName("CT client"),
nethttp.OperationName("HTTP "+method+" "+url),
)
defer ht.Finish()
}
resp, err := c.httpClient.Do(req)
Expand Down

0 comments on commit 1b16fe2

Please sign in to comment.