observability

package
v0.0.0-...-ceb351d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 New

func New(
	ctx context.Context,
	sentryConfig logger.Config) (*Observability, error)

New creates a new observability stack and returns

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

type Option

type Option func(*Observability)

Option is used make Observability

Jump to

Keyboard shortcuts

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