This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.4.1! |
HTTP Exchanges (httpexchanges
)
The httpexchanges
endpoint provides information about HTTP request-response exchanges.
Retrieving the HTTP Exchanges
To retrieve the HTTP exchanges, make a GET
request to /actuator/httpexchanges
, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/httpexchanges' -i -X GET
The resulting response is similar to the following:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 511
{
"exchanges" : [ {
"timestamp" : "2022-12-22T13:43:41Z",
"request" : {
"uri" : "https://api.example.com",
"method" : "GET",
"headers" : {
"Accept" : [ "application/json" ]
}
},
"response" : {
"status" : 200,
"headers" : {
"Content-Type" : [ "application/json" ]
}
},
"principal" : {
"name" : "alice"
},
"session" : {
"id" : "2e1a7cb8-db2d-4638-9f1a-1214baf99bf3"
},
"timeTaken" : "PT0.023S"
} ]
}
Response Structure
The response contains details of the traced HTTP request-response exchanges. The following table describes the structure of the response:
Path | Type | Description |
---|---|---|
|
|
An array of HTTP request-response exchanges. |
|
|
Timestamp of when the exchange occurred. |
|
|
Principal of the exchange, if any. |
|
|
Name of the principal. |
|
|
HTTP method of the request. |
|
|
Remote address from which the request was received, if known. |
|
|
URI of the request. |
|
|
Headers of the request, keyed by header name. |
|
|
Values of the header |
|
|
Status of the response |
|
|
Headers of the response, keyed by header name. |
|
|
Values of the header |
|
|
Session associated with the exchange, if any. |
|
|
ID of the session. |
|
|
Time taken to handle the exchange. |