Modules§
- byte_
buffer - ByteBuffer is a struct that represents an array of bytes to be sent over the FFI boundaries.
- ping_
type - upload
- FFI compatible types for the upload mechanism.
Macros§
- define_
infallible_ handle_ map_ deleter - define_
metric - Define the global handle map, constructor and destructor functions and any user-defined functions for a new metric
Structs§
- FfiConfiguration
- Configuration over FFI.
Enums§
- Lifetime
- The supported metrics’ lifetimes.
- Memory
Unit - Different resolutions supported by the memory related metric types (e.g. MemoryDistributionMetric).
- Time
Unit - Different resolutions supported by the time related metric types (e.g. DatetimeMetric).
Constants§
- UPLOAD_
RESULT_ HTTP_ STATUS - A HTTP response code.
- UPLOAD_
RESULT_ RECOVERABLE - A recoverable error.
- UPLOAD_
RESULT_ UNRECOVERABLE - An unrecoverable error.
Functions§
- glean_
clear_ application_ lifetime_ metrics - glean_
destroy_ glean - glean_
enable_ logging - Initialize the logging system based on the target platform. This ensures that logging is shown when executing the Glean SDK unit tests.
- glean_
enable_ ⚠logging_ to_ fd - Initialize the logging system to send JSON messages to a file descriptor (Unix) or file handle (Windows).
- glean_
experiment_ test_ get_ data - glean_
experiment_ test_ is_ active - glean_
flush_ rlb_ dispatcher - Try to unblock the RLB dispatcher to start processing queued tasks.
- glean_
get_ timestamp_ ms - glean_
get_ upload_ task - glean_
handle_ client_ active - glean_
handle_ client_ inactive - glean_
initialize ⚠ - Safety
- glean_
initialize_ ⚠for_ subprocess - Safety
- glean_
is_ dirty_ flag_ set - glean_
is_ first_ run - glean_
is_ upload_ enabled - glean_
on_ ready_ to_ submit_ pings - glean_
ping_ collect - glean_
process_ ⚠ping_ upload_ response - Process and free a
FfiPingUploadTask
. - glean_
set_ debug_ view_ tag - glean_
set_ dirty_ flag - glean_
set_ experiment_ active - glean_
set_ experiment_ inactive - glean_
set_ log_ pings - glean_
set_ source_ tags - glean_
set_ upload_ enabled - glean_
str_ ⚠free - Public destructor for strings managed by the other side of the FFI.
- glean_
submit_ ping_ by_ name - glean_
test_ clear_ all_ stores