Struct relay_dynamic_config::GlobalConfig
source · pub struct GlobalConfig {
pub measurements: Option<MeasurementsConfig>,
pub quotas: Vec<Quota>,
pub filters: ErrorBoundary<GenericFiltersConfig>,
pub options: Options,
pub metric_extraction: ErrorBoundary<MetricExtractionGroups>,
}
Expand description
A dynamic configuration for all Relays passed down from Sentry.
Values shared across all projects may also be included here, to keep
ProjectConfig
s small.
Fields§
§measurements: Option<MeasurementsConfig>
Configuration for measurements normalization.
quotas: Vec<Quota>
Quotas that apply to all projects.
filters: ErrorBoundary<GenericFiltersConfig>
Configuration for global inbound filters.
These filters are merged with generic filters in project configs before applying.
options: Options
Sentry options passed down to Relay.
metric_extraction: ErrorBoundary<MetricExtractionGroups>
Configuration for global metrics extraction rules.
These are merged with rules in project configs before applying.
Implementations§
source§impl GlobalConfig
impl GlobalConfig
sourcepub fn load(folder_path: &Path) -> Result<Option<Self>>
pub fn load(folder_path: &Path) -> Result<Option<Self>>
Loads the GlobalConfig
from a file if it’s provided.
The folder_path argument should be the path to the folder where the Relay config and credentials are stored.
sourcepub fn filters(&self) -> Option<&GenericFiltersConfig>
pub fn filters(&self) -> Option<&GenericFiltersConfig>
Returns the generic inbound filters.
Trait Implementations§
source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
source§impl Default for GlobalConfig
impl Default for GlobalConfig
source§fn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GlobalConfigwhere
GlobalConfig: Default,
impl<'de> Deserialize<'de> for GlobalConfigwhere
GlobalConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl !RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl !UnwindSafe for GlobalConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more