Optionaloptions: { maxOperations?: number }Clear all stored metrics
Get current counter value
Optionallabels: Record<string, string>Get current gauge value
Optionallabels: Record<string, string>Get all recorded operations
Get summary statistics
In-memory metrics collector for testing and simple monitoring. Stores metrics in memory and provides query methods.