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>,
pub ai_model_costs: ErrorBoundary<ModelCosts>,
pub span_op_defaults: SpanOpDefaults,
}
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.
ai_model_costs: ErrorBoundary<ModelCosts>
Configuration for AI span measurements.
span_op_defaults: SpanOpDefaults
Configuration to derive the span.op
from other span fields.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)