diff options
author | Etienne Perot <eperot@google.com> | 2021-07-07 12:45:39 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-07 12:48:24 -0700 |
commit | cd558fcb05c30bc08bbb9ba47755c2768fa33316 (patch) | |
tree | 55179a9aafee75963293ddd9eecf07f6df2e9d1d /pkg/metric/metric.proto | |
parent | b63631b46cd9b6b143a9d4a0f03e087b08d5123a (diff) |
Sentry: Measure the time it takes to initialize the Sentry.
PiperOrigin-RevId: 383472507
Diffstat (limited to 'pkg/metric/metric.proto')
-rw-r--r-- | pkg/metric/metric.proto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/metric/metric.proto b/pkg/metric/metric.proto index 53c8b4b50..d466b6904 100644 --- a/pkg/metric/metric.proto +++ b/pkg/metric/metric.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package gvisor; +import "google/protobuf/timestamp.proto"; + // MetricMetadata contains all of the metadata describing a single metric. message MetricMetadata { // name is the unique name of the metric, usually in a "directory" format @@ -63,6 +65,7 @@ message MetricMetadata { // future MetricUpdates. message MetricRegistration { repeated MetricMetadata metrics = 1; + repeated string stages = 2; } // MetricValue the value of a metric at a single point in time. @@ -79,9 +82,20 @@ message MetricValue { repeated string field_values = 4; } +// StageTiming represents a new stage that's been reached by the Sentry. +message StageTiming { + string stage = 1; + google.protobuf.Timestamp started = 2; + google.protobuf.Timestamp ended = 3; +} + // MetricUpdate contains new values for multiple distinct metrics. // // Metrics whose values have not changed are not included. message MetricUpdate { repeated MetricValue metrics = 1; + // Timing information of initialization stages reached since last update. + // The first MetricUpdate will include multiple entries, since metric + // initialization happens relatively late in the Sentry startup process. + repeated StageTiming stage_timing = 2; } |