monitoring

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer(ctx context.Context, serviceName string) (func(context.Context) error, error)

InitTracer initialises the global OTel tracer provider.

If OTEL_EXPORTER_OTLP_ENDPOINT is unset it installs a no-op provider and returns immediately — callers do not need to special-case the absence. The returned shutdown function must be called before the process exits.

By default the gRPC exporter connects without TLS (suitable for a local collector). Set OTEL_EXPORTER_OTLP_INSECURE=false to enable TLS.

Types

type Logger

type Logger = internalmonitoring.Logger

Logger represents a structured logger with context

type System

type System = internalmonitoring.System

System provides centralized monitoring for Seshat

func NewSystem

func NewSystem(logger *Logger) *System

NewSystem creates a new monitoring system

Jump to

Keyboard shortcuts

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