Documentation
¶
Overview ¶
Package zipkin contains an trace exporter for Zipkin.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an implementation of trace.Exporter that uploads spans to a Zipkin server.
func NewExporter ¶
NewExporter returns an implementation of trace.Exporter that uploads spans to a Zipkin server.
reporter is a Zipkin Reporter which will be used to send the spans. These can be created with the openzipkin library, using one of the packages under github.com/openzipkin/zipkin-go/reporter.
localEndpoint sets the local endpoint of exported spans. It can be constructed with github.com/openzipkin/zipkin-go.NewEndpoint, e.g.:
localEndpoint, err := NewEndpoint("my server", listener.Addr().String())
localEndpoint can be nil.
func (*Exporter) ExportSpan ¶
ExportSpan exports a span to a Zipkin server.