tracing

package
v2.2.2-0...-33d1aac Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OtelHTTPEndpoint string
	OtelGRPCEndpoint string
	Logger           *zerolog.Logger

	Enabled bool
}

func NewConfig

func NewConfig(enabled bool, otelGRPCEndpoint, otelHTTPEndpoint string, logger *zerolog.Logger) *Config

type Tracer

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

func NewTracer

func NewTracer(cfg *Config) *Tracer

basic tracer implementation of trace.Tracer, just adding some extra configuration

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Jump to

Keyboard shortcuts

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