Name
Sampling — Extract a sample of the exchanges passing through a route
Usage
The sampling pattern allows you to extract a sample of the exchanges as they pass through a route. They are configured with a sampling period during which only a single exchange is allowed to pass through. All other exchanges will be stopped.
The sampling pattern can appear anywhere in the body of a route.
Properties
Table 6.3 describes the properties you can specify using the properties editor.
Table 6.3. Sampling Properties
Name | Description |
---|---|
Sample Period | Specifies the amount of time during which a single message can pass. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Units | Specifies the unit of measure for the sampling period. |
Message Frequency | Specifies the frequency of messages that can pass in the sampling period. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |