Name Description Size Coverage
common_metric_data.rs 6346 74 %
core 100 %
core_metrics.rs 10969 -
database -
debug.rs # Debug options The debug options for Glean may be set by calling one of the `set_*` functions or by setting specific environment variables. The environment variables will be read only once when the options are initialized. The possible debugging features available out of the box are: * **Ping logging** - logging the contents of ping requests that are correctly assembled; This may be set by calling glean.set_log_pings(value: bool) or by setting the environment variable GLEAN_LOG_PINGS="true"; * **Debug tagging** - Adding the X-Debug-ID header to every ping request, allowing these tagged pings to be sent to the ["Ping Debug Viewer"](https://mozilla.github.io/glean/book/dev/core/internal/debug-pings.html). This may be set by calling glean.set_debug_view_tag(value: &str) or by setting the environment variable `GLEAN_DEBUG_VIEW_TAG=<some tag>`; * **Source tagging** - Adding the X-Source-Tags header to every ping request, allowing pings to be tagged with custom labels. This may be set by calling `glean.set_source_tags(value: Vec<String>)` or by setting the environment variable `GLEAN_SOURCE_TAGS=<some, tags>`; Bindings may implement other debugging features, e.g. sending pings on demand. 11235 -
dispatcher 65 %
error.rs 6350 -
error_recording.rs # Error Recording Glean keeps track of errors that occured due to invalid labels or invalid values when recording other metrics. Error counts are stored in labeled counters in the `glean.error` category. The labeled counter metrics that store the errors are defined in the `metrics.yaml` for documentation purposes, but are not actually used directly, since the `send_in_pings` value needs to match the pings of the metric that is erroring (plus the "metrics" ping), not some constant value that we could define in `metrics.yaml`. 8339 0 %
event_database -
fd_logger.rs 2605 -
glean.udl 21691 -
glean_metrics.rs 916 -
histogram 67 %
internal_metrics.rs 20744 -
internal_pings.rs 3105 -
lib.rs Glean is a modern approach for recording and sending Telemetry data. It's in use at Mozilla. All documentation can be found online: ## [The Glean SDK Book](https://mozilla.github.io/glean) 60591 100 %
lib_unit_tests.rs 44509 -
metrics 82 %
ping -
scheduler.rs # Metrics Ping Scheduler The Metrics Ping Scheduler (MPS) is responsible for scheduling "metrics" pings. It implements the spec described in [the docs](https://mozilla.github.io/glean/book/user/pings/metrics.html#scheduling) 25475 -
storage -
system.rs Detect and expose `target_os` as a constant. Code adopted from the "platforms" crate: <https://github.com/rustsec/rustsec/tree/2a080f173ad9d8ac7fa260f0a3a6aebf0000de06/platforms>. 2856 -
thread.rs 1544 100 %
traits 75 %
upload -
util.rs 9587 28 %