This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.3.5! |
Recording HTTP Exchanges
You can enable recording of HTTP exchanges by providing a bean of type HttpExchangeRepository
in your application’s configuration.
For convenience, Spring Boot offers InMemoryHttpExchangeRepository
, which, by default, stores the last 100 request-response exchanges.
InMemoryHttpExchangeRepository
is limited compared to tracing solutions, and we recommend using it only for development environments.
For production environments, we recommend using a production-ready tracing or observability solution, such as Zipkin or OpenTelemetry.
Alternatively, you can create your own HttpExchangeRepository
.
You can use the httpexchanges
endpoint to obtain information about the request-response exchanges that are stored in the HttpExchangeRepository
.