observability

package
v0.0.0-...-f11b149 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAttribute

func AddAttribute(ctx context.Context, key string, value interface{})

AddAttribute adds an attribute to the span in the given context

func InitTracer

func InitTracer(ctx context.Context, serviceName string, logger *logrus.Logger, cfg *config.Config) (func(), error)

InitTracer initializes the tracer with the given service name, logger, and configuration

func StartSpan

func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)

StartSpan starts a new span with the given name

Types

type MetricsServer

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

func NewMetricsServer

func NewMetricsServer(port int, logger *logrus.Logger) *MetricsServer

func StartMetricsServer

func StartMetricsServer(port int, logger *logrus.Logger) *MetricsServer

func (*MetricsServer) Start

func (ms *MetricsServer) Start()

func (*MetricsServer) Stop

func (ms *MetricsServer) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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