tracing

package
v0.0.0-...-15f7128 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "cron"

Variables

This section is empty.

Functions

func GRPCExporter

func GRPCExporter(url string, options ...cfg.Option[Config]) (sdktrace.SpanExporter, error)

GRPCExporter creates a trace.SpanExporter using a gRPC connection to a tracing backend.

func NoopExporter

func NoopExporter() noopExporter

func Tracer

func Tracer() trace.Tracer

Tracer returns the registered tracer for this service. It defaults to a no-op trace.Tracer if not yet initialized.

func WithBasicAuth

func WithBasicAuth(username, password string) cfg.Option[Config]

func WithTimeout

func WithTimeout(dur time.Duration) cfg.Option[Config]

Types

type Config

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

type ShutdownFunc

type ShutdownFunc func(ctx context.Context) error

func Init

func Init(traceExporter sdktrace.SpanExporter) (ShutdownFunc, error)

Jump to

Keyboard shortcuts

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