@classmethod
def set_experiment_active(cls, experiment_id: str, branch: str, extra: Optional[Dict[(str, str)]]=None):
    '\n        Indicate that an experiment is running. Glean will then add an\n        experiment annotation to the environment which is sent with pings. This\n        information is not persisted between runs.\n\n        Args:\n            experiment_id (str): The id of the active experiment (maximum 100\n                bytes)\n            branch (str): The experiment branch (maximum 100 bytes)\n            extra (dict of str -> str): Optional metadata to output with the\n                ping\n        '
    if (extra is None):
        keys = []
        values = []
    else:
        (keys, values) = zip(*extra.items())

    @Dispatcher.launch
    def set_experiment_active():
        _ffi.lib.glean_set_experiment_active(_ffi.ffi_encode_string(experiment_id), _ffi.ffi_encode_string(branch), _ffi.ffi_encode_vec_string(keys), _ffi.ffi_encode_vec_string(values), len(keys))
Indicate that an experiment is running. Glean will then add an
experiment annotation to the environment which is sent with pings. This
information is not persisted between runs.

Args:
    experiment_id (str): The id of the active experiment (maximum 100
        bytes)
    branch (str): The experiment branch (maximum 100 bytes)
    extra (dict of str -> str): Optional metadata to output with the
        ping
@classmethod
def set_experiment_active(cls, experiment_id: str, branch: str, extra: Optional[Dict[(str, str)]]=None):
    '\n        Indicate that an experiment is running. Glean will then add an\n        experiment annotation to the environment which is sent with pings. This\n        information is not persisted between runs.\n\n        Args:\n            experiment_id (str): The id of the active experiment (maximum 100\n                bytes)\n            branch (str): The experiment branch (maximum 100 bytes)\n            extra (dict of str -> str): Optional metadata to output with the\n                ping\n        '
    if (extra is None):
        keys = []
        values = []
    else:
        (keys, values) = zip(*extra.items())

    @Dispatcher.launch
    def set_experiment_active():
        _ffi.lib.glean_set_experiment_active(_ffi.ffi_encode_string(experiment_id), _ffi.ffi_encode_string(branch), _ffi.ffi_encode_vec_string(keys), _ffi.ffi_encode_vec_string(values), len(keys))