pub fn apply_context(
ctx: EffectiveContext,
) -> (Option<String>, Option<Vec<String>>, Option<HashMap<String, String>>)Expand description
Convert a resolved crate::context::EffectiveContext into the three
optional fields that are stamped onto a StreamEventRequest.
flow_id— taken directly fromctx.flow_idlabels—Nonewhen the vec is empty,Some(vec)otherwiseparams—Nonewhen the map is empty,Some(HashMap)otherwise (BTreeMap → HashMap conversion)
This is a pure function so it can be unit-tested without I/O.