54.1 Custom tracing

If you need to trace additional events you can inject a
TraceRepository into your
Spring beans. The add method accepts a single Map structure that will be converted to
JSON and logged.

By default an InMemoryTraceRepository will be used that stores the last 100 events. You
can define your own instance of the InMemoryTraceRepository bean if you need to expand
the capacity. You can also create your own alternative TraceRepository implementation
if needed.