Expand description
Options client for reading validated configuration values.
Re-exports§
pub use features::FeatureChecker;pub use features::FeatureContext;pub use features::features;
Modules§
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.
Enums§
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§
- 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