Skip to content

Commit

Permalink
removed redundant calls to resolveAgentAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
dianashevchenko committed Apr 5, 2022
1 parent f88aa2c commit 77eff54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/tracer/transport.go
Expand Up @@ -101,8 +101,8 @@ func newHTTPTransport(addr string, client *http.Client) *httpTransport {
defaultHeaders["Datadog-Container-ID"] = cid
}
return &httpTransport{
traceURL: fmt.Sprintf("http://%s/v0.4/traces", resolveAgentAddr(addr)),
statsURL: fmt.Sprintf("http://%s/v0.6/stats", resolveAgentAddr(addr)),
traceURL: fmt.Sprintf("http://%s/v0.4/traces", addr),
statsURL: fmt.Sprintf("http://%s/v0.6/stats", addr),
client: client,
headers: defaultHeaders,
}
Expand Down

0 comments on commit 77eff54

Please sign in to comment.