@type type() :: :event | :vod
@spec capture_value!(String.t(), String.t(), (String.t() -> any())) :: any()