observability

package
v0.4.5 Latest Latest
Warning

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

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

Documentation

Overview

Package observability wires up logging and tracing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(service string) apptheory.ObservabilityHooks

New constructs observability hooks for apptheory services.

func SanitizeLogPath added in v0.4.0

func SanitizeLogPath(raw string) string

SanitizeLogPath normalizes private route path segments before generic request logs persist them. Dedicated audit records carry their own hashed identifiers; this is the defense-in-depth layer for framework/API access style logs that otherwise receive only a raw request path.

func SanitizeMetricTags added in v0.4.0

func SanitizeMetricTags(tags map[string]string) map[string]string

SanitizeMetricTags copies framework metric tags and normalizes any request path tag before generic metric logs persist it. AppTheory emits the raw request path in MetricRecord.Tags["path"] independently from LogRecord.Path, so Host must apply the same redaction at the metric hook boundary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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