You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new metrics to the d_instantiate hook that allow for tracking
individual event types dispatched. This is helpful to identify if one of
these types are being lost by comparing the `Added` label from the
originating hook (like path_mkdir or path_symlink) with the
corresponding `Added<hook>` label.
In order for `d_instantiate` to have its own type some trait + iterator
gymnastics were necessary. The summary for this is:
* A new `KernelMetric` trait is created which describes how metrics
coming from the kernel should be accumulated and encoded using a
`KernelMetricLabel` helper type.
* The trait is implemented for `metrics_by_hook_t` and
`metrics_d_instantiate_t`.
* The metrics module know how to translate from `KernelMetricLabel` to
`LabelValues`, so it does the same `accumulate` process it used to do
and then uses the iterator produced by `encode` to add metrics
dynamically.
0 commit comments