219.8.2. headers

메시지 헤더는 Metrics 구성 요소 URI에 지정된 값을 재정의하는 데 사용할 수 있습니다.

이름설명예상 유형

CamelMetricsHistogramValue

URI에서 히스토그램 값 재정의

long

// adds value 992 to simple.histogram
from("direct:in")
    .setHeader(MetricsConstants.HEADER_HISTOGRAM_VALUE, constant(992L))
    .to("metrics:histogram:simple.histogram?value=700")
    .to("direct:out")