opentelemetry

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 22 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenTelemetry

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

func GetOpenTelemetrySingleton

func GetOpenTelemetrySingleton() (*OpenTelemetry, error)

func (*OpenTelemetry) Extract

func (o *OpenTelemetry) Extract(ctx context.Context, headers http.Header) context.Context

func (*OpenTelemetry) ExtractByGrpcCtx

func (o *OpenTelemetry) ExtractByGrpcCtx(ctx context.Context) context.Context

func (*OpenTelemetry) GetCtx

func (o *OpenTelemetry) GetCtx(ctx context.Context, traceID, spanID string) context.Context

func (*OpenTelemetry) InitProvider

func (o *OpenTelemetry) InitProvider() error

func (*OpenTelemetry) Inject

func (o *OpenTelemetry) Inject(ctx context.Context, headers http.Header)

func (*OpenTelemetry) InvokeFunc

func (o *OpenTelemetry) InvokeFunc(ctx context.Context, spanName string, fn func(context.Context, any) (any, error), args any) (any, error)

func (*OpenTelemetry) Shutdown

func (o *OpenTelemetry) Shutdown()

func (*OpenTelemetry) Start

func (o *OpenTelemetry) Start(ctx context.Context, spanName string) (context.Context, trace.Span)

type OpenTelemetryIOCInterface

type OpenTelemetryIOCInterface interface {
	Shutdown()
	InitProvider() error
	Start(ctx contextx.Context, spanName string) (contextx.Context, trace.Span)
	InvokeFunc(ctx contextx.Context, spanName string, fn func(contextx.Context, any) (any, error), args any) (any, error)
	Inject(ctx contextx.Context, headers http.Header)
	Extract(ctx contextx.Context, headers http.Header) contextx.Context
	ExtractByGrpcCtx(ctx contextx.Context) contextx.Context
	GetCtx(ctx contextx.Context, traceID, spanID string) contextx.Context
}

func GetOpenTelemetryIOCInterfaceSingleton

func GetOpenTelemetryIOCInterfaceSingleton() (OpenTelemetryIOCInterface, error)

type ThisOpenTelemetry

type ThisOpenTelemetry struct {
}

func (*ThisOpenTelemetry) This

Jump to

Keyboard shortcuts

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