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.
Click to show internal directories.
Click to hide internal directories.