Crate sampler_config

source ·


  • Configuration for a single metric to map from an Inspect property to a Cobalt metric.
  • ParsedSelector stores the information Sampler needs to use the selector.
  • Configuration for a single project to map Inspect data to its Cobalt metrics.
  • Container for all configurations needed to instantiate the Sampler infrastructure. Includes: - Project configurations. - Whether to configure the ArchiveReader for tests (e.g. longer timeouts) - Minimum sample rate.
  • Use this struct in a builder pattern to load the Sampler, and optionally FIRE, configs.
  • A selector entry in the configuration file is either a single string or a vector of string selectors. Either case is converted to a vector with at least one element.