Documentation
¶
Overview ¶
Package main demonstrates how to configure observability for an A2A server.
It shows:
- Setting up structured logging with slog at different levels
- Wrapping the slog handler with a custom A2A type formatter
- Redirecting logs to a file
- Attaching the logging interceptor for request/response visibility
- Using payload logging for development debugging
Run with: go run . -level debug -log-file agent.log
Click to show internal directories.
Click to hide internal directories.