Expand description
Options client for reading validated configuration values.
Re-exports§
pub use features::FeatureChecker;pub use features::FeatureContext;pub use features::FeatureError;pub use features::features;pub use schema_fetch::RepoSchemaConfig;pub use schema_fetch::RepoSchemaConfigs;pub use schema_fetch::SchemaFetchError;pub use schema_fetch::SchemaFetchResult;pub use schema_fetch::fetch_schemas;pub use schema_fetch::fetch_schemas_from_file;
Modules§
- features
- Feature flag evaluation.
- schema_
fetch - Fetch schema snapshots from the repositories listed in
repos.json. - testing
- Testing utilities for overriding option values in tests.
Structs§
- Init
Builder - Builder for initializing the global options store.
Define optional parameters with
with_*methods, then finalize withinit() - Namespace
Options - Handle for accessing options within a specific namespace.
- Options
- Options store for reading configuration values.
- Schema
Registry - Registry for loading and storing schemas
Enums§
- Options
Error - Validation
Error - Errors that can occur during schema and value validation
Constants§
- DEFAULT_
REFRESH_ THRESHOLD - Default minimum age of a cached values snapshot before a read triggers a refresh. A per-thread jitter of up to 1 s is added on top to spread the reload across threads.
Functions§
- feature_
property - The value a namespace schema pairs with each
feature.<name>key, i.e.{"$ref": "#/definitions/Feature"}. Splice this in when assembling a schema in memory rather than hand-rolling the ref the meta-schema requires. - init
- Initialize global options using the fallback chain:
SENTRY_OPTIONS_DIRenv var, then/etc/sentry-optionsif it exists, otherwisesentry-options/. - init_
with_ propagation_ callback Deprecated - Like
init, but with a callback that fires whenever values are refreshed from disk with a newgenerated_attimestamp. The callback receives(namespace, delay_secs). - init_
with_ schemas Deprecated - Initialize global options with schemas provided as in-memory JSON strings. Values are loaded from disk using the standard fallback chain.
- options
- Get a namespace handle for accessing options.
Type Aliases§
- Propagation
Callback - Callback invoked when a namespace’s values are updated. Receives
(namespace, delay_secs)— the propagation delay from ConfigMap generation to the app reading the new values. - Result