Skip to content

jacoelho/linkerd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published