gpt4 book ai didi

spring-boot - Spring Boot 2x 执行器 http 跟踪不跟踪主体

转载 作者:行者123 更新时间:2023-12-03 14:33:34 25 4
gpt4 key购买 nike

我使用以下给定的属性启用了管理端点,包括 httptrace。

management.endpoints.web.exposure.include=*

但使用 http://localhost:8081/actuator/httptrace

请求正文参数未响应

{
"traces": [
{
"timestamp": "2019-02-15T01:39:50.595Z",
"principal": null,
"session": null,
"request": {
"method": "POST",
"uri": "http://localhost:8080/hi",
"headers": {
"content-length": [
"15"
],
"postman-token": [
"82b0e3eb-6359-4d06-980c-669e553ef5b8"
],
"host": [
"localhost:8080"
],
"connection": [
"keep-alive"
],
"content-type": [
"application/json"
],
"cache-control": [
"no-cache"
],
"accept-encoding": [
"gzip, deflate"
],
"accept": [
"*/*"
],
"user-agent": [
"PostmanRuntime/7.6.0"
]
},
"remoteAddress": null
},
"response": {
"status": 200,
"headers": {}
},
"timeTaken": 1
}
]

}

最佳答案

不幸的是,目前 Actuator 不支持开箱即用:

Github Issue

您可以按照此 StackOverflow thread 中的描述实现自己的端点。

关于spring-boot - Spring Boot 2x 执行器 http 跟踪不跟踪主体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54701661/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com