tracing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() middleware.Middleware

Client returns a new client middleware for OpenTelemetry.

func Server

func Server() middleware.Middleware

Server returns a new server middleware for OpenTelemetry.

Types

type Tracer

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

Tracer is otel span tracer

func NewTracer

func NewTracer(kind trace.SpanKind) *Tracer

NewTracer create tracer instance

func (*Tracer) End

func (t *Tracer) End(_ context.Context, span trace.Span, m interface{}, err error)

End finish tracing span

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, operation string, carrier propagation.TextMapCarrier) (context.Context, trace.Span)

Start is start tracing span

type TracerInitializer

type TracerInitializer struct{}

func InitTracing

func InitTracing(conf *def.Configuration, logger log.Logger, local *config.LocalConfigure) (*TracerInitializer, error)

InitTracing 设置全局链路跟踪器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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