ObservabilityConfig class
Aggregates configuration controlling observability integrations.
Constructors
-
ObservabilityConfig({Duration? heartbeatInterval, String? namespace, List<
String> ? metricExporters, Uri? otlpEndpoint, StemSignalConfiguration? signalConfiguration}) - Creates a configuration with optional overrides for heartbeat cadence, namespace tagging, exporter selection, and OTLP endpoint.
-
ObservabilityConfig.fromEnvironment([Map<
String, String> ? env]) -
Builds a configuration by reading relevant environment variables from
envor the process environment.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- heartbeatInterval → Duration
-
Interval between worker heartbeats emitted for monitoring.
final
-
metricExporters
→ List<
String> -
Immutable list of exporter specifications (e.g.
console,prometheus).final - namespace → String
-
Namespace tag applied to worker observability signals.
final
- otlpEndpoint → Uri?
-
Explicit endpoint override for OTLP-compatible exporters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signalConfiguration → StemSignalConfiguration
-
Signal dispatch configuration describing enablement flags.
final
Methods
-
applyMetricExporters(
) → void - Configures StemMetrics using the exporters defined on this instance.
-
applySignalConfiguration(
) → void - Applies signal configuration globally.
-
merge(
ObservabilityConfig other) → ObservabilityConfig -
Returns a copy of this configuration with values replaced by
other. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parseDuration(
String? raw) → Duration? -
Parses a simple duration token such as
500ms,10s, or2m.