> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/56.-http-tracing/56.1-custom-http-tracing.md).

# 56.1 自定义HTTP追踪

要自定义每个跟踪中包含的项，请使用`management.trace.http.include`配置属性。

默认情况下，使用一个`InMemoryHttpTraceRepository`来存储最后100个请求-响应交换的跟踪。如果需要扩展容量，可以定义自己的`InMemoryHttpTraceRepository` bean实例。你还可以创建自己的替代`HttpTraceRepository`实现。
