ISpectTraceCategory class final

Defines a trace category for grouping related log entries.

Each domain creates a const instance. pickLogKey determines the log key based on error state and operation type.

Annotations

Constructors

ISpectTraceCategory({required String id, required String successKey, required String errorKey, String? secondaryKey, Set<String> secondaryOperations = const {}})
const

Properties

errorKey → String
Log key for error operations.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Category identifier (e.g. 'network', 'db', 'auth').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryKey → String?
Optional alternative success key for specific operations.
final
secondaryOperations → Set<String>
Operations that use secondaryKey instead of successKey.
final
successKey → String
Log key for successful operations (default).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickLogKey({required bool isError, required String operation}) → String
Determines the log key based on error state and operation.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited