221.9.2. headers

camel-metrics 와 마찬가지로 특정 Message 헤더를 사용하여 Micrometer 엔드포인트 URI에 지정된 action 값을 재정의할 수 있습니다.

이름설명예상 유형

CamelMetricsTimerAction

URI의 타이머 작업 재정의

org.apache.camel.component.micrometer.MicrometerTimerAction

// sets timer action using header
from("direct:in")
    .setHeader(MicrometerConstants.HEADER_TIMER_ACTION, MicrometerTimerAction.start)
    .to("micrometer:timer:simple.timer")
    .to("direct:out");