observability_slog

command
v1.5.20 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Bridge the SDK's OnEvent hook to log/slog so every request, response, and exception lands as a structured JSON record on stdout.

go run examples/observability_slog/main.go

Output is one JSON line per event — drop it into any log aggregator (Datadog, Loki, ELK, GCP Cloud Logging, etc.) without further parsing.

Jump to

Keyboard shortcuts

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