Documentation
¶
Index ¶
- Variables
- func GetExecutor() *executor.Executor
- func GetMetrics() *monitoring.Metrics
- func GetNatsManager() *nats.Manager
- func GetPgSQLManager() *pgsql.Manager
- func InitExecutor(ctx context.Context) (_ error)
- func InitMetrics() (err error)
- func InitNatsManager(ctx context.Context) (err error)
- func InitPostgreSQL() (err error)
- func OperationNameFromContext(ctx context.Context) string
- func SetupOTelSDK(ctx context.Context) (shutdown func(context.Context) error, err error)
- func WithOperationName(ctx context.Context, opName string) context.Context
- type Logger
- func (log *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Tracer trace.Tracer = tracenoop.NewTracerProvider().Tracer(serviceName) Meter metric.Meter = metricnoop.NewMeterProvider().Meter(serviceName) )
View Source
var Config = config.New() // Default so it avoids nil-pointer dereference on root-level errors
View Source
var (
Version = "dev"
)
Functions ¶
func GetExecutor ¶
func GetMetrics ¶
func GetMetrics() *monitoring.Metrics
func GetNatsManager ¶
func GetPgSQLManager ¶
func InitExecutor ¶
func InitMetrics ¶
func InitMetrics() (err error)
func InitNatsManager ¶
func InitPostgreSQL ¶
func InitPostgreSQL() (err error)
func SetupOTelSDK ¶
SetupOTelSDK configures the OpenTelemetry signals exporters.
Types ¶
Click to show internal directories.
Click to hide internal directories.