fn with_role(
opts: MakeCollectorOpts,
role: ComputeRuntimeRole,
) -> MakeCollectorOptsExpand description
Applies the per-role const label to opts, unless role is Solo.
The two named roles (maintenance, interactive) each get a distinct role label so a second
compute runtime in the same process registers a distinct series rather than colliding with the
first. Solo omits the label so a single-runtime deployment registers exactly as it did before
a second runtime existed.