monitoring

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package monitoring wraps components used for monitoring (logging, tracing, ...)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FxModule

func FxModule() fx.Option

FxModule wires logger, tracer, and the Monitor facade into an Fx application. Importing this module is the recommended way to consume observability primitives — callers who want a slimmer surface can compose logger.FxModule() and tracer.FxModule() directly.

Types

type Monitor

type Monitor interface {
	Logger() logger.Logger
	Tracer() tracer.Tracer
}

func New

func New(l logger.Logger, t tracer.Tracer) Monitor

Directories

Path Synopsis
Package logger describes interfaces for a logger.Logger and other support elements
Package logger describes interfaces for a logger.Logger and other support elements
internal
Package internal holds the logger backend adapters (zap / slog) and the shared OutputFormat / level vocabulary the public logger package translates user input into.
Package internal holds the logger backend adapters (zap / slog) and the shared OutputFormat / level vocabulary the public logger package translates user input into.
loggertest
Package loggertest ...
Package loggertest ...
Package monitoringtest wraps test components for the monitoring package
Package monitoringtest wraps test components for the monitoring package
Package tracer describes interfaces for a tracer.Tracer used to start spans, propagate trace context across process boundaries, and record events on the active span.
Package tracer describes interfaces for a tracer.Tracer used to start spans, propagate trace context across process boundaries, and record events on the active span.
internal
Package internal hides OTel SDK types behind a thin interface so the public tracer package can stay free of vendor-specific imports.
Package internal hides OTel SDK types behind a thin interface so the public tracer package can stay free of vendor-specific imports.
tracertest
Package tracertest provides test doubles for tracer.Tracer.
Package tracertest provides test doubles for tracer.Tracer.

Jump to

Keyboard shortcuts

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