observability

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CLILogger is used for CLI commands (SIMPLE profile)
	CLILogger *logging.Logger

	// ServerLogger is used for HTTP server (STRUCTURED profile)
	ServerLogger *logging.Logger
)
View Source
var (
	// TelemetrySystem is the global telemetry system
	TelemetrySystem *telemetry.System

	// PrometheusExporter is the prometheus metrics exporter
	PrometheusExporter *exporters.PrometheusExporter
)

Functions

func GetMetricsPort

func GetMetricsPort() int

GetMetricsPort returns the port the Prometheus exporter is listening on

func InitCLILogger

func InitCLILogger(serviceName string, verbose bool)

InitCLILogger initializes the CLI logger with SIMPLE profile

func InitMetrics

func InitMetrics(serviceName string, port int, namespace ...string) error

InitMetrics initializes the telemetry system with Prometheus exporter. The exporter listens on the provided port (use 0 for random assignment). Optional namespace parameter for telemetry integration.

func InitServerLogger

func InitServerLogger(serviceName string, logLevel string, namespace ...string)

InitServerLogger initializes the server logger with STRUCTURED profile Optional namespace parameter for telemetry integration

Types

This section is empty.

Jump to

Keyboard shortcuts

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