ISpectLoggerRiverpod extension

Trace helpers for Riverpod provider lifecycle events.

These are typically emitted by the ispectify_riverpod observer - call them directly only when instrumenting a custom ProviderObserver.

on

Methods

riverpodAdd({required String source, required String target, Map<String, Object?>? meta, String? correlationId, ISpectTraceConfig? config, String? consoleMessage}) → void

Available on ISpectLogger, provided by the ISpectLoggerRiverpod extension

Logs didAddProvider under stateCategory with the riverpod-add key.
riverpodDispose({required String source, required String target, Map<String, Object?>? meta, String? correlationId, ISpectTraceConfig? config, String? consoleMessage}) → void

Available on ISpectLogger, provided by the ISpectLoggerRiverpod extension

Logs didDisposeProvider under stateCategory with the riverpod-dispose key.
riverpodFail({required String source, required String target, required Object error, StackTrace? errorStackTrace, Map<String, Object?>? meta, String? correlationId, ISpectTraceConfig? config, String? consoleMessage}) → void

Available on ISpectLogger, provided by the ISpectLoggerRiverpod extension

Logs providerDidFail under stateCategory with the riverpod-fail key.
riverpodUpdate({required String source, required String target, Map<String, Object?>? meta, String? correlationId, ISpectTraceConfig? config, String? consoleMessage}) → void

Available on ISpectLogger, provided by the ISpectLoggerRiverpod extension

Logs didUpdateProvider under stateCategory with the riverpod-update key.