android-components / mozilla.components.service.glean / Glean / setExperimentActive

# setExperimentActive

`fun setExperimentActive(experimentId: String, branch: String, extra: Map<String, String>? = null): Unit` (source)

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.

### Parameters

`experimentId` - The id of the active experiment (maximum 30 bytes)

`branch` - The experiment branch (maximum 30 bytes)

`extra` - Optional metadata to output with the ping