4. Monitoring, Logging and Statistics

time

Version

Measures the end-to-end processing time of the child interceptor flow and logs an aligned summary. If an OpenTelemetry parent Span is present on the {@link Exchange}, a child sub-span is created around the measured section so timing data is exported to OTel as well.
time:
label: flow-timing
flow:
- log: {} # nested plugins here
time:
   label: flow-timing
   flow:
     - log: {} # nested plugins here

Syntax

time:
'$ref': <string>
flow:
- <flow>
label: <string>
time:
  '$ref': <string>
  flow:
    - <flow>
  label: <string>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-
labelfalse-Optional label prefix for log lines. Use it to distinguish logs from multiple blocks."Validation"

Child Structure

ElementCardinalityDescription
flow0..*Sets the flow of plugins that will be executed.

Can be used in