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

Glean

object Glean (source)

Types

PingEvent

enum class PingEvent

Enumeration of different metric lifetimes.

Functions

getMetricsEnabled

fun getMetricsEnabled(): Boolean

Get the status of metrics enabled.

handleEvent

fun handleEvent(pingEvent: PingEvent): Job

Handle an event and send the appropriate pings.

initialize

fun initialize(applicationContext: Context, configuration: Configuration): Unit

Initialize glean.

setExperimentActive

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

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.

setExperimentInactive

fun setExperimentInactive(experimentId: String): Unit

Indicate that an experiment is no longer running.

setMetricsEnabled

fun setMetricsEnabled(enabled: Boolean): Unit

Enable or disable metric collection.