TelescopeStore class
In-memory ring-buffer store for the 9 V1+alpha-2 watcher record types.
Default cap: 500 entries per buffer (configurable via setCapacity). Singleton accessed via static methods. Hot-restart resets the buffers naturally (statics re-run their initializers).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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 Properties
-
onCacheRecord
→ Stream<
MagicCacheRecord> -
no setter
-
onDumpRecord
→ Stream<
DumpRecord> -
no setter
-
onEventRecord
→ Stream<
EventRecord> -
no setter
-
onExceptionRecord
→ Stream<
ExceptionRecord> -
no setter
-
onGateRecord
→ Stream<
GateRecord> -
no setter
-
onHttpRecord
→ Stream<
HttpRequestRecord> -
no setter
-
onLogRecord
→ Stream<
LogRecordEntry> -
no setter
-
onModelRecord
→ Stream<
MagicModelRecord> -
no setter
-
onQueryRecord
→ Stream<
QueryRecord> -
no setter
- pendingHttpCount → int
-
Total number of HTTP requests currently in flight across every
registered TelescopeHttpAdapter.
no setter
Static Methods
-
clear(
) → void - Clear all buffers.
-
pause(
) → void - Pause all recording. Calls become no-ops until resume.
-
recentCaches(
{int? limit}) → List< MagicCacheRecord> -
recentDumps(
{int? limit}) → List< DumpRecord> -
recentEvents(
{int? limit}) → List< EventRecord> -
recentExceptions(
{int? limit}) → List< ExceptionRecord> -
recentGates(
{int? limit}) → List< GateRecord> -
recentHttp(
{int? limit}) → List< HttpRequestRecord> -
recentLogs(
{int? limit, String? minLevel}) → List< LogRecordEntry> -
recentModels(
{int? limit}) → List< MagicModelRecord> -
recentQueries(
{int? limit}) → List< QueryRecord> -
recordDump(
DumpRecord r) → void -
recordEvent(
EventRecord r) → void -
recordException(
ExceptionRecord r) → void -
recordGate(
GateRecord r) → void -
recordHttp(
HttpRequestRecord r) → void -
recordLog(
LogRecordEntry r) → void -
recordMagicCache(
MagicCacheRecord r) → void -
recordMagicModel(
MagicModelRecord r) → void -
recordQuery(
QueryRecord r) → void -
resetForTesting(
) → void - Test-only reset.
-
resume(
) → void - Resume recording.
-
setCapacity(
int cap) → void - Set per-buffer capacity (default 500).