@@ -946,7 +946,7 @@ message WorkspaceSession {
946
946
947
947
// Add these new message definitions
948
948
message InitializerMetric {
949
- // Duration in nanoseconds (standard protobuf duration)
949
+ // Duration in seconds
950
950
google.protobuf.Duration duration = 1 ;
951
951
952
952
// Size in bytes
@@ -955,22 +955,31 @@ message WorkspaceSession {
955
955
956
956
message InitializerMetrics {
957
957
// Git contains metrics for the git initializer step
958
+ // This is set whenenver a `git clone` is issued (mostly on first workspace start)
958
959
InitializerMetric git = 1 ;
959
960
960
961
// FileDownload contains metrics for the file download initializer step
962
+ // This is set for injecting "additionalFiles" into the workspace.
961
963
InitializerMetric file_download = 2 ;
962
964
963
965
// Snapshot contains metrics for the snapshot initializer step
964
966
// This used for workspaces started from snapshots.
965
967
InitializerMetric snapshot = 3 ;
966
968
967
969
// Backup contains metrics for the backup initializer step
970
+ // This is set on subsequent workspace starts, when the file system is restored from backup.
968
971
InitializerMetric backup = 4 ;
969
972
970
973
// Prebuild contains metrics for the prebuild initializer step
974
+ // This is set if the workspace is based on a prebuild.
971
975
InitializerMetric prebuild = 5 ;
972
976
973
977
// Composite contains metrics for the composite initializer step
978
+ // This reports the total if multiple steps are run to initialize the workspace content.
979
+ // Examples are:
980
+ // - "additionalFiles" injected into the workspace
981
+ // - "additionalRepositories" configured
982
+ // - incremental Prebuilds
974
983
InitializerMetric composite = 6 ;
975
984
}
976
985
0 commit comments