otel: go.opentelemetry.io/otel/exporter/trace/jaeger Index | Files | Directories

package jaeger

import "go.opentelemetry.io/otel/exporter/trace/jaeger"

Package jaeger contains an OpenTelemetry tracing exporter for Jaeger.

Index

Package Files

agent.go doc.go jaeger.go uploader.go

func WithAgentEndpoint Uses

func WithAgentEndpoint(agentEndpoint string) func() (batchUploader, error)

WithAgentEndpoint instructs exporter to send spans to jaeger-agent at this address. For example, localhost:6831.

func WithBufferMaxCount Uses

func WithBufferMaxCount(bufferMaxCount int) func(o *options)

WithBufferMaxCount defines the total number of traces that can be buffered in memory

func WithCollectorEndpoint Uses

func WithCollectorEndpoint(collectorEndpoint string, options ...CollectorEndpointOption) func() (batchUploader, error)

WithCollectorEndpoint defines the full url to the Jaeger HTTP Thrift collector. For example, http://localhost:14268/api/traces

func WithOnError Uses

func WithOnError(onError func(err error)) func(o *options)

WithOnError sets the hook to be called when there is an error occurred when uploading the span data. If no custom hook is set, errors are logged.

func WithPassword Uses

func WithPassword(password string) func(o *CollectorEndpointOptions)

WithPassword sets the password to be used if basic auth is required.

func WithProcess Uses

func WithProcess(process Process) func(o *options)

WithProcess sets the process with the information about the exporting process.

func WithUsername Uses

func WithUsername(username string) func(o *CollectorEndpointOptions)

WithUsername sets the username to be used if basic auth is required.

type CollectorEndpointOption Uses

type CollectorEndpointOption func(o *CollectorEndpointOptions)

type CollectorEndpointOptions Uses

type CollectorEndpointOptions struct {
    // contains filtered or unexported fields
}

type EndpointOption Uses

type EndpointOption func() (batchUploader, error)

type Exporter Uses

type Exporter struct {
    // contains filtered or unexported fields
}

Exporter is an implementation of trace.Exporter that uploads spans to Jaeger.

func NewExporter Uses

func NewExporter(endpointOption EndpointOption, opts ...Option) (*Exporter, error)

NewExporter returns a trace.Exporter implementation that exports the collected spans to Jaeger.

func (*Exporter) ExportSpan Uses

func (e *Exporter) ExportSpan(ctx context.Context, d *export.SpanData)

ExportSpan exports a SpanData to Jaeger.

func (*Exporter) Flush Uses

func (e *Exporter) Flush()

Flush waits for exported trace spans to be uploaded.

This is useful if your program is ending and you do not want to lose recent spans.

type Option Uses

type Option func(*options)

type Process Uses

type Process struct {
    // ServiceName is the Jaeger service name.
    ServiceName string

    // Tags are added to Jaeger Process exports
    Tags []core.KeyValue
}

Process contains the information exported to jaeger about the source of the trace data.

Directories

PathSynopsis
internal/gen-go/jaeger
internal/gen-go/jaeger/collector-remote

Package jaeger imports 16 packages (graph) and is imported by 6 packages. Updated 2020-02-08. Refresh now. Tools for package owners.