observability

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProvidersObservability = wire.NewSet(
		wire.FieldsOf(
			new(*Config),
			"Logging",
			"Tracing",
		),
	)
)

Functions

func AcknowledgeError

func AcknowledgeError(err error, logger logging.Logger, span tracing.Span, descriptionFmt string, descriptionArgs ...any)

AcknowledgeError standardizes our error handling by logging and tracing consistently.

func PrepareAndLogError

func PrepareAndLogError(err error, logger logging.Logger, span tracing.Span, descriptionFmt string, descriptionArgs ...any) error

PrepareAndLogError standardizes our error handling by logging, tracing, and formatting an error consistently.

func PrepareError

func PrepareError(err error, span tracing.Span, descriptionFmt string, descriptionArgs ...any) error

PrepareError standardizes our error handling by logging, tracing, and formatting an error consistently.

Types

type Config

type Config struct {
	Logging loggingcfg.Config `json:"logging" toml:"logging,omitempty"`
	Tracing tracingcfg.Config `json:"tracing" toml:"tracing,omitempty"`
	// contains filtered or unexported fields
}

Config contains settings about how we report our metrics.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

Directories

Path Synopsis
zap
cloudtrace
Package cloudtrace provides common functions for attaching values to trace spans
Package cloudtrace provides common functions for attaching values to trace spans
oteltracehttp
Package oteltracehttp provides common functions for attaching values to trace spans
Package oteltracehttp provides common functions for attaching values to trace spans
Package o11yutils offers observability utility functions.
Package o11yutils offers observability utility functions.

Jump to

Keyboard shortcuts

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