BufferingApplicationStartup

ApplicationStartup implementation that buffers steps and records their timestamp as well as their processing time.

Once recording has been started, steps are buffered up until the configured capacity; after that, new steps are not recorded.

There are several ways to keep the buffer size low:

  • configuring filters to only record steps that are relevant to us.
  • draining the buffered steps.

Author

Brian Clozel

Phillip Webb

Since

2.4.0

Constructors

Link copied to clipboard
constructor(capacity: Int)
Create a new buffered ApplicationStartup with a limited capacity and starts the recording of steps.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addFilter(filter: Predicate<StartupStep>)
Add a predicate filter to the list of existing ones.
Link copied to clipboard
Return the timeline by pulling steps from the buffer.
Link copied to clipboard
Return the timeline as a snapshot of currently buffered steps.
Link copied to clipboard
open fun start(name: String): StartupStep
Link copied to clipboard
open fun startRecording()
Start the recording of steps and mark the beginning of the StartupTimeline.