Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 481 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 481 Bytes

linkerd

OpenTelemetry linkerd trace propagator.

Currently supports l5d-tctx-trace set by telemetry: io.l5d.tracelog.

Usage

import (
	"net/http"

	"github.com/jacoelho/linkerd"
	"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)

var httpClient = http.Client{Transport: otelhttp.NewTransport(
    http.DefaultTransport,
    // ...
    otelhttp.WithPropagators(linkerd.New()),
),
}

License

license