Documentation / @tenancy-node/core / MemoryErrorTracker
Class: MemoryErrorTracker
Defined in: core/src/observability/memory-error-tracker.ts:20
Registro de errores en memoria del proceso, separado por tenant.
Implements
Constructors
Constructor
new MemoryErrorTracker(
options?):MemoryErrorTracker
Defined in: core/src/observability/memory-error-tracker.ts:25
Parameters
options?
MemoryErrorTrackerOptions = {}
Returns
MemoryErrorTracker
Methods
clear()
clear(
tenantId?):void
Defined in: core/src/observability/memory-error-tracker.ts:71
Parameters
tenantId?
string | null
Returns
void
Implementation of
recent()
recent(
options?):TrackedError[]
Defined in: core/src/observability/memory-error-tracker.ts:49
Errores más recientes primero. tenantId null = central; undefined = todos.
Parameters
options?
limit?
number
tenantId?
string | null
Returns
Implementation of
record()
record(
error):void
Defined in: core/src/observability/memory-error-tracker.ts:30
Parameters
error
Returns
void
Implementation of
summary()
summary():
ErrorSummary[]
Defined in: core/src/observability/memory-error-tracker.ts:60