observability

package
v1.322.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Package observability exports Credimi traces, metrics and logs over OTLP/HTTP (SigNoz). Export is on only when OTEL_EXPORTER_OTLP_ENDPOINT is set; the exporters read the standard OTEL_* variables themselves (endpoint, headers, timeout, compression), and the resource honours OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether Setup turned OTLP export on.

func Handler

func Handler(next slog.Handler) slog.Handler

Handler returns next, also sending every record to OpenTelemetry when export is on. Records logged with a context carry its trace and span IDs.

func Setup

func Setup(app core.App)

Setup turns OTLP export on when OTEL_EXPORTER_OTLP_ENDPOINT is set. The exporters are flushed on terminate. Every served request is traced: the otelhttp wrapper goes around the final mux, so it also covers the UI and Temporal UI proxies, and the router middleware names each span after the matched route pattern and records the authenticated user and handler errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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