Merge pull request #2428 from rosahbruno/1823676-server-knobs-for-mobile

This commit is contained in:
Bruno Rosa 2023-03-21 14:01:30 -04:00 коммит произвёл GitHub
Родитель 5b241cc24b 1c44044543
Коммит cf39d7aaa6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -394,6 +394,16 @@ open class GleanInternalAPI internal constructor() {
return gleanSetSourceTags(tags.toList()) return gleanSetSourceTags(tags.toList())
} }
/**
* Set configuration for metrics' disabled property, typically from a remote_settings
* experiment or rollout.
*
* @param json Stringified JSON map of metrics and their associated `disabled` property.
*/
fun setMetricsDisabledConfig(json: String) {
gleanSetMetricsDisabledConfig(json)
}
/** /**
* Set the logPing debug option, when this is `true` * Set the logPing debug option, when this is `true`
* the payload of assembled ping requests get logged. * the payload of assembled ping requests get logged.

Просмотреть файл

@ -312,6 +312,15 @@ public class Glean {
gleanSetSourceTags(tags) gleanSetSourceTags(tags)
} }
/// Set configuration for metrics' disabled property, typically from remote_settings
/// experiment or rollout.
///
/// - parameters:
/// * json: Stringified JSON map of metrics and their associated `disabled` property.
public func setMetricsDisabledConfig(_ json: String) {
gleanSetMetricsDisabledConfig(json)
}
/// When applications are launched using the custom URL scheme, this helper function will process /// When applications are launched using the custom URL scheme, this helper function will process
/// the URL and parse the debug commands /// the URL and parse the debug commands
/// ///

Просмотреть файл

@ -29,6 +29,9 @@ namespace glean {
void glean_set_experiment_inactive(string experiment_id); void glean_set_experiment_inactive(string experiment_id);
RecordedExperiment? glean_test_get_experiment_data(string experiment_id); RecordedExperiment? glean_test_get_experiment_data(string experiment_id);
// Server Knobs API
void glean_set_metrics_disabled_config(string json);
boolean glean_set_debug_view_tag(string tag); boolean glean_set_debug_view_tag(string tag);
boolean glean_set_source_tags(sequence<string> tags); boolean glean_set_source_tags(sequence<string> tags);
void glean_set_log_pings(boolean value); void glean_set_log_pings(boolean value);