Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race accessing Request.URL (#1472)
If an HTTP client is instrumented with apmhttp, then the http.Request.URL is recorded for including in span context. The caller of the HTTP client request may mutate the URL after the response is ready, so we must clone the URL while recording it to prevent data races.
- Loading branch information