telemetry

package
v0.0.0-...-5be94a9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseConnect

func DatabaseConnect(ctx context.Context, driverName string, dataSourceName string) (*sqlx.DB, error)

DatabaseConnect applies telemetry to a database/sql driver

func ExecuteStandalone

func ExecuteStandalone(ctx context.Context, cfg config.Config) error

func GenerateResource

func GenerateResource(service string) (*resource.Resource, error)

func GrpcDial

func GrpcDial(addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

func HeadersToAttributes

func HeadersToAttributes(headers http.Header) []attribute.KeyValue

func Init

func Init(ctx context.Context, cfg config.Config, service string) (func(), error)

func InitLogs

func InitLogs(ctx context.Context, cfg config.Config, service string) (*log.LoggerProvider, error)

func InitMetric

func InitMetric(ctx context.Context, cfg config.Config, service string) (*metric.MeterProvider, error)

func InitTracer

func InitTracer(ctx context.Context, cfg config.Config, service string) (*trace.TracerProvider, error)

func IsPyroscopeEnabled

func IsPyroscopeEnabled(cfg config.Config) bool

func NewGrpcServer

func NewGrpcServer(ctx context.Context, opts ...grpc.ServerOption) *grpc.Server

func NewRouter

func NewRouter() chi.Router

Types

type Profiler

type Profiler interface {
	Stop() error
	Flush(wait bool)
}

func InitPyroscope

func InitPyroscope(ctx context.Context, cfg config.Config, service string) (Profiler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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