mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-20 21:40:46 +01:00
Frontend performance metrics (#2439)
* Added enriched metrics * Add more traces for observability
This commit is contained in:
@@ -9,7 +9,11 @@ export enum CommonMetricPhase {
|
||||
// Application-specific phases
|
||||
export enum ApplicationMetricPhase {
|
||||
ExplorerInitialized = "ExplorerInitialized",
|
||||
PlatformConfigured = "PlatformConfigured",
|
||||
CopilotConfigured = "CopilotConfigured",
|
||||
SampleDataLoaded = "SampleDataLoaded",
|
||||
DatabasesFetched = "DatabasesFetched",
|
||||
CollectionsLoaded = "CollectionsLoaded",
|
||||
DatabaseTreeRendered = "DatabaseTreeRendered",
|
||||
}
|
||||
|
||||
@@ -18,6 +22,7 @@ export type MetricPhase = CommonMetricPhase | ApplicationMetricPhase;
|
||||
|
||||
export interface ScenarioConfig<TPhase extends string = MetricPhase> {
|
||||
requiredPhases: TPhase[];
|
||||
deferredPhases?: TPhase[]; // Phases not auto-started at scenario start; started explicitly via startPhase()
|
||||
timeoutMs: number;
|
||||
validate?: (ctx: ScenarioContextSnapshot<TPhase>) => boolean; // Optional custom validation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user