diff --git a/internal/server/mock/trace/get_suspended.go b/internal/server/mock/trace/get_suspended.go new file mode 100644 index 0000000..5ef6771 --- /dev/null +++ b/internal/server/mock/trace/get_suspended.go @@ -0,0 +1,14 @@ +package trace + +import ( + "context" + + "github.com/skpr/api/pb" +) + +// GetSuspended returns whether tracing is currently suspended for a specific environment. +func (s *Server) GetSuspended(_ context.Context, req *pb.TraceGetSuspendedRequest) (*pb.TraceGetSuspendedResponse, error) { + return &pb.TraceGetSuspendedResponse{ + Suspended: s.IsSuspended(req.Environment), + }, nil +} diff --git a/internal/server/mock/trace/get_threshold.go b/internal/server/mock/trace/get_threshold.go new file mode 100644 index 0000000..0463107 --- /dev/null +++ b/internal/server/mock/trace/get_threshold.go @@ -0,0 +1,16 @@ +package trace + +import ( + "context" + + "google.golang.org/protobuf/types/known/durationpb" + + "github.com/skpr/api/pb" +) + +// GetThreshold returns the minimum call duration which is traced for a specific environment. +func (s *Server) GetThreshold(_ context.Context, req *pb.TraceGetThresholdRequest) (*pb.TraceGetThresholdResponse, error) { + return &pb.TraceGetThresholdResponse{ + Threshold: durationpb.New(s.getThreshold(req.Environment)), + }, nil +} diff --git a/internal/server/mock/trace/server.go b/internal/server/mock/trace/server.go index 9eaddf6..c9363f4 100644 --- a/internal/server/mock/trace/server.go +++ b/internal/server/mock/trace/server.go @@ -15,9 +15,9 @@ const DefaultThreshold = time.Millisecond type Server struct { pb.UnimplementedTraceServer - lock sync.Mutex - suspended map[string]bool - threshold map[string]time.Duration + lock sync.Mutex + suspended map[string]bool + thresholds map[string]time.Duration } // SetSuspended marks tracing as suspended, or resumed, for an environment. @@ -45,21 +45,21 @@ func (s *Server) setThreshold(environment string, threshold time.Duration) { s.lock.Lock() defer s.lock.Unlock() - if s.threshold == nil { - s.threshold = make(map[string]time.Duration) + if s.thresholds == nil { + s.thresholds = make(map[string]time.Duration) } - s.threshold[environment] = threshold + s.thresholds[environment] = threshold } -// GetThreshold returns the minimum call duration which is traced for an +// getThreshold returns the minimum call duration which is traced for an // environment, falling back to the default for an environment which has not had // one set. -func (s *Server) GetThreshold(environment string) time.Duration { +func (s *Server) getThreshold(environment string) time.Duration { s.lock.Lock() defer s.lock.Unlock() - threshold, ok := s.threshold[environment] + threshold, ok := s.thresholds[environment] if !ok { return DefaultThreshold } diff --git a/internal/server/mock/trace/server_test.go b/internal/server/mock/trace/server_test.go index 746891d..aa6a80f 100644 --- a/internal/server/mock/trace/server_test.go +++ b/internal/server/mock/trace/server_test.go @@ -40,7 +40,7 @@ func TestSetThreshold(t *testing.T) { t.Errorf("got code %s, want %s", got, c.wantCode) } - if got := srv.GetThreshold("dev"); got != c.want { + if got := getThreshold(t, srv, "dev"); got != c.want { t.Errorf("got threshold %s, want %s", got, c.want) } }) @@ -52,7 +52,7 @@ func TestSetThreshold(t *testing.T) { func TestGetThresholdDefaults(t *testing.T) { srv := &Server{} - if got := srv.GetThreshold("dev"); got != DefaultThreshold { + if got := getThreshold(t, srv, "dev"); got != DefaultThreshold { t.Errorf("got threshold %s, want %s", got, DefaultThreshold) } } @@ -69,11 +69,44 @@ func TestSetThresholdIsPerEnvironment(t *testing.T) { t.Fatalf("unexpected error: %v", err) } - if got := srv.GetThreshold("prod"); got != DefaultThreshold { + if got := getThreshold(t, srv, "prod"); got != DefaultThreshold { t.Errorf("got threshold %s for prod, want %s", got, DefaultThreshold) } } +// --- GetSuspended --- + +// Suspending and resuming are only useful if a client can find out which of the +// two an environment is in, without opening a stream to see if it fails. +func TestGetSuspended(t *testing.T) { + srv := &Server{} + + if getSuspended(t, srv, "dev") { + t.Error("got suspended for an environment which was never suspended") + } + + if _, err := srv.Suspend(context.TODO(), &pb.TraceSuspendRequest{Environment: "dev"}); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + if !getSuspended(t, srv, "dev") { + t.Error("got resumed after Suspend") + } + + // Suspending one environment does not suspend the rest. + if getSuspended(t, srv, "prod") { + t.Error("got suspended for prod after suspending dev") + } + + if _, err := srv.Resume(context.TODO(), &pb.TraceResumeRequest{Environment: "dev"}); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + if getSuspended(t, srv, "dev") { + t.Error("got suspended after Resume") + } +} + // --- aboveThreshold --- func TestAboveThreshold(t *testing.T) { @@ -116,3 +149,27 @@ func TestAboveThreshold(t *testing.T) { }) } } + +// --- helpers --- + +func getThreshold(t *testing.T, srv *Server, environment string) time.Duration { + t.Helper() + + resp, err := srv.GetThreshold(context.TODO(), &pb.TraceGetThresholdRequest{Environment: environment}) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + return resp.Threshold.AsDuration() +} + +func getSuspended(t *testing.T, srv *Server, environment string) bool { + t.Helper() + + resp, err := srv.GetSuspended(context.TODO(), &pb.TraceGetSuspendedRequest{Environment: environment}) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + return resp.Suspended +} diff --git a/internal/server/mock/trace/stream_traces.go b/internal/server/mock/trace/stream_traces.go index 56e56a5..a77cd81 100644 --- a/internal/server/mock/trace/stream_traces.go +++ b/internal/server/mock/trace/stream_traces.go @@ -24,7 +24,7 @@ func (s *Server) StreamTraces(req *pb.StreamTracesRequest, server pb.Trace_Strea return status.Errorf(codes.FailedPrecondition, "tracing is suspended for environment: %s", req.Environment) } - threshold := s.GetThreshold(req.Environment) + threshold := s.getThreshold(req.Environment) now := time.Now() diff --git a/pb/trace.pb.go b/pb/trace.pb.go index af9d36f..da6ddbc 100644 --- a/pb/trace.pb.go +++ b/pb/trace.pb.go @@ -352,6 +352,104 @@ func (*TraceResumeResponse) Descriptor() ([]byte, []int) { return file_trace_proto_rawDescGZIP(), []int{3} } +// * +// Request whether tracing is currently suspended for an environment +type TraceGetSuspendedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment +} + +func (x *TraceGetSuspendedRequest) Reset() { + *x = TraceGetSuspendedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_trace_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TraceGetSuspendedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TraceGetSuspendedRequest) ProtoMessage() {} + +func (x *TraceGetSuspendedRequest) ProtoReflect() protoreflect.Message { + mi := &file_trace_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TraceGetSuspendedRequest.ProtoReflect.Descriptor instead. +func (*TraceGetSuspendedRequest) Descriptor() ([]byte, []int) { + return file_trace_proto_rawDescGZIP(), []int{4} +} + +func (x *TraceGetSuspendedRequest) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +// * +// Whether tracing is currently suspended for an environment +type TraceGetSuspendedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Suspended bool `protobuf:"varint,1,opt,name=Suspended,proto3" json:"Suspended,omitempty"` // If tracing is suspended for the environment +} + +func (x *TraceGetSuspendedResponse) Reset() { + *x = TraceGetSuspendedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_trace_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TraceGetSuspendedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TraceGetSuspendedResponse) ProtoMessage() {} + +func (x *TraceGetSuspendedResponse) ProtoReflect() protoreflect.Message { + mi := &file_trace_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TraceGetSuspendedResponse.ProtoReflect.Descriptor instead. +func (*TraceGetSuspendedResponse) Descriptor() ([]byte, []int) { + return file_trace_proto_rawDescGZIP(), []int{5} +} + +func (x *TraceGetSuspendedResponse) GetSuspended() bool { + if x != nil { + return x.Suspended + } + return false +} + // * // Request that the tracing threshold be set for an environment type TraceSetThresholdRequest struct { @@ -371,7 +469,7 @@ type TraceSetThresholdRequest struct { func (x *TraceSetThresholdRequest) Reset() { *x = TraceSetThresholdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[4] + mi := &file_trace_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -384,7 +482,7 @@ func (x *TraceSetThresholdRequest) String() string { func (*TraceSetThresholdRequest) ProtoMessage() {} func (x *TraceSetThresholdRequest) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[4] + mi := &file_trace_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -397,7 +495,7 @@ func (x *TraceSetThresholdRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceSetThresholdRequest.ProtoReflect.Descriptor instead. func (*TraceSetThresholdRequest) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{4} + return file_trace_proto_rawDescGZIP(), []int{6} } func (x *TraceSetThresholdRequest) GetEnvironment() string { @@ -425,7 +523,7 @@ type TraceSetThresholdResponse struct { func (x *TraceSetThresholdResponse) Reset() { *x = TraceSetThresholdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[5] + mi := &file_trace_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -438,7 +536,7 @@ func (x *TraceSetThresholdResponse) String() string { func (*TraceSetThresholdResponse) ProtoMessage() {} func (x *TraceSetThresholdResponse) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[5] + mi := &file_trace_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -451,7 +549,109 @@ func (x *TraceSetThresholdResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceSetThresholdResponse.ProtoReflect.Descriptor instead. func (*TraceSetThresholdResponse) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{5} + return file_trace_proto_rawDescGZIP(), []int{7} +} + +// * +// Request the tracing threshold currently applied to an environment +type TraceGetThresholdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment +} + +func (x *TraceGetThresholdRequest) Reset() { + *x = TraceGetThresholdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_trace_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TraceGetThresholdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TraceGetThresholdRequest) ProtoMessage() {} + +func (x *TraceGetThresholdRequest) ProtoReflect() protoreflect.Message { + mi := &file_trace_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TraceGetThresholdRequest.ProtoReflect.Descriptor instead. +func (*TraceGetThresholdRequest) Descriptor() ([]byte, []int) { + return file_trace_proto_rawDescGZIP(), []int{8} +} + +func (x *TraceGetThresholdRequest) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +// * +// The tracing threshold currently applied to an environment +type TraceGetThresholdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Minimum duration a function call has to run for before it is traced. + // + // An environment which has never had one set reports the default rather than + // zero, because zero is itself a meaningful threshold which traces every call. + Threshold *durationpb.Duration `protobuf:"bytes,1,opt,name=Threshold,proto3" json:"Threshold,omitempty"` +} + +func (x *TraceGetThresholdResponse) Reset() { + *x = TraceGetThresholdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_trace_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TraceGetThresholdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TraceGetThresholdResponse) ProtoMessage() {} + +func (x *TraceGetThresholdResponse) ProtoReflect() protoreflect.Message { + mi := &file_trace_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TraceGetThresholdResponse.ProtoReflect.Descriptor instead. +func (*TraceGetThresholdResponse) Descriptor() ([]byte, []int) { + return file_trace_proto_rawDescGZIP(), []int{9} +} + +func (x *TraceGetThresholdResponse) GetThreshold() *durationpb.Duration { + if x != nil { + return x.Threshold + } + return nil } // * @@ -467,7 +667,7 @@ type StreamTracesRequest struct { func (x *StreamTracesRequest) Reset() { *x = StreamTracesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[6] + mi := &file_trace_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -480,7 +680,7 @@ func (x *StreamTracesRequest) String() string { func (*StreamTracesRequest) ProtoMessage() {} func (x *StreamTracesRequest) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[6] + mi := &file_trace_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -493,7 +693,7 @@ func (x *StreamTracesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTracesRequest.ProtoReflect.Descriptor instead. func (*StreamTracesRequest) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{6} + return file_trace_proto_rawDescGZIP(), []int{10} } func (x *StreamTracesRequest) GetEnvironment() string { @@ -516,7 +716,7 @@ type StreamTracesResponse struct { func (x *StreamTracesResponse) Reset() { *x = StreamTracesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[7] + mi := &file_trace_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -529,7 +729,7 @@ func (x *StreamTracesResponse) String() string { func (*StreamTracesResponse) ProtoMessage() {} func (x *StreamTracesResponse) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[7] + mi := &file_trace_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -542,7 +742,7 @@ func (x *StreamTracesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTracesResponse.ProtoReflect.Descriptor instead. func (*StreamTracesResponse) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{7} + return file_trace_proto_rawDescGZIP(), []int{11} } func (x *StreamTracesResponse) GetTraces() []*Trace { @@ -575,7 +775,7 @@ type Trace struct { func (x *Trace) Reset() { *x = Trace{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[8] + mi := &file_trace_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -588,7 +788,7 @@ func (x *Trace) String() string { func (*Trace) ProtoMessage() {} func (x *Trace) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[8] + mi := &file_trace_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -601,7 +801,7 @@ func (x *Trace) ProtoReflect() protoreflect.Message { // Deprecated: Use Trace.ProtoReflect.Descriptor instead. func (*Trace) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{8} + return file_trace_proto_rawDescGZIP(), []int{12} } func (x *Trace) GetMetadata() *TraceMetadata { @@ -671,7 +871,7 @@ type TraceMetadata struct { func (x *TraceMetadata) Reset() { *x = TraceMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[9] + mi := &file_trace_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -684,7 +884,7 @@ func (x *TraceMetadata) String() string { func (*TraceMetadata) ProtoMessage() {} func (x *TraceMetadata) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[9] + mi := &file_trace_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -697,7 +897,7 @@ func (x *TraceMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceMetadata.ProtoReflect.Descriptor instead. func (*TraceMetadata) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{9} + return file_trace_proto_rawDescGZIP(), []int{13} } func (x *TraceMetadata) GetRequestId() string { @@ -763,7 +963,7 @@ type TraceMetadataHTTP struct { func (x *TraceMetadataHTTP) Reset() { *x = TraceMetadataHTTP{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[10] + mi := &file_trace_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -776,7 +976,7 @@ func (x *TraceMetadataHTTP) String() string { func (*TraceMetadataHTTP) ProtoMessage() {} func (x *TraceMetadataHTTP) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[10] + mi := &file_trace_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -789,7 +989,7 @@ func (x *TraceMetadataHTTP) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceMetadataHTTP.ProtoReflect.Descriptor instead. func (*TraceMetadataHTTP) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{10} + return file_trace_proto_rawDescGZIP(), []int{14} } func (x *TraceMetadataHTTP) GetMethod() string { @@ -819,7 +1019,7 @@ type TraceMetadataCLI struct { func (x *TraceMetadataCLI) Reset() { *x = TraceMetadataCLI{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[11] + mi := &file_trace_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -832,7 +1032,7 @@ func (x *TraceMetadataCLI) String() string { func (*TraceMetadataCLI) ProtoMessage() {} func (x *TraceMetadataCLI) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[11] + mi := &file_trace_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -845,7 +1045,7 @@ func (x *TraceMetadataCLI) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceMetadataCLI.ProtoReflect.Descriptor instead. func (*TraceMetadataCLI) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{11} + return file_trace_proto_rawDescGZIP(), []int{15} } func (x *TraceMetadataCLI) GetCommand() string { @@ -868,7 +1068,7 @@ type TraceResourceUtilisation struct { func (x *TraceResourceUtilisation) Reset() { *x = TraceResourceUtilisation{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[12] + mi := &file_trace_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -881,7 +1081,7 @@ func (x *TraceResourceUtilisation) String() string { func (*TraceResourceUtilisation) ProtoMessage() {} func (x *TraceResourceUtilisation) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[12] + mi := &file_trace_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -894,7 +1094,7 @@ func (x *TraceResourceUtilisation) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceResourceUtilisation.ProtoReflect.Descriptor instead. func (*TraceResourceUtilisation) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{12} + return file_trace_proto_rawDescGZIP(), []int{16} } func (x *TraceResourceUtilisation) GetMaxMemory() int64 { @@ -932,7 +1132,7 @@ type TraceSpan struct { func (x *TraceSpan) Reset() { *x = TraceSpan{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[13] + mi := &file_trace_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -945,7 +1145,7 @@ func (x *TraceSpan) String() string { func (*TraceSpan) ProtoMessage() {} func (x *TraceSpan) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[13] + mi := &file_trace_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -958,7 +1158,7 @@ func (x *TraceSpan) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceSpan.ProtoReflect.Descriptor instead. func (*TraceSpan) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{13} + return file_trace_proto_rawDescGZIP(), []int{17} } func (x *TraceSpan) GetName() string { @@ -1021,7 +1221,7 @@ type TraceDrupal struct { func (x *TraceDrupal) Reset() { *x = TraceDrupal{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[14] + mi := &file_trace_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1034,7 +1234,7 @@ func (x *TraceDrupal) String() string { func (*TraceDrupal) ProtoMessage() {} func (x *TraceDrupal) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[14] + mi := &file_trace_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1047,7 +1247,7 @@ func (x *TraceDrupal) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceDrupal.ProtoReflect.Descriptor instead. func (*TraceDrupal) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{14} + return file_trace_proto_rawDescGZIP(), []int{18} } func (x *TraceDrupal) GetCacheEvents() []*TraceDrupalCacheEvent { @@ -1088,7 +1288,7 @@ type TraceDrupalCacheEvent struct { func (x *TraceDrupalCacheEvent) Reset() { *x = TraceDrupalCacheEvent{} if protoimpl.UnsafeEnabled { - mi := &file_trace_proto_msgTypes[15] + mi := &file_trace_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1101,7 +1301,7 @@ func (x *TraceDrupalCacheEvent) String() string { func (*TraceDrupalCacheEvent) ProtoMessage() {} func (x *TraceDrupalCacheEvent) ProtoReflect() protoreflect.Message { - mi := &file_trace_proto_msgTypes[15] + mi := &file_trace_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1114,7 +1314,7 @@ func (x *TraceDrupalCacheEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceDrupalCacheEvent.ProtoReflect.Descriptor instead. func (*TraceDrupalCacheEvent) Descriptor() ([]byte, []int) { - return file_trace_proto_rawDescGZIP(), []int{15} + return file_trace_proto_rawDescGZIP(), []int{19} } func (x *TraceDrupalCacheEvent) GetOrigin() TraceDrupalCacheOrigin { @@ -1191,162 +1391,190 @@ var file_trace_proto_rawDesc = []byte{ 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x47, 0x65, 0x74, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x09, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, - 0x1b, 0x0a, 0x19, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, - 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x0a, 0x13, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, - 0x06, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x06, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x22, 0xb8, 0x02, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, - 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, - 0x12, 0x55, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x74, 0x69, - 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, - 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x06, 0x64, 0x72, 0x75, 0x70, 0x61, - 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x48, 0x00, - 0x52, 0x06, 0x64, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x61, 0x6c, 0x6c, - 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x70, - 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x44, - 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x64, 0x72, 0x75, 0x70, 0x61, - 0x6c, 0x22, 0xfb, 0x02, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, - 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x07, 0x72, 0x75, - 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x54, 0x54, 0x50, - 0x48, 0x00, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x03, 0x63, - 0x6c, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x43, 0x4c, 0x49, 0x48, 0x01, 0x52, 0x03, 0x63, 0x6c, 0x69, 0x88, 0x01, 0x01, 0x42, 0x07, - 0x0a, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x63, 0x6c, 0x69, 0x22, - 0x3d, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x48, 0x54, 0x54, 0x50, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x2c, - 0x0a, 0x10, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, - 0x4c, 0x49, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x39, 0x0a, 0x18, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, - 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, - 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x61, - 0x78, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, 0xe6, 0x01, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x07, - 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x19, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, + 0x65, 0x74, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x64, 0x22, 0x75, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, + 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x37, 0x0a, 0x09, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x1b, 0x0a, 0x19, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, 0x65, + 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x22, 0x54, 0x0a, 0x19, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x37, 0x0a, 0x09, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, + 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x37, 0x0a, 0x13, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x54, 0x72, + 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x06, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x73, 0x22, 0xb8, 0x02, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x33, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x12, 0x55, 0x0a, + 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x06, 0x64, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, + 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x06, 0x64, + 0x72, 0x75, 0x70, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x23, + 0x0a, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x44, 0x72, 0x6f, 0x70, + 0x70, 0x65, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x64, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x22, 0xfb, + 0x02, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, + 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, + 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x30, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x16, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x54, 0x54, 0x50, 0x48, 0x00, 0x52, + 0x04, 0x68, 0x74, 0x74, 0x70, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x03, 0x63, 0x6c, 0x69, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x4c, + 0x49, 0x48, 0x01, 0x52, 0x03, 0x63, 0x6c, 0x69, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x68, 0x74, 0x74, 0x70, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x63, 0x6c, 0x69, 0x22, 0x3d, 0x0a, 0x11, + 0x54, 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x54, 0x54, + 0x50, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x2c, 0x0a, 0x10, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x4c, 0x49, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x39, 0x0a, 0x18, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x4d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x22, 0xe6, 0x01, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x70, + 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x65, 0x6c, 0x61, + 0x70, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x12, 0x2f, + 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, - 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, - 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, - 0x22, 0x83, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, - 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x44, - 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0x9c, 0x02, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x63, 0x65, - 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x12, 0x38, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x20, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, - 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x6c, 0x6c, - 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x2a, 0x58, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x4f, - 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, - 0x43, 0x45, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, - 0x43, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x10, 0x02, 0x2a, - 0x5c, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, - 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, - 0x0a, 0x11, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, - 0x50, 0x48, 0x50, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, - 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x02, 0x2a, 0x95, 0x01, - 0x0a, 0x16, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x25, 0x54, 0x52, 0x41, 0x43, - 0x45, 0x5f, 0x44, 0x52, 0x55, 0x50, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4f, - 0x52, 0x49, 0x47, 0x49, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x44, 0x52, 0x55, - 0x50, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, - 0x5f, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x01, 0x12, - 0x24, 0x0a, 0x20, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x44, 0x52, 0x55, 0x50, 0x41, 0x4c, 0x5f, - 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x5f, 0x4f, 0x42, 0x4a, - 0x45, 0x43, 0x54, 0x10, 0x02, 0x32, 0xca, 0x02, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, - 0x4a, 0x0a, 0x07, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x1d, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x75, 0x73, 0x70, 0x65, - 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x06, 0x52, - 0x65, 0x73, 0x75, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, - 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x22, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, - 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x12, - 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x30, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, 0x83, 0x01, + 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x12, 0x42, 0x0a, + 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x44, 0x72, 0x6f, 0x70, + 0x70, 0x65, 0x64, 0x22, 0x9c, 0x02, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, + 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, + 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, + 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, + 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, + 0x1f, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x66, 0x66, + 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x61, 0x6c, + 0x6c, 0x73, 0x2a, 0x58, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x10, 0x02, 0x2a, 0x5c, 0x0a, 0x0c, + 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x19, + 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, + 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x50, 0x48, 0x50, + 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, + 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x02, 0x2a, 0x95, 0x01, 0x0a, 0x16, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x44, 0x72, 0x75, 0x70, 0x61, 0x6c, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x25, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x44, + 0x52, 0x55, 0x50, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4f, 0x52, 0x49, 0x47, + 0x49, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x44, 0x52, 0x55, 0x50, 0x41, 0x4c, + 0x5f, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x5f, 0x52, 0x45, + 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, + 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x44, 0x52, 0x55, 0x50, 0x41, 0x4c, 0x5f, 0x43, 0x41, 0x43, + 0x48, 0x45, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, + 0x10, 0x02, 0x32, 0x80, 0x04, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x07, + 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, + 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x59, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x64, 0x12, 0x22, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0c, + 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x22, 0x2e, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, + 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x23, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x53, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x22, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, + 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1362,7 +1590,7 @@ func file_trace_proto_rawDescGZIP() []byte { } var file_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_trace_proto_goTypes = []interface{}{ (TraceSource)(0), // 0: workflow.TraceSource (TraceRuntime)(0), // 1: workflow.TraceRuntime @@ -1371,53 +1599,62 @@ var file_trace_proto_goTypes = []interface{}{ (*TraceSuspendResponse)(nil), // 4: workflow.TraceSuspendResponse (*TraceResumeRequest)(nil), // 5: workflow.TraceResumeRequest (*TraceResumeResponse)(nil), // 6: workflow.TraceResumeResponse - (*TraceSetThresholdRequest)(nil), // 7: workflow.TraceSetThresholdRequest - (*TraceSetThresholdResponse)(nil), // 8: workflow.TraceSetThresholdResponse - (*StreamTracesRequest)(nil), // 9: workflow.StreamTracesRequest - (*StreamTracesResponse)(nil), // 10: workflow.StreamTracesResponse - (*Trace)(nil), // 11: workflow.Trace - (*TraceMetadata)(nil), // 12: workflow.TraceMetadata - (*TraceMetadataHTTP)(nil), // 13: workflow.TraceMetadataHTTP - (*TraceMetadataCLI)(nil), // 14: workflow.TraceMetadataCLI - (*TraceResourceUtilisation)(nil), // 15: workflow.TraceResourceUtilisation - (*TraceSpan)(nil), // 16: workflow.TraceSpan - (*TraceDrupal)(nil), // 17: workflow.TraceDrupal - (*TraceDrupalCacheEvent)(nil), // 18: workflow.TraceDrupalCacheEvent - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*TraceGetSuspendedRequest)(nil), // 7: workflow.TraceGetSuspendedRequest + (*TraceGetSuspendedResponse)(nil), // 8: workflow.TraceGetSuspendedResponse + (*TraceSetThresholdRequest)(nil), // 9: workflow.TraceSetThresholdRequest + (*TraceSetThresholdResponse)(nil), // 10: workflow.TraceSetThresholdResponse + (*TraceGetThresholdRequest)(nil), // 11: workflow.TraceGetThresholdRequest + (*TraceGetThresholdResponse)(nil), // 12: workflow.TraceGetThresholdResponse + (*StreamTracesRequest)(nil), // 13: workflow.StreamTracesRequest + (*StreamTracesResponse)(nil), // 14: workflow.StreamTracesResponse + (*Trace)(nil), // 15: workflow.Trace + (*TraceMetadata)(nil), // 16: workflow.TraceMetadata + (*TraceMetadataHTTP)(nil), // 17: workflow.TraceMetadataHTTP + (*TraceMetadataCLI)(nil), // 18: workflow.TraceMetadataCLI + (*TraceResourceUtilisation)(nil), // 19: workflow.TraceResourceUtilisation + (*TraceSpan)(nil), // 20: workflow.TraceSpan + (*TraceDrupal)(nil), // 21: workflow.TraceDrupal + (*TraceDrupalCacheEvent)(nil), // 22: workflow.TraceDrupalCacheEvent + (*durationpb.Duration)(nil), // 23: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp } var file_trace_proto_depIdxs = []int32{ - 19, // 0: workflow.TraceSetThresholdRequest.Threshold:type_name -> google.protobuf.Duration - 11, // 1: workflow.StreamTracesResponse.Traces:type_name -> workflow.Trace - 12, // 2: workflow.Trace.metadata:type_name -> workflow.TraceMetadata - 16, // 3: workflow.Trace.spans:type_name -> workflow.TraceSpan - 15, // 4: workflow.Trace.resource_utilisation:type_name -> workflow.TraceResourceUtilisation - 17, // 5: workflow.Trace.drupal:type_name -> workflow.TraceDrupal - 20, // 6: workflow.TraceMetadata.start_time:type_name -> google.protobuf.Timestamp - 20, // 7: workflow.TraceMetadata.end_time:type_name -> google.protobuf.Timestamp - 0, // 8: workflow.TraceMetadata.source:type_name -> workflow.TraceSource - 1, // 9: workflow.TraceMetadata.runtime:type_name -> workflow.TraceRuntime - 13, // 10: workflow.TraceMetadata.http:type_name -> workflow.TraceMetadataHTTP - 14, // 11: workflow.TraceMetadata.cli:type_name -> workflow.TraceMetadataCLI - 19, // 12: workflow.TraceSpan.offset:type_name -> google.protobuf.Duration - 19, // 13: workflow.TraceSpan.elapsed:type_name -> google.protobuf.Duration - 19, // 14: workflow.TraceSpan.total:type_name -> google.protobuf.Duration - 18, // 15: workflow.TraceDrupal.cache_events:type_name -> workflow.TraceDrupalCacheEvent - 2, // 16: workflow.TraceDrupalCacheEvent.origin:type_name -> workflow.TraceDrupalCacheOrigin - 19, // 17: workflow.TraceDrupalCacheEvent.offset:type_name -> google.protobuf.Duration - 3, // 18: workflow.trace.Suspend:input_type -> workflow.TraceSuspendRequest - 5, // 19: workflow.trace.Resume:input_type -> workflow.TraceResumeRequest - 7, // 20: workflow.trace.SetThreshold:input_type -> workflow.TraceSetThresholdRequest - 9, // 21: workflow.trace.StreamTraces:input_type -> workflow.StreamTracesRequest - 4, // 22: workflow.trace.Suspend:output_type -> workflow.TraceSuspendResponse - 6, // 23: workflow.trace.Resume:output_type -> workflow.TraceResumeResponse - 8, // 24: workflow.trace.SetThreshold:output_type -> workflow.TraceSetThresholdResponse - 10, // 25: workflow.trace.StreamTraces:output_type -> workflow.StreamTracesResponse - 22, // [22:26] is the sub-list for method output_type - 18, // [18:22] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 23, // 0: workflow.TraceSetThresholdRequest.Threshold:type_name -> google.protobuf.Duration + 23, // 1: workflow.TraceGetThresholdResponse.Threshold:type_name -> google.protobuf.Duration + 15, // 2: workflow.StreamTracesResponse.Traces:type_name -> workflow.Trace + 16, // 3: workflow.Trace.metadata:type_name -> workflow.TraceMetadata + 20, // 4: workflow.Trace.spans:type_name -> workflow.TraceSpan + 19, // 5: workflow.Trace.resource_utilisation:type_name -> workflow.TraceResourceUtilisation + 21, // 6: workflow.Trace.drupal:type_name -> workflow.TraceDrupal + 24, // 7: workflow.TraceMetadata.start_time:type_name -> google.protobuf.Timestamp + 24, // 8: workflow.TraceMetadata.end_time:type_name -> google.protobuf.Timestamp + 0, // 9: workflow.TraceMetadata.source:type_name -> workflow.TraceSource + 1, // 10: workflow.TraceMetadata.runtime:type_name -> workflow.TraceRuntime + 17, // 11: workflow.TraceMetadata.http:type_name -> workflow.TraceMetadataHTTP + 18, // 12: workflow.TraceMetadata.cli:type_name -> workflow.TraceMetadataCLI + 23, // 13: workflow.TraceSpan.offset:type_name -> google.protobuf.Duration + 23, // 14: workflow.TraceSpan.elapsed:type_name -> google.protobuf.Duration + 23, // 15: workflow.TraceSpan.total:type_name -> google.protobuf.Duration + 22, // 16: workflow.TraceDrupal.cache_events:type_name -> workflow.TraceDrupalCacheEvent + 2, // 17: workflow.TraceDrupalCacheEvent.origin:type_name -> workflow.TraceDrupalCacheOrigin + 23, // 18: workflow.TraceDrupalCacheEvent.offset:type_name -> google.protobuf.Duration + 3, // 19: workflow.trace.Suspend:input_type -> workflow.TraceSuspendRequest + 5, // 20: workflow.trace.Resume:input_type -> workflow.TraceResumeRequest + 7, // 21: workflow.trace.GetSuspended:input_type -> workflow.TraceGetSuspendedRequest + 9, // 22: workflow.trace.SetThreshold:input_type -> workflow.TraceSetThresholdRequest + 11, // 23: workflow.trace.GetThreshold:input_type -> workflow.TraceGetThresholdRequest + 13, // 24: workflow.trace.StreamTraces:input_type -> workflow.StreamTracesRequest + 4, // 25: workflow.trace.Suspend:output_type -> workflow.TraceSuspendResponse + 6, // 26: workflow.trace.Resume:output_type -> workflow.TraceResumeResponse + 8, // 27: workflow.trace.GetSuspended:output_type -> workflow.TraceGetSuspendedResponse + 10, // 28: workflow.trace.SetThreshold:output_type -> workflow.TraceSetThresholdResponse + 12, // 29: workflow.trace.GetThreshold:output_type -> workflow.TraceGetThresholdResponse + 14, // 30: workflow.trace.StreamTraces:output_type -> workflow.StreamTracesResponse + 25, // [25:31] is the sub-list for method output_type + 19, // [19:25] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name } func init() { file_trace_proto_init() } @@ -1475,7 +1712,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceSetThresholdRequest); i { + switch v := v.(*TraceGetSuspendedRequest); i { case 0: return &v.state case 1: @@ -1487,7 +1724,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceSetThresholdResponse); i { + switch v := v.(*TraceGetSuspendedResponse); i { case 0: return &v.state case 1: @@ -1499,7 +1736,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StreamTracesRequest); i { + switch v := v.(*TraceSetThresholdRequest); i { case 0: return &v.state case 1: @@ -1511,7 +1748,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StreamTracesResponse); i { + switch v := v.(*TraceSetThresholdResponse); i { case 0: return &v.state case 1: @@ -1523,7 +1760,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Trace); i { + switch v := v.(*TraceGetThresholdRequest); i { case 0: return &v.state case 1: @@ -1535,7 +1772,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceMetadata); i { + switch v := v.(*TraceGetThresholdResponse); i { case 0: return &v.state case 1: @@ -1547,7 +1784,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceMetadataHTTP); i { + switch v := v.(*StreamTracesRequest); i { case 0: return &v.state case 1: @@ -1559,7 +1796,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceMetadataCLI); i { + switch v := v.(*StreamTracesResponse); i { case 0: return &v.state case 1: @@ -1571,7 +1808,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceResourceUtilisation); i { + switch v := v.(*Trace); i { case 0: return &v.state case 1: @@ -1583,7 +1820,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceSpan); i { + switch v := v.(*TraceMetadata); i { case 0: return &v.state case 1: @@ -1595,7 +1832,7 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceDrupal); i { + switch v := v.(*TraceMetadataHTTP); i { case 0: return &v.state case 1: @@ -1607,6 +1844,54 @@ func file_trace_proto_init() { } } file_trace_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TraceMetadataCLI); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_trace_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TraceResourceUtilisation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_trace_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TraceSpan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_trace_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TraceDrupal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_trace_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TraceDrupalCacheEvent); i { case 0: return &v.state @@ -1619,15 +1904,15 @@ func file_trace_proto_init() { } } } - file_trace_proto_msgTypes[8].OneofWrappers = []interface{}{} - file_trace_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_trace_proto_msgTypes[12].OneofWrappers = []interface{}{} + file_trace_proto_msgTypes[13].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_trace_proto_rawDesc, NumEnums: 3, - NumMessages: 16, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/trace_grpc.pb.go b/pb/trace_grpc.pb.go index 6f59266..c95dfc6 100644 --- a/pb/trace_grpc.pb.go +++ b/pb/trace_grpc.pb.go @@ -24,7 +24,9 @@ const _ = grpc.SupportPackageIsVersion7 type TraceClient interface { Suspend(ctx context.Context, in *TraceSuspendRequest, opts ...grpc.CallOption) (*TraceSuspendResponse, error) Resume(ctx context.Context, in *TraceResumeRequest, opts ...grpc.CallOption) (*TraceResumeResponse, error) + GetSuspended(ctx context.Context, in *TraceGetSuspendedRequest, opts ...grpc.CallOption) (*TraceGetSuspendedResponse, error) SetThreshold(ctx context.Context, in *TraceSetThresholdRequest, opts ...grpc.CallOption) (*TraceSetThresholdResponse, error) + GetThreshold(ctx context.Context, in *TraceGetThresholdRequest, opts ...grpc.CallOption) (*TraceGetThresholdResponse, error) StreamTraces(ctx context.Context, in *StreamTracesRequest, opts ...grpc.CallOption) (Trace_StreamTracesClient, error) } @@ -54,6 +56,15 @@ func (c *traceClient) Resume(ctx context.Context, in *TraceResumeRequest, opts . return out, nil } +func (c *traceClient) GetSuspended(ctx context.Context, in *TraceGetSuspendedRequest, opts ...grpc.CallOption) (*TraceGetSuspendedResponse, error) { + out := new(TraceGetSuspendedResponse) + err := c.cc.Invoke(ctx, "/workflow.trace/GetSuspended", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *traceClient) SetThreshold(ctx context.Context, in *TraceSetThresholdRequest, opts ...grpc.CallOption) (*TraceSetThresholdResponse, error) { out := new(TraceSetThresholdResponse) err := c.cc.Invoke(ctx, "/workflow.trace/SetThreshold", in, out, opts...) @@ -63,6 +74,15 @@ func (c *traceClient) SetThreshold(ctx context.Context, in *TraceSetThresholdReq return out, nil } +func (c *traceClient) GetThreshold(ctx context.Context, in *TraceGetThresholdRequest, opts ...grpc.CallOption) (*TraceGetThresholdResponse, error) { + out := new(TraceGetThresholdResponse) + err := c.cc.Invoke(ctx, "/workflow.trace/GetThreshold", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *traceClient) StreamTraces(ctx context.Context, in *StreamTracesRequest, opts ...grpc.CallOption) (Trace_StreamTracesClient, error) { stream, err := c.cc.NewStream(ctx, &Trace_ServiceDesc.Streams[0], "/workflow.trace/StreamTraces", opts...) if err != nil { @@ -101,7 +121,9 @@ func (x *traceStreamTracesClient) Recv() (*StreamTracesResponse, error) { type TraceServer interface { Suspend(context.Context, *TraceSuspendRequest) (*TraceSuspendResponse, error) Resume(context.Context, *TraceResumeRequest) (*TraceResumeResponse, error) + GetSuspended(context.Context, *TraceGetSuspendedRequest) (*TraceGetSuspendedResponse, error) SetThreshold(context.Context, *TraceSetThresholdRequest) (*TraceSetThresholdResponse, error) + GetThreshold(context.Context, *TraceGetThresholdRequest) (*TraceGetThresholdResponse, error) StreamTraces(*StreamTracesRequest, Trace_StreamTracesServer) error mustEmbedUnimplementedTraceServer() } @@ -116,9 +138,15 @@ func (UnimplementedTraceServer) Suspend(context.Context, *TraceSuspendRequest) ( func (UnimplementedTraceServer) Resume(context.Context, *TraceResumeRequest) (*TraceResumeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Resume not implemented") } +func (UnimplementedTraceServer) GetSuspended(context.Context, *TraceGetSuspendedRequest) (*TraceGetSuspendedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSuspended not implemented") +} func (UnimplementedTraceServer) SetThreshold(context.Context, *TraceSetThresholdRequest) (*TraceSetThresholdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetThreshold not implemented") } +func (UnimplementedTraceServer) GetThreshold(context.Context, *TraceGetThresholdRequest) (*TraceGetThresholdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetThreshold not implemented") +} func (UnimplementedTraceServer) StreamTraces(*StreamTracesRequest, Trace_StreamTracesServer) error { return status.Errorf(codes.Unimplemented, "method StreamTraces not implemented") } @@ -171,6 +199,24 @@ func _Trace_Resume_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +func _Trace_GetSuspended_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TraceGetSuspendedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TraceServer).GetSuspended(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/workflow.trace/GetSuspended", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TraceServer).GetSuspended(ctx, req.(*TraceGetSuspendedRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Trace_SetThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TraceSetThresholdRequest) if err := dec(in); err != nil { @@ -189,6 +235,24 @@ func _Trace_SetThreshold_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Trace_GetThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TraceGetThresholdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TraceServer).GetThreshold(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/workflow.trace/GetThreshold", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TraceServer).GetThreshold(ctx, req.(*TraceGetThresholdRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Trace_StreamTraces_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(StreamTracesRequest) if err := stream.RecvMsg(m); err != nil { @@ -225,10 +289,18 @@ var Trace_ServiceDesc = grpc.ServiceDesc{ MethodName: "Resume", Handler: _Trace_Resume_Handler, }, + { + MethodName: "GetSuspended", + Handler: _Trace_GetSuspended_Handler, + }, { MethodName: "SetThreshold", Handler: _Trace_SetThreshold_Handler, }, + { + MethodName: "GetThreshold", + Handler: _Trace_GetThreshold_Handler, + }, }, Streams: []grpc.StreamDesc{ { diff --git a/trace.proto b/trace.proto index 1fda9ad..8a35b94 100644 --- a/trace.proto +++ b/trace.proto @@ -11,7 +11,9 @@ option go_package = "./pb"; service trace { rpc Suspend (TraceSuspendRequest) returns (TraceSuspendResponse) {} rpc Resume (TraceResumeRequest) returns (TraceResumeResponse) {} + rpc GetSuspended (TraceGetSuspendedRequest) returns (TraceGetSuspendedResponse) {} rpc SetThreshold (TraceSetThresholdRequest) returns (TraceSetThresholdResponse) {} + rpc GetThreshold (TraceGetThresholdRequest) returns (TraceGetThresholdResponse) {} rpc StreamTraces (StreamTracesRequest) returns (stream StreamTracesResponse) {} } @@ -39,6 +41,20 @@ message TraceResumeRequest { */ message TraceResumeResponse {} +/** + * Request whether tracing is currently suspended for an environment + */ +message TraceGetSuspendedRequest { + string Environment = 1; // Name of the environment +} + +/** + * Whether tracing is currently suspended for an environment + */ +message TraceGetSuspendedResponse { + bool Suspended = 1; // If tracing is suspended for the environment +} + /** * Request that the tracing threshold be set for an environment */ @@ -58,6 +74,24 @@ message TraceSetThresholdRequest { */ message TraceSetThresholdResponse {} +/** + * Request the tracing threshold currently applied to an environment + */ +message TraceGetThresholdRequest { + string Environment = 1; // Name of the environment +} + +/** + * The tracing threshold currently applied to an environment + */ +message TraceGetThresholdResponse { + // Minimum duration a function call has to run for before it is traced. + // + // An environment which has never had one set reports the default rather than + // zero, because zero is itself a meaningful threshold which traces every call. + google.protobuf.Duration Threshold = 1; +} + /** * Input for StreamTraces. */