The application ID (will be sanitized during initialization).
Determines whether telemetry is enabled. If disabled, all persisted metrics, events and queued pings (except first_run_date) are cleared.
Glean configuration options.
Sets the debugViewTag
debug option.
When this property is set, all subsequent outgoing pings will include the X-Debug-ID
header
which will redirect them to the "Ping Debug Viewer".
The value of the header.
This value must satify the regex ^[a-zA-Z0-9-]{1,20}$
otherwise it will be ignored.
Sets the logPings
debug option.
When this flag is true
pings will be logged to the console right before they are collected.
Whether or not to log pings.
Sets the current environment.
This function must be called before initialize.
The environment to set. Please check out the available environments in the platform/ module.
Sets the sourceTags
debug option.
Ping tags will show in the destination datasets, after ingestion.
Note: Setting sourceTags
will override all previously set tags.
A vector of at most 5 valid HTTP header values. Individual tags must match the regex: "[a-zA-Z0-9-]{1,20}".
Sets whether upload is enabled or not.
When uploading is disabled, metrics aren't recorded at all and no data is uploaded.
When disabling, all pending metrics, events and queued pings are cleared.
When enabling, the core Glean metrics are recreated.
If the value of this flag is not actually changed, this is a no-op.
When true, enable metric collection.
Finishes executing all pending tasks and shuts down both Glean's dispatcher and the ping uploader.
If Glean is not initialized this is a no-op.
This is irreversible. Only a restart will return Glean back to an idle state.
A promise which resolves once the shutdown is complete.
Generated using TypeDoc
Initialize This method should only be called once, subsequent calls will be no-op.