Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observability ¶
type Observability struct {
// Logger will be passed as dependency to other services
// which will help in pushing logs
Logger *logger.ZapLogger
}
Observability holds all the observability related dependencies
func NewTest ¶
func NewTest(ctx context.Context) (*Observability, error)
NewTest returns the observability stack for tests
func (*Observability) GetLogger ¶
func (obs *Observability) GetLogger(ctx context.Context) *logger.Entry
func (*Observability) Shutdown ¶
func (obs *Observability) Shutdown(ctx context.Context)
Shutdown closes all the observability services tracer, metrics.. etc
Click to show internal directories.
Click to hide internal directories.