server

command
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

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