Documentation ¶
Overview ¶
Package zipkin contains an OpenTelemetry tracing exporter for Zipkin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanModels ¶
func SpanModels(batch []tracesdk.ReadOnlySpan) []zkmodel.SpanModel
SpanModels converts OpenTelemetry spans into Zipkin model spans. This is used for exporting to Zipkin compatible tracing services.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter exports spans to the zipkin collector.
func (*Exporter) ExportSpans ¶
ExportSpans exports spans to a Zipkin receiver.
func (*Exporter) MarshalLog ¶ added in v1.5.0
func (e *Exporter) MarshalLog() interface{}
MarshalLog is the marshaling function used by the logging system to represent this Exporter.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option defines a function that configures the exporter.
func WithClient ¶
WithClient configures the exporter to use the passed HTTP client.
func WithHeaders ¶ added in v1.28.0
WithHeaders configures the exporter to use the passed HTTP request headers.
func WithLogger ¶
WithLogger configures the exporter to use the passed logger. WithLogger and WithLogr will overwrite each other.