Jido.Observe.Config
(Jido v2.2.0)
View Source
Resolves observability configuration with per-instance support.
Resolution order (highest priority first):
Jido.Debugruntime override (persistent_term, per-instance)- Per-instance app config (
config :my_app, MyApp.Jido, telemetry: [...]) - Global app config (
config :jido, :telemetry/config :jido, :observability) - Hardcoded default
When instance is nil, steps 1-2 are skipped.
Summary
Functions
Returns Jido.Exec options aligned with the instance observability config.
Returns the effective Jido.Exec logger threshold for the given instance.
Returns the effective Jido.Exec telemetry mode for the given instance.
Returns true if debug-level logging is enabled.
Returns the debug events mode for the given instance.
Returns true if debug events are enabled.
Returns the maximum number of debug events to store.
Returns true if the signal type is considered interesting.
Returns the list of signal types considered interesting.
Returns true if the given log level is enabled.
Returns the observability log level for the given instance.
Returns true if sensitive data should be redacted.
Returns the slow directive threshold in milliseconds.
Returns the slow signal threshold in milliseconds.
Returns the argument logging mode for the given instance.
Returns the telemetry log level for the given instance.
Returns true if trace-level logging is enabled.
Returns the tracer module for the given instance.
Returns tracer callback failure handling mode.
Types
@type instance() :: atom() | nil
Functions
Returns Jido.Exec options aligned with the instance observability config.
Jido action execution only supports coarse logger thresholds, so :keys_only
and :none argument modes are translated into a warning-or-higher threshold
to suppress verbose action/context dumps. jido_action telemetry only
supports :full or :silent, so non-full argument modes are translated into
:silent to avoid leaking full action params/context through dependency
telemetry spans. Full argument logging is only enabled when the instance opts
into log_args: :full or Jido.debug(:verbose).
@spec action_log_level(instance()) :: Logger.level()
Returns the effective Jido.Exec logger threshold for the given instance.
@spec action_telemetry_mode(instance()) :: :full | :silent
Returns the effective Jido.Exec telemetry mode for the given instance.
Returns true if debug-level logging is enabled.
@spec debug_events(instance()) :: :off | :minimal | :all
Returns the debug events mode for the given instance.
Returns true if debug events are enabled.
@spec debug_max_events(instance()) :: non_neg_integer()
Returns the maximum number of debug events to store.
Returns true if the signal type is considered interesting.
Returns the list of signal types considered interesting.
Returns true if the given log level is enabled.
@spec observe_log_level(instance()) :: Logger.level()
Returns the observability log level for the given instance.
Returns true if sensitive data should be redacted.
@spec slow_directive_threshold_ms(instance()) :: non_neg_integer()
Returns the slow directive threshold in milliseconds.
@spec slow_signal_threshold_ms(instance()) :: non_neg_integer()
Returns the slow signal threshold in milliseconds.
@spec telemetry_log_args(instance()) :: :keys_only | :full | :none
Returns the argument logging mode for the given instance.
@spec telemetry_log_level(instance()) :: :trace | :debug | :info | :warning | :error
Returns the telemetry log level for the given instance.
Returns true if trace-level logging is enabled.
Returns the tracer module for the given instance.
@spec tracer_failure_mode(instance()) :: :warn | :strict
Returns tracer callback failure handling mode.