aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/http-tracing.article8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/http-tracing.article b/content/http-tracing.article
index 0e586c5..d006bf6 100644
--- a/content/http-tracing.article
+++ b/content/http-tracing.article
@@ -8,7 +8,7 @@ Jaana Burcu Dogan
In Go 1.7 we introduced HTTP tracing, a facility to gather fine-grained
information throughout the lifecycle of an HTTP client request.
-Support for HTTP tracing is provided by the [[`net/http/httptrace`][https://golang.org/pkg/net/http/httptrace/]]
+Support for HTTP tracing is provided by the [[https://golang.org/pkg/net/http/httptrace/][`net/http/httptrace`]]
package. The collected information can be used for debugging latency issues,
service monitoring, writing adaptive systems, and more.
@@ -26,9 +26,9 @@ during an HTTP round trip about a variety of events. These events include:
* Tracing events
You can enable HTTP tracing by putting an
-[[`*httptrace.ClientTrace`][https://golang.org/pkg/net/http/httptrace/#ClientTrace]]
-containing hook functions into a request's [[`context.Context`][https://golang.org/pkg/context/#Context]].
-Various [[`http.RoundTripper`][https://golang.org/pkg/net/http/#RoundTripper]]
+[[https://golang.org/pkg/net/http/httptrace/#ClientTrace][`*httptrace.ClientTrace`]]
+containing hook functions into a request's [[https://golang.org/pkg/context/#Context][`context.Context`]].
+Various [[https://golang.org/pkg/net/http/#RoundTripper][`http.RoundTripper`]]
implementations report the internal events by
looking for context's `*httptrace.ClientTrace` and calling the relevant hook functions.