Documentation ¶
Index ¶
- func DatabaseConnect(ctx context.Context, driverName string, dataSourceName string) (*sqlx.DB, error)
- func GrpcDial(addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func HeadersToAttributes(headers http.Header) []attribute.KeyValue
- func Init(ctx context.Context, cfg config.Config, service string) (func(), error)
- func InitLogs(ctx context.Context, cfg config.Config, service string) (*log.LoggerProvider, error)
- func InitMetric(ctx context.Context, cfg config.Config, service string) (*metric.MeterProvider, error)
- func InitTracer(ctx context.Context, cfg config.Config, service string) (*trace.TracerProvider, error)
- func NewGrpcServer(ctx context.Context, opts ...grpc.ServerOption) *grpc.Server
- func NewRouter() chi.Router
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 InitMetric ¶
func InitTracer ¶
func NewGrpcServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.