telemetry

package
v0.0.0-...-e5af453 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 33 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 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 NewGrpcServer

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

func NewRouter

func NewRouter() chi.Router

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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