Permalink
Browse files

Fix HTTPHeadersCarrier type name in the documentation (#104)

  • Loading branch information...
1 parent ce84834 commit 67bc0a342a73f8ce1e4514fe1ae68609554dc05e @IncSW IncSW committed with yurishkuro Jul 30, 2016
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1 propagation_test.go
View
@@ -97,7 +97,7 @@ reference.
tracer.Inject(
span.Context(),
opentracing.TextMap,
- opentracing.HTTPHeaderTextMapCarrier(httpReq.Header))
+ opentracing.HTTPHeadersCarrier(httpReq.Header))
resp, err := httpClient.Do(httpReq)
...
@@ -114,7 +114,7 @@ reference.
appSpecificOperationName := ...
wireContext, err := opentracing.GlobalTracer().Extract(
opentracing.TextMap,
- opentracing.HTTPHeaderTextMapCarrier(req.Header))
+ opentracing.HTTPHeadersCarrier(req.Header))
if err != nil {
// Optionally record something about err here
}
View
@@ -80,7 +80,7 @@ func TestHTTPHeaderExtract(t *testing.T) {
h.Add("testprefix-fakeid", "42")
tracer := testTracer{}
- // Use HTTPHeaderTextMapCarrier to wrap around `h`.
+ // Use HTTPHeadersCarrier to wrap around `h`.
carrier := HTTPHeadersCarrier(h)
spanContext, err := tracer.Extract(HTTPHeaders, carrier)
if err != nil {

0 comments on commit 67bc0a3

Please sign in to comment.