Class PopulateMetricContext

  • All Implemented Interfaces:
    Component, DestructableComponent, InitializableComponent, ProfileAction

    public class PopulateMetricContext
    extends AbstractProfileAction
    An action that populates a MetricContext child of the ProfileRequestContext with a set of rules for activating timer measurements and counters on associated objects during the execution of a profile request.

    Unlike a more typical "lookup strategy" design used in most other places, the strategy function supplied is free, and indeed expected, to directly manipulate the created child context directly rather than returning the data to use. The function may return false to indicate a lack of success, but this value is merely logged.

    Event:
    EventIds.PROCEED_EVENT_ID