Skip to content

Allow construction of HttpTrace objects from custom HttpTraceRepository implementations #14726

@ferstl

Description

@ferstl

The spring-boot-actuator allows writing custom HttpTraceRepository instances. However, with the current implementation of the HttpTrace class it is impossible to do that properly. The reason is that neither the HttpTrace class nor its internal classes provide any public constructor. This prevents a proper implementation of HttpTraceRepository#findAll().

In #14725 I proposed the changes to create HttpTrace objects from other packages than org.springframework.boot.actuate.trace.http. I do also think that it should be possible to deserialize HttpTrace objects from their JSON representation since these objects are also serialized to JSON.

I'm willing to continue working on the PR if you have any suggestions for improvements.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions