otel

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertValue

func ConvertValue(val interface{}) attribute.Value

Types

type Exporter

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

Exporter basic exporter of klogga spans to otel tracer

func New

func New(tracer trace.Tracer) *Exporter

func (*Exporter) Shutdown

func (t *Exporter) Shutdown(context.Context) error

func (*Exporter) Write

func (t *Exporter) Write(ctx context.Context, spans []*klogga.Span) error

type IDImporter

type IDImporter struct {
}

IDImporter allows OpenTelemetry spans to have same ids as klogga spans from which they were creates

func (IDImporter) NewIDs

func (i IDImporter) NewIDs(ctx context.Context) (trace.TraceID, trace.SpanID)

func (IDImporter) NewSpanID

func (i IDImporter) NewSpanID(ctx context.Context, traceID trace.TraceID) trace.SpanID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL