From eb955931bd69f58ad39c18717aa6749551846692 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Thu, 15 Sep 2022 11:21:57 -0700 Subject: [PATCH 1/8] ci(pre-commit): set up golangci-lint cache --- .github/workflows/pre-commit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 889e1bbdbf8..20c32712000 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -50,6 +50,26 @@ jobs: - name: Set GO_VERSION run: echo "GO_VERSION=$(<.go-version)" >> $GITHUB_ENV + - name: Set golangci-lint cache key parts + run: | + echo "INTERVAL_KEY=$(( $(date +%s) / (7 * 86400) ))" >> $GITHUB_ENV + # GH Actions hashFiles() function uses SHA512 + echo "GO_MOD_SHA1=$(sha1sum go.mod | cut -d' ' -f1)" >> $GITHUB_ENV + + # Same as https://github.com/golangci/golangci-lint-action#caching-internals + - name: Set up golangci-lint cache + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3.0.8 + with: + path: | + ~/.cache/golangci-lint + ~/.cache/go-build + ~/go/pkg + # https://github.com/golangci/golangci-lint-action/blob/v3.2.0/src/cache.ts#L53-L69 + key: golangci-lint.cache-${{ env.INTERVAL_KEY }}-${{ env.GO_MOD_SHA1 }} + restore-keys: | + golangci-lint.cache-${{ env.INTERVAL_KEY }}- + golangci-lint.cache- + - name: Set up pre-commit run: pipx install "pre-commit==${PRE_COMMIT_VERSION}" From f899bf9f965655e1a86ce01fce8fc667942d86e3 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Thu, 15 Sep 2022 11:44:00 -0700 Subject: [PATCH 2/8] Remove golangci-lint timeout --- .pre-commit-config.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 71b8819650e..597701106ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,10 +44,6 @@ repos: rev: v1.49.0 hooks: - id: golangci-lint - args: - # Without cache and with 2 CPU only, - # golangci-lint can be slow in GH Actions - - --timeout=5m - repo: https://github.com/hadolint/hadolint rev: v2.10.0 hooks: From 229e63b962603b5cc66ae3940655f230ffb72b81 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Thu, 15 Sep 2022 16:42:51 -0700 Subject: [PATCH 3/8] Restructure --- .github/workflows/pre-commit.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 20c32712000..07a9a7ff745 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -47,9 +47,6 @@ jobs: with: go-version-file: .go-version - - name: Set GO_VERSION - run: echo "GO_VERSION=$(<.go-version)" >> $GITHUB_ENV - - name: Set golangci-lint cache key parts run: | echo "INTERVAL_KEY=$(( $(date +%s) / (7 * 86400) ))" >> $GITHUB_ENV @@ -73,8 +70,10 @@ jobs: - name: Set up pre-commit run: pipx install "pre-commit==${PRE_COMMIT_VERSION}" - - name: Set PY_HASH - run: echo "PY_HASH=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + - name: Set pre-commit cache key parts + run: | + echo "GO_VERSION=$(<.go-version)" >> $GITHUB_ENV + echo "PY_HASH=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - name: Set up pre-commit cache uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3.0.8 From 9d1b80ba8b06352eb33bfdf2264df28325e4ccf0 Mon Sep 17 00:00:00 2001 From: Manoj Vivek Date: Mon, 26 Sep 2022 15:47:59 +0530 Subject: [PATCH 4/8] Share grpc query exposes profile description and grpc versioning --- Makefile | 1 - gen/proto/go/parca/share/v1alpha1/share.pb.go | 665 +++++++++++++++++ .../share/v1alpha1}/share.pb.gw.go | 112 +-- .../share/v1alpha1}/share_vtproto.pb.go | 702 ++++++++++++++++-- gen/proto/go/share/share.pb.go | 428 ----------- .../debuginfo/v1alpha1/debuginfo.swagger.json | 30 +- .../parca/query/v1alpha1/query.swagger.json | 130 ++-- .../parca/share/v1alpha1/share.swagger.json | 528 +++++++++++++ pkg/parca/parca.go | 4 +- pkg/parca/parca_test.go | 7 +- pkg/query/columnquery.go | 6 +- pkg/query/columnquery_test.go | 7 +- proto/buf.lock | 2 +- proto/parca/share/v1alpha1/share.proto | 80 ++ .../share/v1alpha1}/share.client.ts | 42 +- .../{share => parca/share/v1alpha1}/share.ts | 254 ++++++- 16 files changed, 2308 insertions(+), 690 deletions(-) create mode 100644 gen/proto/go/parca/share/v1alpha1/share.pb.go rename gen/proto/go/{share => parca/share/v1alpha1}/share.pb.gw.go (59%) rename gen/proto/go/{share => parca/share/v1alpha1}/share_vtproto.pb.go (54%) delete mode 100644 gen/proto/go/share/share.pb.go create mode 100644 gen/proto/swagger/parca/share/v1alpha1/share.swagger.json create mode 100644 proto/parca/share/v1alpha1/share.proto rename ui/packages/shared/client/src/{share => parca/share/v1alpha1}/share.client.ts (55%) rename ui/packages/shared/client/src/{share => parca/share/v1alpha1}/share.ts (52%) diff --git a/Makefile b/Makefile index ed0ba724736..16603699c79 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,6 @@ proto/format: proto/generate: proto/vendor # Generate just the annotations and http protos. buf generate buf.build/googleapis/googleapis --path google/api/annotations.proto --path google/api/http.proto - buf generate buf.build/polarsignals/api --path share # docker run --volume ${PWD}:/workspace --workdir /workspace bufbuild/buf generate buf generate diff --git a/gen/proto/go/parca/share/v1alpha1/share.pb.go b/gen/proto/go/parca/share/v1alpha1/share.pb.go new file mode 100644 index 00000000000..a1e2f38cefe --- /dev/null +++ b/gen/proto/go/parca/share/v1alpha1/share.pb.go @@ -0,0 +1,665 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: parca/share/v1alpha1/share.proto + +package sharev1alpha1 + +import ( + v1alpha1 "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// UploadRequest represents the request with profile bytes and description. +type UploadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pprof bytes of the profile to be uploaded. + Profile []byte `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` + // Description of the profile. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *UploadRequest) Reset() { + *x = UploadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadRequest) ProtoMessage() {} + +func (x *UploadRequest) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[0] + 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 UploadRequest.ProtoReflect.Descriptor instead. +func (*UploadRequest) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{0} +} + +func (x *UploadRequest) GetProfile() []byte { + if x != nil { + return x.Profile + } + return nil +} + +func (x *UploadRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// UploadResponse represents the response with the link that can be used to access the profile. +type UploadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id of the uploaded profile. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // link that can be used to access the profile. + Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"` +} + +func (x *UploadResponse) Reset() { + *x = UploadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadResponse) ProtoMessage() {} + +func (x *UploadResponse) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[1] + 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 UploadResponse.ProtoReflect.Descriptor instead. +func (*UploadResponse) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{1} +} + +func (x *UploadResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UploadResponse) GetLink() string { + if x != nil { + return x.Link + } + return "" +} + +// QueryRequest represents the request with the id of the profile to be queried. +type QueryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id of the profile to be queried. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Type of the profile to be queried. + ProfileType *string `protobuf:"bytes,2,opt,name=profile_type,json=profileType,proto3,oneof" json:"profile_type,omitempty"` + // report_type is the type of report to return + ReportType v1alpha1.QueryRequest_ReportType `protobuf:"varint,3,opt,name=report_type,json=reportType,proto3,enum=parca.query.v1alpha1.QueryRequest_ReportType" json:"report_type,omitempty"` +} + +func (x *QueryRequest) Reset() { + *x = QueryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRequest) ProtoMessage() {} + +func (x *QueryRequest) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[2] + 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 QueryRequest.ProtoReflect.Descriptor instead. +func (*QueryRequest) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *QueryRequest) GetProfileType() string { + if x != nil && x.ProfileType != nil { + return *x.ProfileType + } + return "" +} + +func (x *QueryRequest) GetReportType() v1alpha1.QueryRequest_ReportType { + if x != nil { + return x.ReportType + } + return v1alpha1.QueryRequest_ReportType(0) +} + +// ProfileTypesRequest represents the profile types request with the id of the profile to be queried. +type ProfileTypesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id of the profile's types to be queried. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ProfileTypesRequest) Reset() { + *x = ProfileTypesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProfileTypesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProfileTypesRequest) ProtoMessage() {} + +func (x *ProfileTypesRequest) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[3] + 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 ProfileTypesRequest.ProtoReflect.Descriptor instead. +func (*ProfileTypesRequest) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{3} +} + +func (x *ProfileTypesRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +// ProfileTypesResponse represents the response with the list of available profile types. +type ProfileTypesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // list of available profile types. + Types []*v1alpha1.ProfileType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` + // description of the profile uploaded. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ProfileTypesResponse) Reset() { + *x = ProfileTypesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProfileTypesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProfileTypesResponse) ProtoMessage() {} + +func (x *ProfileTypesResponse) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_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 ProfileTypesResponse.ProtoReflect.Descriptor instead. +func (*ProfileTypesResponse) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{4} +} + +func (x *ProfileTypesResponse) GetTypes() []*v1alpha1.ProfileType { + if x != nil { + return x.Types + } + return nil +} + +func (x *ProfileTypesResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// QueryResponse is the returned report for the given query. +type QueryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // report is the generated report + // + // Types that are assignable to Report: + // *QueryResponse_Flamegraph + // *QueryResponse_Pprof + // *QueryResponse_Top + // *QueryResponse_Callgraph + Report isQueryResponse_Report `protobuf_oneof:"report"` +} + +func (x *QueryResponse) Reset() { + *x = QueryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_parca_share_v1alpha1_share_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResponse) ProtoMessage() {} + +func (x *QueryResponse) ProtoReflect() protoreflect.Message { + mi := &file_parca_share_v1alpha1_share_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 QueryResponse.ProtoReflect.Descriptor instead. +func (*QueryResponse) Descriptor() ([]byte, []int) { + return file_parca_share_v1alpha1_share_proto_rawDescGZIP(), []int{5} +} + +func (m *QueryResponse) GetReport() isQueryResponse_Report { + if m != nil { + return m.Report + } + return nil +} + +func (x *QueryResponse) GetFlamegraph() *v1alpha1.Flamegraph { + if x, ok := x.GetReport().(*QueryResponse_Flamegraph); ok { + return x.Flamegraph + } + return nil +} + +func (x *QueryResponse) GetPprof() []byte { + if x, ok := x.GetReport().(*QueryResponse_Pprof); ok { + return x.Pprof + } + return nil +} + +func (x *QueryResponse) GetTop() *v1alpha1.Top { + if x, ok := x.GetReport().(*QueryResponse_Top); ok { + return x.Top + } + return nil +} + +func (x *QueryResponse) GetCallgraph() *v1alpha1.Callgraph { + if x, ok := x.GetReport().(*QueryResponse_Callgraph); ok { + return x.Callgraph + } + return nil +} + +type isQueryResponse_Report interface { + isQueryResponse_Report() +} + +type QueryResponse_Flamegraph struct { + // flamegraph is a flamegraph representation of the report + Flamegraph *v1alpha1.Flamegraph `protobuf:"bytes,5,opt,name=flamegraph,proto3,oneof"` +} + +type QueryResponse_Pprof struct { + // pprof is a pprof profile as compressed bytes + Pprof []byte `protobuf:"bytes,6,opt,name=pprof,proto3,oneof"` +} + +type QueryResponse_Top struct { + // top is a top list representation of the report + Top *v1alpha1.Top `protobuf:"bytes,7,opt,name=top,proto3,oneof"` +} + +type QueryResponse_Callgraph struct { + // callgraph is a callgraph nodes and edges representation of the report + Callgraph *v1alpha1.Callgraph `protobuf:"bytes,8,opt,name=callgraph,proto3,oneof"` +} + +func (*QueryResponse_Flamegraph) isQueryResponse_Report() {} + +func (*QueryResponse_Pprof) isQueryResponse_Report() {} + +func (*QueryResponse_Top) isQueryResponse_Report() {} + +func (*QueryResponse_Callgraph) isQueryResponse_Report() {} + +var File_parca_share_v1alpha1_share_proto protoreflect.FileDescriptor + +var file_parca_share_v1alpha1_share_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x20, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x0d, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x34, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0xa7, 0x01, + 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, + 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4e, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x70, 0x61, + 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x71, + 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xe5, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x66, 0x6c, 0x61, 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, + 0x6c, 0x61, 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x61, + 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x12, 0x16, 0x0a, 0x05, 0x70, 0x70, 0x72, 0x6f, 0x66, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x70, 0x70, 0x72, 0x6f, 0x66, 0x12, + 0x2d, 0x0a, 0x03, 0x74, 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x48, 0x00, 0x52, 0x03, 0x74, 0x6f, 0x70, 0x12, 0x3f, + 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, + 0x70, 0x68, 0x48, 0x00, 0x52, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x42, + 0x08, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x32, 0xa2, 0x02, 0x0a, 0x0c, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x06, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x61, 0x72, 0x63, + 0x61, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x52, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x70, 0x61, 0x72, + 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xe4, + 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2d, 0x64, 0x65, 0x76, 0x2f, + 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x61, + 0x72, 0x63, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xca, 0x02, 0x14, 0x50, 0x61, 0x72, 0x63, 0x61, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x50, 0x61, 0x72, 0x63, + 0x61, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x50, + 0x61, 0x72, 0x63, 0x61, 0x3a, 0x3a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_parca_share_v1alpha1_share_proto_rawDescOnce sync.Once + file_parca_share_v1alpha1_share_proto_rawDescData = file_parca_share_v1alpha1_share_proto_rawDesc +) + +func file_parca_share_v1alpha1_share_proto_rawDescGZIP() []byte { + file_parca_share_v1alpha1_share_proto_rawDescOnce.Do(func() { + file_parca_share_v1alpha1_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_parca_share_v1alpha1_share_proto_rawDescData) + }) + return file_parca_share_v1alpha1_share_proto_rawDescData +} + +var file_parca_share_v1alpha1_share_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_parca_share_v1alpha1_share_proto_goTypes = []interface{}{ + (*UploadRequest)(nil), // 0: parca.share.v1alpha1.UploadRequest + (*UploadResponse)(nil), // 1: parca.share.v1alpha1.UploadResponse + (*QueryRequest)(nil), // 2: parca.share.v1alpha1.QueryRequest + (*ProfileTypesRequest)(nil), // 3: parca.share.v1alpha1.ProfileTypesRequest + (*ProfileTypesResponse)(nil), // 4: parca.share.v1alpha1.ProfileTypesResponse + (*QueryResponse)(nil), // 5: parca.share.v1alpha1.QueryResponse + (v1alpha1.QueryRequest_ReportType)(0), // 6: parca.query.v1alpha1.QueryRequest.ReportType + (*v1alpha1.ProfileType)(nil), // 7: parca.query.v1alpha1.ProfileType + (*v1alpha1.Flamegraph)(nil), // 8: parca.query.v1alpha1.Flamegraph + (*v1alpha1.Top)(nil), // 9: parca.query.v1alpha1.Top + (*v1alpha1.Callgraph)(nil), // 10: parca.query.v1alpha1.Callgraph +} +var file_parca_share_v1alpha1_share_proto_depIdxs = []int32{ + 6, // 0: parca.share.v1alpha1.QueryRequest.report_type:type_name -> parca.query.v1alpha1.QueryRequest.ReportType + 7, // 1: parca.share.v1alpha1.ProfileTypesResponse.types:type_name -> parca.query.v1alpha1.ProfileType + 8, // 2: parca.share.v1alpha1.QueryResponse.flamegraph:type_name -> parca.query.v1alpha1.Flamegraph + 9, // 3: parca.share.v1alpha1.QueryResponse.top:type_name -> parca.query.v1alpha1.Top + 10, // 4: parca.share.v1alpha1.QueryResponse.callgraph:type_name -> parca.query.v1alpha1.Callgraph + 0, // 5: parca.share.v1alpha1.ShareService.Upload:input_type -> parca.share.v1alpha1.UploadRequest + 2, // 6: parca.share.v1alpha1.ShareService.Query:input_type -> parca.share.v1alpha1.QueryRequest + 3, // 7: parca.share.v1alpha1.ShareService.ProfileTypes:input_type -> parca.share.v1alpha1.ProfileTypesRequest + 1, // 8: parca.share.v1alpha1.ShareService.Upload:output_type -> parca.share.v1alpha1.UploadResponse + 5, // 9: parca.share.v1alpha1.ShareService.Query:output_type -> parca.share.v1alpha1.QueryResponse + 4, // 10: parca.share.v1alpha1.ShareService.ProfileTypes:output_type -> parca.share.v1alpha1.ProfileTypesResponse + 8, // [8:11] is the sub-list for method output_type + 5, // [5:8] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_parca_share_v1alpha1_share_proto_init() } +func file_parca_share_v1alpha1_share_proto_init() { + if File_parca_share_v1alpha1_share_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_parca_share_v1alpha1_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProfileTypesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProfileTypesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_parca_share_v1alpha1_share_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_parca_share_v1alpha1_share_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*QueryResponse_Flamegraph)(nil), + (*QueryResponse_Pprof)(nil), + (*QueryResponse_Top)(nil), + (*QueryResponse_Callgraph)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_parca_share_v1alpha1_share_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_parca_share_v1alpha1_share_proto_goTypes, + DependencyIndexes: file_parca_share_v1alpha1_share_proto_depIdxs, + MessageInfos: file_parca_share_v1alpha1_share_proto_msgTypes, + }.Build() + File_parca_share_v1alpha1_share_proto = out.File + file_parca_share_v1alpha1_share_proto_rawDesc = nil + file_parca_share_v1alpha1_share_proto_goTypes = nil + file_parca_share_v1alpha1_share_proto_depIdxs = nil +} diff --git a/gen/proto/go/share/share.pb.gw.go b/gen/proto/go/parca/share/v1alpha1/share.pb.gw.go similarity index 59% rename from gen/proto/go/share/share.pb.gw.go rename to gen/proto/go/parca/share/v1alpha1/share.pb.gw.go index c23a0d0d5f1..da656318266 100644 --- a/gen/proto/go/share/share.pb.gw.go +++ b/gen/proto/go/parca/share/v1alpha1/share.pb.gw.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: share/share.proto +// source: parca/share/v1alpha1/share.proto /* -Package share is a reverse proxy. +Package sharev1alpha1 is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package share +package sharev1alpha1 import ( "context" @@ -31,7 +31,7 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join -func request_Share_Upload_0(ctx context.Context, marshaler runtime.Marshaler, client ShareClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func request_ShareService_Upload_0(ctx context.Context, marshaler runtime.Marshaler, client ShareServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UploadRequest var metadata runtime.ServerMetadata @@ -48,7 +48,7 @@ func request_Share_Upload_0(ctx context.Context, marshaler runtime.Marshaler, cl } -func local_request_Share_Upload_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func local_request_ShareService_Upload_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UploadRequest var metadata runtime.ServerMetadata @@ -65,8 +65,8 @@ func local_request_Share_Upload_0(ctx context.Context, marshaler runtime.Marshal } -func request_Share_Query_0(ctx context.Context, marshaler runtime.Marshaler, client ShareClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProfileRequest +func request_ShareService_Query_0(ctx context.Context, marshaler runtime.Marshaler, client ShareServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -82,8 +82,8 @@ func request_Share_Query_0(ctx context.Context, marshaler runtime.Marshaler, cli } -func local_request_Share_Query_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProfileRequest +func local_request_ShareService_Query_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -99,7 +99,7 @@ func local_request_Share_Query_0(ctx context.Context, marshaler runtime.Marshale } -func request_Share_ProfileTypes_0(ctx context.Context, marshaler runtime.Marshaler, client ShareClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func request_ShareService_ProfileTypes_0(ctx context.Context, marshaler runtime.Marshaler, client ShareServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProfileTypesRequest var metadata runtime.ServerMetadata @@ -116,7 +116,7 @@ func request_Share_ProfileTypes_0(ctx context.Context, marshaler runtime.Marshal } -func local_request_Share_ProfileTypes_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func local_request_ShareService_ProfileTypes_0(ctx context.Context, marshaler runtime.Marshaler, server ShareServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ProfileTypesRequest var metadata runtime.ServerMetadata @@ -133,13 +133,13 @@ func local_request_Share_ProfileTypes_0(ctx context.Context, marshaler runtime.M } -// RegisterShareHandlerServer registers the http handlers for service Share to "mux". -// UnaryRPC :call ShareServer directly. +// RegisterShareServiceHandlerServer registers the http handlers for service ShareService to "mux". +// UnaryRPC :call ShareServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterShareHandlerFromEndpoint instead. -func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShareServer) error { +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterShareServiceHandlerFromEndpoint instead. +func RegisterShareServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShareServiceServer) error { - mux.Handle("POST", pattern_Share_Upload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_Upload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -147,12 +147,12 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/polarsignals.share.Share/Upload", runtime.WithHTTPPathPattern("/polarsignals.share.Share/Upload")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/Upload", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/Upload")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Share_Upload_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ShareService_Upload_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -160,11 +160,11 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Share_Upload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_Upload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Share_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -172,12 +172,12 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/polarsignals.share.Share/Query", runtime.WithHTTPPathPattern("/polarsignals.share.Share/Query")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/Query", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/Query")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Share_Query_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ShareService_Query_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -185,11 +185,11 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Share_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Share_ProfileTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_ProfileTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -197,12 +197,12 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/polarsignals.share.Share/ProfileTypes", runtime.WithHTTPPathPattern("/polarsignals.share.Share/ProfileTypes")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/ProfileTypes", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/ProfileTypes")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Share_ProfileTypes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ShareService_ProfileTypes_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -210,16 +210,16 @@ func RegisterShareHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Share_ProfileTypes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_ProfileTypes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } -// RegisterShareHandlerFromEndpoint is same as RegisterShareHandler but +// RegisterShareServiceHandlerFromEndpoint is same as RegisterShareServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterShareHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { +func RegisterShareServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return err @@ -239,85 +239,85 @@ func RegisterShareHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux }() }() - return RegisterShareHandler(ctx, mux, conn) + return RegisterShareServiceHandler(ctx, mux, conn) } -// RegisterShareHandler registers the http handlers for service Share to "mux". +// RegisterShareServiceHandler registers the http handlers for service ShareService to "mux". // The handlers forward requests to the grpc endpoint over "conn". -func RegisterShareHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterShareHandlerClient(ctx, mux, NewShareClient(conn)) +func RegisterShareServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterShareServiceHandlerClient(ctx, mux, NewShareServiceClient(conn)) } -// RegisterShareHandlerClient registers the http handlers for service Share -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ShareClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ShareClient" +// RegisterShareServiceHandlerClient registers the http handlers for service ShareService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ShareServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ShareServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ShareClient" to call the correct interceptors. -func RegisterShareHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShareClient) error { +// "ShareServiceClient" to call the correct interceptors. +func RegisterShareServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShareServiceClient) error { - mux.Handle("POST", pattern_Share_Upload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_Upload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/polarsignals.share.Share/Upload", runtime.WithHTTPPathPattern("/polarsignals.share.Share/Upload")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/Upload", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/Upload")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Share_Upload_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_ShareService_Upload_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Share_Upload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_Upload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Share_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/polarsignals.share.Share/Query", runtime.WithHTTPPathPattern("/polarsignals.share.Share/Query")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/Query", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/Query")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Share_Query_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_ShareService_Query_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Share_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Share_ProfileTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_ShareService_ProfileTypes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/polarsignals.share.Share/ProfileTypes", runtime.WithHTTPPathPattern("/polarsignals.share.Share/ProfileTypes")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/parca.share.v1alpha1.ShareService/ProfileTypes", runtime.WithHTTPPathPattern("/parca.share.v1alpha1.ShareService/ProfileTypes")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Share_ProfileTypes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_ShareService_ProfileTypes_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Share_ProfileTypes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ShareService_ProfileTypes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -325,17 +325,17 @@ func RegisterShareHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Share_Upload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"polarsignals.share.Share", "Upload"}, "")) + pattern_ShareService_Upload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"parca.share.v1alpha1.ShareService", "Upload"}, "")) - pattern_Share_Query_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"polarsignals.share.Share", "Query"}, "")) + pattern_ShareService_Query_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"parca.share.v1alpha1.ShareService", "Query"}, "")) - pattern_Share_ProfileTypes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"polarsignals.share.Share", "ProfileTypes"}, "")) + pattern_ShareService_ProfileTypes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"parca.share.v1alpha1.ShareService", "ProfileTypes"}, "")) ) var ( - forward_Share_Upload_0 = runtime.ForwardResponseMessage + forward_ShareService_Upload_0 = runtime.ForwardResponseMessage - forward_Share_Query_0 = runtime.ForwardResponseMessage + forward_ShareService_Query_0 = runtime.ForwardResponseMessage - forward_Share_ProfileTypes_0 = runtime.ForwardResponseMessage + forward_ShareService_ProfileTypes_0 = runtime.ForwardResponseMessage ) diff --git a/gen/proto/go/share/share_vtproto.pb.go b/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go similarity index 54% rename from gen/proto/go/share/share_vtproto.pb.go rename to gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go index 725ab9e58f4..a127878d9ab 100644 --- a/gen/proto/go/share/share_vtproto.pb.go +++ b/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.3.0 -// source: share/share.proto +// source: parca/share/v1alpha1/share.proto -package share +package sharev1alpha1 import ( context "context" @@ -28,168 +28,168 @@ const ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -// ShareClient is the client API for Share service. +// ShareServiceClient is the client API for ShareService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ShareClient interface { +type ShareServiceClient interface { // Uploads the profile and returns the link that can be used to access it. Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadResponse, error) // Query performs a profile query - Query(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*v1alpha1.QueryResponse, error) + Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) // ProfileTypes returns the list of available profile types. - ProfileTypes(ctx context.Context, in *ProfileTypesRequest, opts ...grpc.CallOption) (*v1alpha1.ProfileTypesResponse, error) + ProfileTypes(ctx context.Context, in *ProfileTypesRequest, opts ...grpc.CallOption) (*ProfileTypesResponse, error) } -type shareClient struct { +type shareServiceClient struct { cc grpc.ClientConnInterface } -func NewShareClient(cc grpc.ClientConnInterface) ShareClient { - return &shareClient{cc} +func NewShareServiceClient(cc grpc.ClientConnInterface) ShareServiceClient { + return &shareServiceClient{cc} } -func (c *shareClient) Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadResponse, error) { +func (c *shareServiceClient) Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadResponse, error) { out := new(UploadResponse) - err := c.cc.Invoke(ctx, "/polarsignals.share.Share/Upload", in, out, opts...) + err := c.cc.Invoke(ctx, "/parca.share.v1alpha1.ShareService/Upload", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *shareClient) Query(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*v1alpha1.QueryResponse, error) { - out := new(v1alpha1.QueryResponse) - err := c.cc.Invoke(ctx, "/polarsignals.share.Share/Query", in, out, opts...) +func (c *shareServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) { + out := new(QueryResponse) + err := c.cc.Invoke(ctx, "/parca.share.v1alpha1.ShareService/Query", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *shareClient) ProfileTypes(ctx context.Context, in *ProfileTypesRequest, opts ...grpc.CallOption) (*v1alpha1.ProfileTypesResponse, error) { - out := new(v1alpha1.ProfileTypesResponse) - err := c.cc.Invoke(ctx, "/polarsignals.share.Share/ProfileTypes", in, out, opts...) +func (c *shareServiceClient) ProfileTypes(ctx context.Context, in *ProfileTypesRequest, opts ...grpc.CallOption) (*ProfileTypesResponse, error) { + out := new(ProfileTypesResponse) + err := c.cc.Invoke(ctx, "/parca.share.v1alpha1.ShareService/ProfileTypes", in, out, opts...) if err != nil { return nil, err } return out, nil } -// ShareServer is the server API for Share service. -// All implementations must embed UnimplementedShareServer +// ShareServiceServer is the server API for ShareService service. +// All implementations must embed UnimplementedShareServiceServer // for forward compatibility -type ShareServer interface { +type ShareServiceServer interface { // Uploads the profile and returns the link that can be used to access it. Upload(context.Context, *UploadRequest) (*UploadResponse, error) // Query performs a profile query - Query(context.Context, *ProfileRequest) (*v1alpha1.QueryResponse, error) + Query(context.Context, *QueryRequest) (*QueryResponse, error) // ProfileTypes returns the list of available profile types. - ProfileTypes(context.Context, *ProfileTypesRequest) (*v1alpha1.ProfileTypesResponse, error) - mustEmbedUnimplementedShareServer() + ProfileTypes(context.Context, *ProfileTypesRequest) (*ProfileTypesResponse, error) + mustEmbedUnimplementedShareServiceServer() } -// UnimplementedShareServer must be embedded to have forward compatible implementations. -type UnimplementedShareServer struct { +// UnimplementedShareServiceServer must be embedded to have forward compatible implementations. +type UnimplementedShareServiceServer struct { } -func (UnimplementedShareServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error) { +func (UnimplementedShareServiceServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Upload not implemented") } -func (UnimplementedShareServer) Query(context.Context, *ProfileRequest) (*v1alpha1.QueryResponse, error) { +func (UnimplementedShareServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") } -func (UnimplementedShareServer) ProfileTypes(context.Context, *ProfileTypesRequest) (*v1alpha1.ProfileTypesResponse, error) { +func (UnimplementedShareServiceServer) ProfileTypes(context.Context, *ProfileTypesRequest) (*ProfileTypesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ProfileTypes not implemented") } -func (UnimplementedShareServer) mustEmbedUnimplementedShareServer() {} +func (UnimplementedShareServiceServer) mustEmbedUnimplementedShareServiceServer() {} -// UnsafeShareServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ShareServer will +// UnsafeShareServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ShareServiceServer will // result in compilation errors. -type UnsafeShareServer interface { - mustEmbedUnimplementedShareServer() +type UnsafeShareServiceServer interface { + mustEmbedUnimplementedShareServiceServer() } -func RegisterShareServer(s grpc.ServiceRegistrar, srv ShareServer) { - s.RegisterService(&Share_ServiceDesc, srv) +func RegisterShareServiceServer(s grpc.ServiceRegistrar, srv ShareServiceServer) { + s.RegisterService(&ShareService_ServiceDesc, srv) } -func _Share_Upload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ShareService_Upload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UploadRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ShareServer).Upload(ctx, in) + return srv.(ShareServiceServer).Upload(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/polarsignals.share.Share/Upload", + FullMethod: "/parca.share.v1alpha1.ShareService/Upload", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ShareServer).Upload(ctx, req.(*UploadRequest)) + return srv.(ShareServiceServer).Upload(ctx, req.(*UploadRequest)) } return interceptor(ctx, in, info, handler) } -func _Share_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProfileRequest) +func _ShareService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ShareServer).Query(ctx, in) + return srv.(ShareServiceServer).Query(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/polarsignals.share.Share/Query", + FullMethod: "/parca.share.v1alpha1.ShareService/Query", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ShareServer).Query(ctx, req.(*ProfileRequest)) + return srv.(ShareServiceServer).Query(ctx, req.(*QueryRequest)) } return interceptor(ctx, in, info, handler) } -func _Share_ProfileTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ShareService_ProfileTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ProfileTypesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ShareServer).ProfileTypes(ctx, in) + return srv.(ShareServiceServer).ProfileTypes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/polarsignals.share.Share/ProfileTypes", + FullMethod: "/parca.share.v1alpha1.ShareService/ProfileTypes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ShareServer).ProfileTypes(ctx, req.(*ProfileTypesRequest)) + return srv.(ShareServiceServer).ProfileTypes(ctx, req.(*ProfileTypesRequest)) } return interceptor(ctx, in, info, handler) } -// Share_ServiceDesc is the grpc.ServiceDesc for Share service. +// ShareService_ServiceDesc is the grpc.ServiceDesc for ShareService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var Share_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "polarsignals.share.Share", - HandlerType: (*ShareServer)(nil), +var ShareService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "parca.share.v1alpha1.ShareService", + HandlerType: (*ShareServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Upload", - Handler: _Share_Upload_Handler, + Handler: _ShareService_Upload_Handler, }, { MethodName: "Query", - Handler: _Share_Query_Handler, + Handler: _ShareService_Query_Handler, }, { MethodName: "ProfileTypes", - Handler: _Share_ProfileTypes_Handler, + Handler: _ShareService_ProfileTypes_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "share/share.proto", + Metadata: "parca/share/v1alpha1/share.proto", } func (m *UploadRequest) MarshalVT() (dAtA []byte, err error) { @@ -286,7 +286,7 @@ func (m *UploadResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ProfileRequest) MarshalVT() (dAtA []byte, err error) { +func (m *QueryRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -299,12 +299,12 @@ func (m *ProfileRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ProfileRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *QueryRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *ProfileRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *QueryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -378,6 +378,174 @@ func (m *ProfileTypesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ProfileTypesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProfileTypesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProfileTypesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Types) > 0 { + for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Types[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *QueryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Report.(interface { + MarshalToVT([]byte) (int, error) + SizeVT() int + }); ok { + { + size := vtmsg.SizeVT() + i -= size + if _, err := vtmsg.MarshalToVT(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *QueryResponse_Flamegraph) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *QueryResponse_Flamegraph) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Flamegraph != nil { + size, err := m.Flamegraph.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *QueryResponse_Pprof) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *QueryResponse_Pprof) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Pprof) + copy(dAtA[i:], m.Pprof) + i = encodeVarint(dAtA, i, uint64(len(m.Pprof))) + i-- + dAtA[i] = 0x32 + return len(dAtA) - i, nil +} +func (m *QueryResponse_Top) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *QueryResponse_Top) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Top != nil { + size, err := m.Top.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *QueryResponse_Callgraph) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *QueryResponse_Callgraph) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Callgraph != nil { + size, err := m.Callgraph.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + return len(dAtA) - i, nil +} func encodeVarint(dAtA []byte, offset int, v uint64) int { offset -= sov(v) base := offset @@ -429,7 +597,7 @@ func (m *UploadResponse) SizeVT() (n int) { return n } -func (m *ProfileRequest) SizeVT() (n int) { +func (m *QueryRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -468,6 +636,90 @@ func (m *ProfileTypesRequest) SizeVT() (n int) { return n } +func (m *ProfileTypesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Types) > 0 { + for _, e := range m.Types { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *QueryResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if vtmsg, ok := m.Report.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *QueryResponse_Flamegraph) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Flamegraph != nil { + l = m.Flamegraph.SizeVT() + n += 1 + l + sov(uint64(l)) + } + return n +} +func (m *QueryResponse_Pprof) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Pprof) + n += 1 + l + sov(uint64(l)) + return n +} +func (m *QueryResponse_Top) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Top != nil { + l = m.Top.SizeVT() + n += 1 + l + sov(uint64(l)) + } + return n +} +func (m *QueryResponse_Callgraph) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Callgraph != nil { + l = m.Callgraph.SizeVT() + n += 1 + l + sov(uint64(l)) + } + return n +} + func sov(x uint64) (n int) { return (bits.Len64(x|1) + 6) / 7 } @@ -706,7 +958,7 @@ func (m *UploadResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ProfileRequest) UnmarshalVT(dAtA []byte) error { +func (m *QueryRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -729,10 +981,10 @@ func (m *ProfileRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProfileRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProfileRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -924,6 +1176,330 @@ func (m *ProfileTypesRequest) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *ProfileTypesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProfileTypesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProfileTypesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Types = append(m.Types, &v1alpha1.ProfileType{}) + if err := m.Types[len(m.Types)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flamegraph", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Report.(*QueryResponse_Flamegraph); ok { + if err := oneof.Flamegraph.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &v1alpha1.Flamegraph{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Report = &QueryResponse_Flamegraph{v} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pprof", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := make([]byte, postIndex-iNdEx) + copy(v, dAtA[iNdEx:postIndex]) + m.Report = &QueryResponse_Pprof{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Top", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Report.(*QueryResponse_Top); ok { + if err := oneof.Top.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &v1alpha1.Top{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Report = &QueryResponse_Top{v} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Callgraph", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Report.(*QueryResponse_Callgraph); ok { + if err := oneof.Callgraph.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &v1alpha1.Callgraph{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Report = &QueryResponse_Callgraph{v} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skip(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/gen/proto/go/share/share.pb.go b/gen/proto/go/share/share.pb.go deleted file mode 100644 index f38bd2502c8..00000000000 --- a/gen/proto/go/share/share.pb.go +++ /dev/null @@ -1,428 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc (unknown) -// source: share/share.proto - -package share - -import ( - v1alpha1 "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// UploadRequest represents the request with profile bytes and description. -type UploadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // pprof bytes of the profile to be uploaded. - Profile []byte `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` - // Description of the profile. - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *UploadRequest) Reset() { - *x = UploadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_share_share_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadRequest) ProtoMessage() {} - -func (x *UploadRequest) ProtoReflect() protoreflect.Message { - mi := &file_share_share_proto_msgTypes[0] - 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 UploadRequest.ProtoReflect.Descriptor instead. -func (*UploadRequest) Descriptor() ([]byte, []int) { - return file_share_share_proto_rawDescGZIP(), []int{0} -} - -func (x *UploadRequest) GetProfile() []byte { - if x != nil { - return x.Profile - } - return nil -} - -func (x *UploadRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -// UploadResponse represents the response with the link that can be used to access the profile. -type UploadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of the uploaded profile. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // link that can be used to access the profile. - Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"` -} - -func (x *UploadResponse) Reset() { - *x = UploadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_share_share_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UploadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UploadResponse) ProtoMessage() {} - -func (x *UploadResponse) ProtoReflect() protoreflect.Message { - mi := &file_share_share_proto_msgTypes[1] - 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 UploadResponse.ProtoReflect.Descriptor instead. -func (*UploadResponse) Descriptor() ([]byte, []int) { - return file_share_share_proto_rawDescGZIP(), []int{1} -} - -func (x *UploadResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UploadResponse) GetLink() string { - if x != nil { - return x.Link - } - return "" -} - -// ProfileRequest represents the request with the id of the profile to be queried. -type ProfileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of the profile to be queried. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Type of the profile to be queried. - ProfileType *string `protobuf:"bytes,2,opt,name=profile_type,json=profileType,proto3,oneof" json:"profile_type,omitempty"` - // report_type is the type of report to return - ReportType v1alpha1.QueryRequest_ReportType `protobuf:"varint,3,opt,name=report_type,json=reportType,proto3,enum=parca.query.v1alpha1.QueryRequest_ReportType" json:"report_type,omitempty"` -} - -func (x *ProfileRequest) Reset() { - *x = ProfileRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_share_share_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileRequest) ProtoMessage() {} - -func (x *ProfileRequest) ProtoReflect() protoreflect.Message { - mi := &file_share_share_proto_msgTypes[2] - 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 ProfileRequest.ProtoReflect.Descriptor instead. -func (*ProfileRequest) Descriptor() ([]byte, []int) { - return file_share_share_proto_rawDescGZIP(), []int{2} -} - -func (x *ProfileRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ProfileRequest) GetProfileType() string { - if x != nil && x.ProfileType != nil { - return *x.ProfileType - } - return "" -} - -func (x *ProfileRequest) GetReportType() v1alpha1.QueryRequest_ReportType { - if x != nil { - return x.ReportType - } - return v1alpha1.QueryRequest_ReportType(0) -} - -// ProfileTypesRequest represents the profile types request with the id of the profile to be queried. -type ProfileTypesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id of the profile's types to be queried. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ProfileTypesRequest) Reset() { - *x = ProfileTypesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_share_share_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileTypesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileTypesRequest) ProtoMessage() {} - -func (x *ProfileTypesRequest) ProtoReflect() protoreflect.Message { - mi := &file_share_share_proto_msgTypes[3] - 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 ProfileTypesRequest.ProtoReflect.Descriptor instead. -func (*ProfileTypesRequest) Descriptor() ([]byte, []int) { - return file_share_share_proto_rawDescGZIP(), []int{3} -} - -func (x *ProfileTypesRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_share_share_proto protoreflect.FileDescriptor - -var file_share_share_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x73, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x20, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x0d, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x34, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0xa9, 0x01, 0x0a, - 0x0e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x26, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4e, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x70, - 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x32, - 0x95, 0x02, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x6c, 0x73, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x55, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x61, 0x72, 0x63, - 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x65, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x63, - 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xbc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, - 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x0a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, - 0x63, 0x61, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, - 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6c, - 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x65, 0xe2, - 0x02, 0x1e, 0x50, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x5c, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6c, 0x61, 0x72, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x3a, - 0x3a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_share_share_proto_rawDescOnce sync.Once - file_share_share_proto_rawDescData = file_share_share_proto_rawDesc -) - -func file_share_share_proto_rawDescGZIP() []byte { - file_share_share_proto_rawDescOnce.Do(func() { - file_share_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_share_share_proto_rawDescData) - }) - return file_share_share_proto_rawDescData -} - -var file_share_share_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_share_share_proto_goTypes = []interface{}{ - (*UploadRequest)(nil), // 0: polarsignals.share.UploadRequest - (*UploadResponse)(nil), // 1: polarsignals.share.UploadResponse - (*ProfileRequest)(nil), // 2: polarsignals.share.ProfileRequest - (*ProfileTypesRequest)(nil), // 3: polarsignals.share.ProfileTypesRequest - (v1alpha1.QueryRequest_ReportType)(0), // 4: parca.query.v1alpha1.QueryRequest.ReportType - (*v1alpha1.QueryResponse)(nil), // 5: parca.query.v1alpha1.QueryResponse - (*v1alpha1.ProfileTypesResponse)(nil), // 6: parca.query.v1alpha1.ProfileTypesResponse -} -var file_share_share_proto_depIdxs = []int32{ - 4, // 0: polarsignals.share.ProfileRequest.report_type:type_name -> parca.query.v1alpha1.QueryRequest.ReportType - 0, // 1: polarsignals.share.Share.Upload:input_type -> polarsignals.share.UploadRequest - 2, // 2: polarsignals.share.Share.Query:input_type -> polarsignals.share.ProfileRequest - 3, // 3: polarsignals.share.Share.ProfileTypes:input_type -> polarsignals.share.ProfileTypesRequest - 1, // 4: polarsignals.share.Share.Upload:output_type -> polarsignals.share.UploadResponse - 5, // 5: polarsignals.share.Share.Query:output_type -> parca.query.v1alpha1.QueryResponse - 6, // 6: polarsignals.share.Share.ProfileTypes:output_type -> parca.query.v1alpha1.ProfileTypesResponse - 4, // [4:7] is the sub-list for method output_type - 1, // [1:4] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_share_share_proto_init() } -func file_share_share_proto_init() { - if File_share_share_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_share_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_share_share_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_share_share_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_share_share_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileTypesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_share_share_proto_msgTypes[2].OneofWrappers = []interface{}{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_share_share_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_share_share_proto_goTypes, - DependencyIndexes: file_share_share_proto_depIdxs, - MessageInfos: file_share_share_proto_msgTypes, - }.Build() - File_share_share_proto = out.File - file_share_share_proto_rawDesc = nil - file_share_share_proto_goTypes = nil - file_share_share_proto_depIdxs = nil -} diff --git a/gen/proto/swagger/parca/debuginfo/v1alpha1/debuginfo.swagger.json b/gen/proto/swagger/parca/debuginfo/v1alpha1/debuginfo.swagger.json index 2036b105a83..34ce482af64 100644 --- a/gen/proto/swagger/parca/debuginfo/v1alpha1/debuginfo.swagger.json +++ b/gen/proto/swagger/parca/debuginfo/v1alpha1/debuginfo.swagger.json @@ -27,6 +27,21 @@ "default": "SOURCE_UNKNOWN_UNSPECIFIED", "description": "Source enum describes the source a debuginfo is from.\n\n - SOURCE_UNKNOWN_UNSPECIFIED: To understand when no source is set we have the unknown source.\n - SOURCE_UPLOAD: The debuginfo was uploaded by a user/agent.\n - SOURCE_DEBUGINFOD: The debuginfo was downloaded from a public debuginfod server." }, + "parcadebuginfov1alpha1UploadResponse": { + "type": "object", + "properties": { + "buildId": { + "type": "string", + "title": "build_id is a unique identifier for the debug data" + }, + "size": { + "type": "string", + "format": "uint64", + "title": "size is the number of bytes of the debug info" + } + }, + "title": "UploadResponse returns the build_id and the size of the uploaded debug info" + }, "protobufAny": { "type": "object", "properties": { @@ -102,21 +117,6 @@ } }, "title": "UploadInfo contains the build_id and other metadata for the debug data" - }, - "v1alpha1UploadResponse": { - "type": "object", - "properties": { - "buildId": { - "type": "string", - "title": "build_id is a unique identifier for the debug data" - }, - "size": { - "type": "string", - "format": "uint64", - "title": "size is the number of bytes of the debug info" - } - }, - "title": "UploadResponse returns the build_id and the size of the uploaded debug info" } } } diff --git a/gen/proto/swagger/parca/query/v1alpha1/query.swagger.json b/gen/proto/swagger/parca/query/v1alpha1/query.swagger.json index 7783099f2a8..b253498d133 100644 --- a/gen/proto/swagger/parca/query/v1alpha1/query.swagger.json +++ b/gen/proto/swagger/parca/query/v1alpha1/query.swagger.json @@ -135,7 +135,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1alpha1QueryResponse" + "$ref": "#/definitions/parcaqueryv1alpha1QueryResponse" } }, "default": { @@ -466,7 +466,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1alpha1ProfileTypesResponse" + "$ref": "#/definitions/parcaqueryv1alpha1ProfileTypesResponse" } }, "default": { @@ -616,6 +616,68 @@ }, "description": "Mapping describes a memory mapping." }, + "parcaqueryv1alpha1ProfileTypesResponse": { + "type": "object", + "properties": { + "types": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1ProfileType" + }, + "description": "types is the list of available profile types." + } + }, + "description": "ProfileTypesResponse is the response to retrieve the list of available profile types." + }, + "parcaqueryv1alpha1QueryRequest": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/definitions/v1alpha1QueryRequestMode", + "title": "mode indicates the type of query performed" + }, + "diff": { + "$ref": "#/definitions/v1alpha1DiffProfile", + "title": "diff contains the diff query options" + }, + "merge": { + "$ref": "#/definitions/v1alpha1MergeProfile", + "title": "merge contains the merge query options" + }, + "single": { + "$ref": "#/definitions/v1alpha1SingleProfile", + "title": "single contains the single query options" + }, + "reportType": { + "$ref": "#/definitions/QueryRequestReportType", + "title": "report_type is the type of report to return" + } + }, + "title": "QueryRequest is a request for a profile query" + }, + "parcaqueryv1alpha1QueryResponse": { + "type": "object", + "properties": { + "flamegraph": { + "$ref": "#/definitions/v1alpha1Flamegraph", + "title": "flamegraph is a flamegraph representation of the report" + }, + "pprof": { + "type": "string", + "format": "byte", + "title": "pprof is a pprof profile as compressed bytes" + }, + "top": { + "$ref": "#/definitions/v1alpha1Top", + "title": "top is a top list representation of the report" + }, + "callgraph": { + "$ref": "#/definitions/v1alpha1Callgraph", + "title": "callgraph is a callgraph nodes and edges representation of the report" + } + }, + "title": "QueryResponse is the returned report for the given query" + }, "profilestorev1alpha1Label": { "type": "object", "properties": { @@ -1026,19 +1088,6 @@ }, "description": "ProfileType is the type of a profile as well as the units the profile type is available in." }, - "v1alpha1ProfileTypesResponse": { - "type": "object", - "properties": { - "types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1ProfileType" - }, - "description": "types is the list of available profile types." - } - }, - "description": "ProfileTypesResponse is the response to retrieve the list of available profile types." - }, "v1alpha1QueryRangeResponse": { "type": "object", "properties": { @@ -1052,32 +1101,6 @@ }, "title": "QueryRangeResponse is the set of matching profile values" }, - "v1alpha1QueryRequest": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/definitions/v1alpha1QueryRequestMode", - "title": "mode indicates the type of query performed" - }, - "diff": { - "$ref": "#/definitions/v1alpha1DiffProfile", - "title": "diff contains the diff query options" - }, - "merge": { - "$ref": "#/definitions/v1alpha1MergeProfile", - "title": "merge contains the merge query options" - }, - "single": { - "$ref": "#/definitions/v1alpha1SingleProfile", - "title": "single contains the single query options" - }, - "reportType": { - "$ref": "#/definitions/QueryRequestReportType", - "title": "report_type is the type of report to return" - } - }, - "title": "QueryRequest is a request for a profile query" - }, "v1alpha1QueryRequestMode": { "type": "string", "enum": [ @@ -1089,29 +1112,6 @@ "description": "- MODE_SINGLE_UNSPECIFIED: MODE_SINGLE_UNSPECIFIED query unspecified\n - MODE_DIFF: MODE_DIFF is a diff query\n - MODE_MERGE: MODE_MERGE is a merge query", "title": "Mode is the type of query request" }, - "v1alpha1QueryResponse": { - "type": "object", - "properties": { - "flamegraph": { - "$ref": "#/definitions/v1alpha1Flamegraph", - "title": "flamegraph is a flamegraph representation of the report" - }, - "pprof": { - "type": "string", - "format": "byte", - "title": "pprof is a pprof profile as compressed bytes" - }, - "top": { - "$ref": "#/definitions/v1alpha1Top", - "title": "top is a top list representation of the report" - }, - "callgraph": { - "$ref": "#/definitions/v1alpha1Callgraph", - "title": "callgraph is a callgraph nodes and edges representation of the report" - } - }, - "title": "QueryResponse is the returned report for the given query" - }, "v1alpha1SeriesResponse": { "type": "object", "title": "SeriesResponse is unimplemented" @@ -1120,7 +1120,7 @@ "type": "object", "properties": { "queryRequest": { - "$ref": "#/definitions/v1alpha1QueryRequest", + "$ref": "#/definitions/parcaqueryv1alpha1QueryRequest", "title": "QueryRequest that refers to the profile to be shared" }, "description": { diff --git a/gen/proto/swagger/parca/share/v1alpha1/share.swagger.json b/gen/proto/swagger/parca/share/v1alpha1/share.swagger.json new file mode 100644 index 00000000000..530a9bdfe06 --- /dev/null +++ b/gen/proto/swagger/parca/share/v1alpha1/share.swagger.json @@ -0,0 +1,528 @@ +{ + "swagger": "2.0", + "info": { + "title": "parca/share/v1alpha1/share.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "ShareService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "QueryRequestReportType": { + "type": "string", + "enum": [ + "REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED", + "REPORT_TYPE_PPROF", + "REPORT_TYPE_TOP", + "REPORT_TYPE_CALLGRAPH" + ], + "default": "REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED", + "description": "- REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED: REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED unspecified\n - REPORT_TYPE_PPROF: REPORT_TYPE_PPROF unspecified\n - REPORT_TYPE_TOP: REPORT_TYPE_TOP unspecified\n - REPORT_TYPE_CALLGRAPH: REPORT_TYPE_CALLGRAPH unspecified", + "title": "ReportType is the type of report to return" + }, + "metastorev1alpha1Function": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id is the unique identifier for the function." + }, + "startLine": { + "type": "string", + "format": "int64", + "description": "start_line is the line number in the source file of the first line of the function." + }, + "name": { + "type": "string", + "description": "name is the name of the function." + }, + "systemName": { + "type": "string", + "description": "system_name describes the name of the function, as identified by the\nsystem. For instance, it can be a C++ mangled name." + }, + "filename": { + "type": "string", + "description": "filename is the name of the source file of the function." + } + }, + "description": "Function describes metadata of a source code function." + }, + "metastorev1alpha1Line": { + "type": "object", + "properties": { + "functionId": { + "type": "string", + "description": "function_id is the ID of the function." + }, + "line": { + "type": "string", + "format": "int64", + "description": "line is the line number in the source file of the referenced function." + } + }, + "description": "Line describes a source code function and its line number." + }, + "metastorev1alpha1Location": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id is the unique identifier for the location." + }, + "address": { + "type": "string", + "format": "uint64", + "description": "address is the memory address of the location if present." + }, + "mappingId": { + "type": "string", + "description": "mapping_id is the unique identifier for the mapping associated with the location." + }, + "isFolded": { + "type": "boolean", + "description": "is_folded indicates whether the location is folded into the previous location." + }, + "lines": { + "type": "array", + "items": { + "$ref": "#/definitions/metastorev1alpha1Line" + }, + "description": "lines are the call frames represented by this location. Multiple lines\nindicate they have been inlined." + } + }, + "description": "Location describes a single location of a stack traces." + }, + "metastorev1alpha1Mapping": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id is the unique identifier for the mapping." + }, + "start": { + "type": "string", + "format": "uint64", + "description": "start is the start address of the mapping." + }, + "limit": { + "type": "string", + "format": "uint64", + "description": "limit is the length of the address space of the mapping." + }, + "offset": { + "type": "string", + "format": "uint64", + "description": "offset in the binary that corresponds to the first mapped address." + }, + "file": { + "type": "string", + "description": "file is the name of the file associated with the mapping." + }, + "buildId": { + "type": "string", + "description": "build_id is the build ID of the mapping." + }, + "hasFunctions": { + "type": "boolean", + "description": "has_functions indicates whether the mapping has associated functions." + }, + "hasFilenames": { + "type": "boolean", + "description": "has_filenames indicates whether the mapping has associated filenames." + }, + "hasLineNumbers": { + "type": "boolean", + "description": "has_line_numbers indicates whether the mapping has associated line numbers." + }, + "hasInlineFrames": { + "type": "boolean", + "description": "has_inline_frames indicates whether the mapping has associated inline frames." + } + }, + "description": "Mapping describes a memory mapping." + }, + "parcasharev1alpha1ProfileTypesResponse": { + "type": "object", + "properties": { + "types": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1ProfileType" + }, + "description": "list of available profile types." + }, + "description": { + "type": "string", + "description": "description of the profile uploaded." + } + }, + "description": "ProfileTypesResponse represents the response with the list of available profile types." + }, + "parcasharev1alpha1QueryResponse": { + "type": "object", + "properties": { + "flamegraph": { + "$ref": "#/definitions/v1alpha1Flamegraph", + "title": "flamegraph is a flamegraph representation of the report" + }, + "pprof": { + "type": "string", + "format": "byte", + "title": "pprof is a pprof profile as compressed bytes" + }, + "top": { + "$ref": "#/definitions/v1alpha1Top", + "title": "top is a top list representation of the report" + }, + "callgraph": { + "$ref": "#/definitions/v1alpha1Callgraph", + "title": "callgraph is a callgraph nodes and edges representation of the report" + } + }, + "description": "QueryResponse is the returned report for the given query." + }, + "parcasharev1alpha1UploadResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id of the uploaded profile." + }, + "link": { + "type": "string", + "description": "link that can be used to access the profile." + } + }, + "description": "UploadResponse represents the response with the link that can be used to access the profile." + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "v1alpha1Callgraph": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1CallgraphNode" + }, + "title": "nodes are the nodes in the callgraph" + }, + "edges": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1CallgraphEdge" + }, + "title": "edges are the edges connecting nodes in the callgraph" + }, + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the total cumulative value of the callgraph" + } + }, + "title": "Callgraph is the callgraph report type" + }, + "v1alpha1CallgraphEdge": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "id is the unique id of the edge" + }, + "source": { + "type": "string", + "title": "source represents the id of the source node" + }, + "target": { + "type": "string", + "title": "target represents the id of the target node" + }, + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the cumulative value of the edge" + }, + "isCollapsed": { + "type": "boolean", + "title": "is_collapsed indicates if the edge is collapsed" + } + }, + "title": "CallgraphEdge represents an edge in the graph" + }, + "v1alpha1CallgraphNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "id is the unique id of the node" + }, + "meta": { + "$ref": "#/definitions/v1alpha1CallgraphNodeMeta", + "title": "meta is the metadata about the node" + }, + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the cumulative value of the node" + } + }, + "title": "CallgraphNode represents a node in the graph" + }, + "v1alpha1CallgraphNodeMeta": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/metastorev1alpha1Location", + "title": "location is the location for the code" + }, + "mapping": { + "$ref": "#/definitions/metastorev1alpha1Mapping", + "title": "mapping is the mapping into code" + }, + "function": { + "$ref": "#/definitions/metastorev1alpha1Function", + "title": "function is the function information" + }, + "line": { + "$ref": "#/definitions/metastorev1alpha1Line", + "title": "line is the line location" + } + }, + "title": "TopNodeMeta is the metadata for a given node" + }, + "v1alpha1Flamegraph": { + "type": "object", + "properties": { + "root": { + "$ref": "#/definitions/v1alpha1FlamegraphRootNode", + "title": "root is the root of the flame graph" + }, + "total": { + "type": "string", + "format": "int64", + "title": "total is the total weight of the flame graph" + }, + "unit": { + "type": "string", + "title": "unit is the unit represented by the flame graph" + }, + "height": { + "type": "integer", + "format": "int32", + "title": "height is the max height of the graph" + } + }, + "title": "Flamegraph is the flame graph report type" + }, + "v1alpha1FlamegraphNode": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/definitions/v1alpha1FlamegraphNodeMeta", + "title": "meta is the metadata about the node" + }, + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the cumulative value of the node" + }, + "diff": { + "type": "string", + "format": "int64", + "title": "diff is the diff" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1FlamegraphNode" + }, + "title": "children are the child nodes" + } + }, + "title": "FlamegraphNode represents a node in the graph" + }, + "v1alpha1FlamegraphNodeMeta": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/metastorev1alpha1Location", + "title": "location is the location for the code" + }, + "mapping": { + "$ref": "#/definitions/metastorev1alpha1Mapping", + "title": "mapping is the mapping into code" + }, + "function": { + "$ref": "#/definitions/metastorev1alpha1Function", + "title": "function is the function information" + }, + "line": { + "$ref": "#/definitions/metastorev1alpha1Line", + "title": "line is the line location" + } + }, + "title": "FlamegraphNodeMeta is the metadata for a given node" + }, + "v1alpha1FlamegraphRootNode": { + "type": "object", + "properties": { + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the cumulative value of the graph" + }, + "diff": { + "type": "string", + "format": "int64", + "title": "diff is the diff" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1FlamegraphNode" + }, + "title": "children are the list of the children of the root node" + } + }, + "title": "FlamegraphRootNode is a root node of a flame graph" + }, + "v1alpha1ProfileType": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "name is the name of the profile type." + }, + "sampleType": { + "type": "string", + "description": "sample_type is the type of the samples in the profile." + }, + "sampleUnit": { + "type": "string", + "description": "sample_unit is the unit of the samples in the profile." + }, + "periodType": { + "type": "string", + "description": "period_type is the type of the periods in the profile." + }, + "periodUnit": { + "type": "string", + "description": "period_unit is the unit of the periods in the profile." + }, + "delta": { + "type": "boolean", + "description": "delta describes whether the profile is a delta profile." + } + }, + "description": "ProfileType is the type of a profile as well as the units the profile type is available in." + }, + "v1alpha1Top": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1TopNode" + }, + "title": "list are the list of ordered elements of the table" + }, + "reported": { + "type": "integer", + "format": "int32", + "title": "reported is the number of lines reported" + }, + "total": { + "type": "integer", + "format": "int32", + "title": "total is the number of lines that exist in the report" + }, + "unit": { + "type": "string", + "title": "unit is the unit represented by top table" + } + }, + "title": "Top is the top report type" + }, + "v1alpha1TopNode": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/definitions/v1alpha1TopNodeMeta", + "title": "meta is the metadata about the node" + }, + "cumulative": { + "type": "string", + "format": "int64", + "title": "cumulative is the cumulative value of the node" + }, + "flat": { + "type": "string", + "format": "int64", + "title": "flat is the flat value of the node" + }, + "diff": { + "type": "string", + "format": "int64", + "title": "diff is the diff value between two profiles" + } + }, + "title": "TopNode is a node entry in a top list" + }, + "v1alpha1TopNodeMeta": { + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/metastorev1alpha1Location", + "title": "location is the location for the code" + }, + "mapping": { + "$ref": "#/definitions/metastorev1alpha1Mapping", + "title": "mapping is the mapping into code" + }, + "function": { + "$ref": "#/definitions/metastorev1alpha1Function", + "title": "function is the function information" + }, + "line": { + "$ref": "#/definitions/metastorev1alpha1Line", + "title": "line is the line location" + } + }, + "title": "TopNodeMeta is the metadata for a given node" + } + } +} diff --git a/pkg/parca/parca.go b/pkg/parca/parca.go index 7753e1d288b..1f9a662409a 100644 --- a/pkg/parca/parca.go +++ b/pkg/parca/parca.go @@ -56,7 +56,7 @@ import ( profilestorepb "github.com/parca-dev/parca/gen/proto/go/parca/profilestore/v1alpha1" querypb "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" scrapepb "github.com/parca-dev/parca/gen/proto/go/parca/scrape/v1alpha1" - sharepb "github.com/parca-dev/parca/gen/proto/go/share" + sharepb "github.com/parca-dev/parca/gen/proto/go/parca/share/v1alpha1" "github.com/parca-dev/parca/pkg/config" "github.com/parca-dev/parca/pkg/debuginfo" "github.com/parca-dev/parca/pkg/metastore" @@ -255,7 +255,7 @@ func Run(ctx context.Context, logger log.Logger, reg *prometheus.Registry, flags q := queryservice.NewColumnQueryAPI( logger, tracerProvider.Tracer("query-service"), - sharepb.NewShareClient(conn), + sharepb.NewShareServiceClient(conn), parcacol.NewQuerier( tracerProvider.Tracer("querier"), query.NewEngine( diff --git a/pkg/parca/parca_test.go b/pkg/parca/parca_test.go index 671794d4fae..9d2f9ee07ea 100644 --- a/pkg/parca/parca_test.go +++ b/pkg/parca/parca_test.go @@ -47,18 +47,17 @@ import ( pprofpb "github.com/parca-dev/parca/gen/proto/go/google/pprof" pb "github.com/parca-dev/parca/gen/proto/go/parca/profilestore/v1alpha1" querypb "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" - "github.com/parca-dev/parca/gen/proto/go/share" - sharepb "github.com/parca-dev/parca/gen/proto/go/share" + sharepb "github.com/parca-dev/parca/gen/proto/go/parca/share/v1alpha1" "github.com/parca-dev/parca/pkg/metastore" "github.com/parca-dev/parca/pkg/metastoretest" "github.com/parca-dev/parca/pkg/parcacol" queryservice "github.com/parca-dev/parca/pkg/query" ) -func getShareServerConn(t Testing) share.ShareClient { +func getShareServerConn(t Testing) sharepb.ShareServiceClient { conn, err := grpc.Dial("api.pprof.me:443", grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{}))) require.NoError(t, err) - return sharepb.NewShareClient(conn) + return sharepb.NewShareServiceClient(conn) } func benchmarkSetup(ctx context.Context, b *testing.B) (pb.ProfileStoreServiceClient, <-chan struct{}) { diff --git a/pkg/query/columnquery.go b/pkg/query/columnquery.go index c5596add36a..732e4600544 100644 --- a/pkg/query/columnquery.go +++ b/pkg/query/columnquery.go @@ -26,7 +26,7 @@ import ( "google.golang.org/grpc/status" pb "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" - sharepb "github.com/parca-dev/parca/gen/proto/go/share" + sharepb "github.com/parca-dev/parca/gen/proto/go/parca/share/v1alpha1" "github.com/parca-dev/parca/pkg/profile" ) @@ -46,14 +46,14 @@ type ColumnQueryAPI struct { logger log.Logger tracer trace.Tracer - shareClient sharepb.ShareClient + shareClient sharepb.ShareServiceClient querier Querier } func NewColumnQueryAPI( logger log.Logger, tracer trace.Tracer, - shareClient sharepb.ShareClient, + shareClient sharepb.ShareServiceClient, querier Querier, ) *ColumnQueryAPI { return &ColumnQueryAPI{ diff --git a/pkg/query/columnquery_test.go b/pkg/query/columnquery_test.go index 4f3bd1d0d78..cb511a9846e 100644 --- a/pkg/query/columnquery_test.go +++ b/pkg/query/columnquery_test.go @@ -42,18 +42,17 @@ import ( pprofpb "github.com/parca-dev/parca/gen/proto/go/google/pprof" metastorepb "github.com/parca-dev/parca/gen/proto/go/parca/metastore/v1alpha1" pb "github.com/parca-dev/parca/gen/proto/go/parca/query/v1alpha1" - "github.com/parca-dev/parca/gen/proto/go/share" - sharepb "github.com/parca-dev/parca/gen/proto/go/share" + sharepb "github.com/parca-dev/parca/gen/proto/go/parca/share/v1alpha1" "github.com/parca-dev/parca/pkg/metastore" "github.com/parca-dev/parca/pkg/metastoretest" "github.com/parca-dev/parca/pkg/parcacol" "github.com/parca-dev/parca/pkg/profile" ) -func getShareServerConn(t Testing) share.ShareClient { +func getShareServerConn(t Testing) sharepb.ShareServiceClient { conn, err := grpc.Dial("api.pprof.me:443", grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{}))) require.NoError(t, err) - return sharepb.NewShareClient(conn) + return sharepb.NewShareServiceClient(conn) } func TestColumnQueryAPIQueryRangeEmpty(t *testing.T) { diff --git a/proto/buf.lock b/proto/buf.lock index f2c6b32b763..2465567c883 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -4,7 +4,7 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 8d7204855ec14631a499bd7393ce1970 + commit: e9fcfb66f77242e5b8fd4564d7a01033 - remote: buf.build owner: grpc-ecosystem repository: grpc-gateway diff --git a/proto/parca/share/v1alpha1/share.proto b/proto/parca/share/v1alpha1/share.proto new file mode 100644 index 00000000000..f57130de3db --- /dev/null +++ b/proto/parca/share/v1alpha1/share.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package parca.share.v1alpha1; + +import "parca/query/v1alpha1/query.proto"; + +// Service that exposes APIs for sharing profiles. +service ShareService { + // Uploads the profile and returns the link that can be used to access it. + rpc Upload(UploadRequest) returns (UploadResponse) {} + + // Query performs a profile query + rpc Query(QueryRequest) returns (QueryResponse) {} + + // ProfileTypes returns the list of available profile types. + rpc ProfileTypes(ProfileTypesRequest) returns (ProfileTypesResponse) {} +} + +// UploadRequest represents the request with profile bytes and description. +message UploadRequest { + // pprof bytes of the profile to be uploaded. + bytes profile = 1; + + // Description of the profile. + string description = 2; +} + +// UploadResponse represents the response with the link that can be used to access the profile. +message UploadResponse { + // id of the uploaded profile. + string id = 1; + + // link that can be used to access the profile. + string link = 2; +} + +// QueryRequest represents the request with the id of the profile to be queried. +message QueryRequest { + // id of the profile to be queried. + string id = 1; + + // Type of the profile to be queried. + optional string profile_type = 2; + + // report_type is the type of report to return + parca.query.v1alpha1.QueryRequest.ReportType report_type = 3; +} + +// ProfileTypesRequest represents the profile types request with the id of the profile to be queried. +message ProfileTypesRequest { + // id of the profile's types to be queried. + string id = 1; +} + +// ProfileTypesResponse represents the response with the list of available profile types. +message ProfileTypesResponse { + // list of available profile types. + repeated parca.query.v1alpha1.ProfileType types = 1; + + // description of the profile uploaded. + string description = 2; +} + +// QueryResponse is the returned report for the given query. +message QueryResponse { + // report is the generated report + oneof report { + // flamegraph is a flamegraph representation of the report + parca.query.v1alpha1.Flamegraph flamegraph = 5; + + // pprof is a pprof profile as compressed bytes + bytes pprof = 6; + + // top is a top list representation of the report + parca.query.v1alpha1.Top top = 7; + + // callgraph is a callgraph nodes and edges representation of the report + parca.query.v1alpha1.Callgraph callgraph = 8; + } +} diff --git a/ui/packages/shared/client/src/share/share.client.ts b/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts similarity index 55% rename from ui/packages/shared/client/src/share/share.client.ts rename to ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts index 19ccd6e1d57..7dd15124b07 100644 --- a/ui/packages/shared/client/src/share/share.client.ts +++ b/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts @@ -1,13 +1,13 @@ // @generated by protobuf-ts 2.8.0 with parameter long_type_string,generate_dependencies -// @generated from protobuf file "share/share.proto" (package "polarsignals.share", syntax proto3) +// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; -import { Share } from "./share"; -import type { ProfileTypesResponse } from "../parca/query/v1alpha1/query"; +import { ShareService } from "./share"; +import type { ProfileTypesResponse } from "./share"; import type { ProfileTypesRequest } from "./share"; -import type { QueryResponse } from "../parca/query/v1alpha1/query"; -import type { ProfileRequest } from "./share"; +import type { QueryResponse } from "./share"; +import type { QueryRequest } from "./share"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { UploadResponse } from "./share"; import type { UploadRequest } from "./share"; @@ -16,43 +16,43 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * Service that exposes APIs for sharing profiles. * - * @generated from protobuf service polarsignals.share.Share + * @generated from protobuf service parca.share.v1alpha1.ShareService */ -export interface IShareClient { +export interface IShareServiceClient { /** * Uploads the profile and returns the link that can be used to access it. * - * @generated from protobuf rpc: Upload(polarsignals.share.UploadRequest) returns (polarsignals.share.UploadResponse); + * @generated from protobuf rpc: Upload(parca.share.v1alpha1.UploadRequest) returns (parca.share.v1alpha1.UploadResponse); */ upload(input: UploadRequest, options?: RpcOptions): UnaryCall; /** * Query performs a profile query * - * @generated from protobuf rpc: Query(polarsignals.share.ProfileRequest) returns (parca.query.v1alpha1.QueryResponse); + * @generated from protobuf rpc: Query(parca.share.v1alpha1.QueryRequest) returns (parca.share.v1alpha1.QueryResponse); */ - query(input: ProfileRequest, options?: RpcOptions): UnaryCall; + query(input: QueryRequest, options?: RpcOptions): UnaryCall; /** * ProfileTypes returns the list of available profile types. * - * @generated from protobuf rpc: ProfileTypes(polarsignals.share.ProfileTypesRequest) returns (parca.query.v1alpha1.ProfileTypesResponse); + * @generated from protobuf rpc: ProfileTypes(parca.share.v1alpha1.ProfileTypesRequest) returns (parca.share.v1alpha1.ProfileTypesResponse); */ profileTypes(input: ProfileTypesRequest, options?: RpcOptions): UnaryCall; } /** * Service that exposes APIs for sharing profiles. * - * @generated from protobuf service polarsignals.share.Share + * @generated from protobuf service parca.share.v1alpha1.ShareService */ -export class ShareClient implements IShareClient, ServiceInfo { - typeName = Share.typeName; - methods = Share.methods; - options = Share.options; +export class ShareServiceClient implements IShareServiceClient, ServiceInfo { + typeName = ShareService.typeName; + methods = ShareService.methods; + options = ShareService.options; constructor(private readonly _transport: RpcTransport) { } /** * Uploads the profile and returns the link that can be used to access it. * - * @generated from protobuf rpc: Upload(polarsignals.share.UploadRequest) returns (polarsignals.share.UploadResponse); + * @generated from protobuf rpc: Upload(parca.share.v1alpha1.UploadRequest) returns (parca.share.v1alpha1.UploadResponse); */ upload(input: UploadRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); @@ -61,16 +61,16 @@ export class ShareClient implements IShareClient, ServiceInfo { /** * Query performs a profile query * - * @generated from protobuf rpc: Query(polarsignals.share.ProfileRequest) returns (parca.query.v1alpha1.QueryResponse); + * @generated from protobuf rpc: Query(parca.share.v1alpha1.QueryRequest) returns (parca.share.v1alpha1.QueryResponse); */ - query(input: ProfileRequest, options?: RpcOptions): UnaryCall { + query(input: QueryRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); + return stackIntercept("unary", this._transport, method, opt, input); } /** * ProfileTypes returns the list of available profile types. * - * @generated from protobuf rpc: ProfileTypes(polarsignals.share.ProfileTypesRequest) returns (parca.query.v1alpha1.ProfileTypesResponse); + * @generated from protobuf rpc: ProfileTypes(parca.share.v1alpha1.ProfileTypesRequest) returns (parca.share.v1alpha1.ProfileTypesResponse); */ profileTypes(input: ProfileTypesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); diff --git a/ui/packages/shared/client/src/share/share.ts b/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts similarity index 52% rename from ui/packages/shared/client/src/share/share.ts rename to ui/packages/shared/client/src/parca/share/v1alpha1/share.ts index 4a6343e7e7e..41ff7212084 100644 --- a/ui/packages/shared/client/src/share/share.ts +++ b/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts @@ -1,8 +1,6 @@ // @generated by protobuf-ts 2.8.0 with parameter long_type_string,generate_dependencies -// @generated from protobuf file "share/share.proto" (package "polarsignals.share", syntax proto3) +// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) // tslint:disable -import { ProfileTypesResponse } from "../parca/query/v1alpha1/query"; -import { QueryResponse } from "../parca/query/v1alpha1/query"; import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; @@ -14,11 +12,15 @@ import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MESSAGE_TYPE } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; -import { QueryRequest_ReportType } from "../parca/query/v1alpha1/query"; +import { Callgraph } from "../../query/v1alpha1/query"; +import { Top } from "../../query/v1alpha1/query"; +import { Flamegraph } from "../../query/v1alpha1/query"; +import { ProfileType } from "../../query/v1alpha1/query"; +import { QueryRequest_ReportType } from "../../query/v1alpha1/query"; /** * UploadRequest represents the request with profile bytes and description. * - * @generated from protobuf message polarsignals.share.UploadRequest + * @generated from protobuf message parca.share.v1alpha1.UploadRequest */ export interface UploadRequest { /** @@ -37,7 +39,7 @@ export interface UploadRequest { /** * UploadResponse represents the response with the link that can be used to access the profile. * - * @generated from protobuf message polarsignals.share.UploadResponse + * @generated from protobuf message parca.share.v1alpha1.UploadResponse */ export interface UploadResponse { /** @@ -54,11 +56,11 @@ export interface UploadResponse { link: string; } /** - * ProfileRequest represents the request with the id of the profile to be queried. + * QueryRequest represents the request with the id of the profile to be queried. * - * @generated from protobuf message polarsignals.share.ProfileRequest + * @generated from protobuf message parca.share.v1alpha1.QueryRequest */ -export interface ProfileRequest { +export interface QueryRequest { /** * id of the profile to be queried. * @@ -81,7 +83,7 @@ export interface ProfileRequest { /** * ProfileTypesRequest represents the profile types request with the id of the profile to be queried. * - * @generated from protobuf message polarsignals.share.ProfileTypesRequest + * @generated from protobuf message parca.share.v1alpha1.ProfileTypesRequest */ export interface ProfileTypesRequest { /** @@ -91,10 +93,74 @@ export interface ProfileTypesRequest { */ id: string; } +/** + * ProfileTypesResponse represents the response with the list of available profile types. + * + * @generated from protobuf message parca.share.v1alpha1.ProfileTypesResponse + */ +export interface ProfileTypesResponse { + /** + * list of available profile types. + * + * @generated from protobuf field: repeated parca.query.v1alpha1.ProfileType types = 1; + */ + types: ProfileType[]; + /** + * description of the profile uploaded. + * + * @generated from protobuf field: string description = 2; + */ + description: string; +} +/** + * QueryResponse is the returned report for the given query. + * + * @generated from protobuf message parca.share.v1alpha1.QueryResponse + */ +export interface QueryResponse { + /** + * @generated from protobuf oneof: report + */ + report: { + oneofKind: "flamegraph"; + /** + * flamegraph is a flamegraph representation of the report + * + * @generated from protobuf field: parca.query.v1alpha1.Flamegraph flamegraph = 5; + */ + flamegraph: Flamegraph; + } | { + oneofKind: "pprof"; + /** + * pprof is a pprof profile as compressed bytes + * + * @generated from protobuf field: bytes pprof = 6; + */ + pprof: Uint8Array; + } | { + oneofKind: "top"; + /** + * top is a top list representation of the report + * + * @generated from protobuf field: parca.query.v1alpha1.Top top = 7; + */ + top: Top; + } | { + oneofKind: "callgraph"; + /** + * callgraph is a callgraph nodes and edges representation of the report + * + * @generated from protobuf field: parca.query.v1alpha1.Callgraph callgraph = 8; + */ + callgraph: Callgraph; + } | { + oneofKind: undefined; + }; +} // @generated message type with reflection information, may provide speed optimized methods class UploadRequest$Type extends MessageType { constructor() { - super("polarsignals.share.UploadRequest", [ + super("parca.share.v1alpha1.UploadRequest", [ { no: 1, name: "profile", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }, { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); @@ -142,13 +208,13 @@ class UploadRequest$Type extends MessageType { } } /** - * @generated MessageType for protobuf message polarsignals.share.UploadRequest + * @generated MessageType for protobuf message parca.share.v1alpha1.UploadRequest */ export const UploadRequest = new UploadRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class UploadResponse$Type extends MessageType { constructor() { - super("polarsignals.share.UploadResponse", [ + super("parca.share.v1alpha1.UploadResponse", [ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "link", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); @@ -196,26 +262,26 @@ class UploadResponse$Type extends MessageType { } } /** - * @generated MessageType for protobuf message polarsignals.share.UploadResponse + * @generated MessageType for protobuf message parca.share.v1alpha1.UploadResponse */ export const UploadResponse = new UploadResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods -class ProfileRequest$Type extends MessageType { +class QueryRequest$Type extends MessageType { constructor() { - super("polarsignals.share.ProfileRequest", [ + super("parca.share.v1alpha1.QueryRequest", [ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "profile_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "report_type", kind: "enum", T: () => ["parca.query.v1alpha1.QueryRequest.ReportType", QueryRequest_ReportType, "REPORT_TYPE_"] } ]); } - create(value?: PartialMessage): ProfileRequest { + create(value?: PartialMessage): QueryRequest { const message = { id: "", reportType: 0 }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) - reflectionMergePartial(this, message, value); + reflectionMergePartial(this, message, value); return message; } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileRequest): ProfileRequest { + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryRequest): QueryRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); @@ -240,7 +306,7 @@ class ProfileRequest$Type extends MessageType { } return message; } - internalBinaryWrite(message: ProfileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + internalBinaryWrite(message: QueryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string id = 1; */ if (message.id !== "") writer.tag(1, WireType.LengthDelimited).string(message.id); @@ -257,13 +323,13 @@ class ProfileRequest$Type extends MessageType { } } /** - * @generated MessageType for protobuf message polarsignals.share.ProfileRequest + * @generated MessageType for protobuf message parca.share.v1alpha1.QueryRequest */ -export const ProfileRequest = new ProfileRequest$Type(); +export const QueryRequest = new QueryRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ProfileTypesRequest$Type extends MessageType { constructor() { - super("polarsignals.share.ProfileTypesRequest", [ + super("parca.share.v1alpha1.ProfileTypesRequest", [ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); } @@ -304,14 +370,148 @@ class ProfileTypesRequest$Type extends MessageType { } } /** - * @generated MessageType for protobuf message polarsignals.share.ProfileTypesRequest + * @generated MessageType for protobuf message parca.share.v1alpha1.ProfileTypesRequest */ export const ProfileTypesRequest = new ProfileTypesRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ProfileTypesResponse$Type extends MessageType { + constructor() { + super("parca.share.v1alpha1.ProfileTypesResponse", [ + { no: 1, name: "types", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ProfileType }, + { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): ProfileTypesResponse { + const message = { types: [], description: "" }; + globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileTypesResponse): ProfileTypesResponse { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* repeated parca.query.v1alpha1.ProfileType types */ 1: + message.types.push(ProfileType.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* string description */ 2: + message.description = reader.string(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ProfileTypesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* repeated parca.query.v1alpha1.ProfileType types = 1; */ + for (let i = 0; i < message.types.length; i++) + ProfileType.internalBinaryWrite(message.types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* string description = 2; */ + if (message.description !== "") + writer.tag(2, WireType.LengthDelimited).string(message.description); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message parca.share.v1alpha1.ProfileTypesResponse + */ +export const ProfileTypesResponse = new ProfileTypesResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class QueryResponse$Type extends MessageType { + constructor() { + super("parca.share.v1alpha1.QueryResponse", [ + { no: 5, name: "flamegraph", kind: "message", oneof: "report", T: () => Flamegraph }, + { no: 6, name: "pprof", kind: "scalar", oneof: "report", T: 12 /*ScalarType.BYTES*/ }, + { no: 7, name: "top", kind: "message", oneof: "report", T: () => Top }, + { no: 8, name: "callgraph", kind: "message", oneof: "report", T: () => Callgraph } + ]); + } + create(value?: PartialMessage): QueryResponse { + const message = { report: { oneofKind: undefined } }; + globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryResponse): QueryResponse { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* parca.query.v1alpha1.Flamegraph flamegraph */ 5: + message.report = { + oneofKind: "flamegraph", + flamegraph: Flamegraph.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).flamegraph) + }; + break; + case /* bytes pprof */ 6: + message.report = { + oneofKind: "pprof", + pprof: reader.bytes() + }; + break; + case /* parca.query.v1alpha1.Top top */ 7: + message.report = { + oneofKind: "top", + top: Top.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).top) + }; + break; + case /* parca.query.v1alpha1.Callgraph callgraph */ 8: + message.report = { + oneofKind: "callgraph", + callgraph: Callgraph.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).callgraph) + }; + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: QueryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* parca.query.v1alpha1.Flamegraph flamegraph = 5; */ + if (message.report.oneofKind === "flamegraph") + Flamegraph.internalBinaryWrite(message.report.flamegraph, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + /* bytes pprof = 6; */ + if (message.report.oneofKind === "pprof") + writer.tag(6, WireType.LengthDelimited).bytes(message.report.pprof); + /* parca.query.v1alpha1.Top top = 7; */ + if (message.report.oneofKind === "top") + Top.internalBinaryWrite(message.report.top, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); + /* parca.query.v1alpha1.Callgraph callgraph = 8; */ + if (message.report.oneofKind === "callgraph") + Callgraph.internalBinaryWrite(message.report.callgraph, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message parca.share.v1alpha1.QueryResponse + */ +export const QueryResponse = new QueryResponse$Type(); /** - * @generated ServiceType for protobuf service polarsignals.share.Share + * @generated ServiceType for protobuf service parca.share.v1alpha1.ShareService */ -export const Share = new ServiceType("polarsignals.share.Share", [ +export const ShareService = new ServiceType("parca.share.v1alpha1.ShareService", [ { name: "Upload", options: {}, I: UploadRequest, O: UploadResponse }, - { name: "Query", options: {}, I: ProfileRequest, O: QueryResponse }, + { name: "Query", options: {}, I: QueryRequest, O: QueryResponse }, { name: "ProfileTypes", options: {}, I: ProfileTypesRequest, O: ProfileTypesResponse } ]); From f85751297ce39119498d11a14408ebd13e115c96 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 22:21:23 +0000 Subject: [PATCH 5/8] chore(deps): update node.js to 061d1a1 --- Dockerfile.dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index cdf2c8dc0b8..89cc18d96c3 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM docker.io/node:16.17.1-alpine@sha256:09e34d52d6529475745215cfa67a6fa5f6f1cb9a5145f5ca34cea9e11827f4f9 AS ui-deps +FROM docker.io/node:16.17.1-alpine@sha256:061d1a13f7107cef701517b906aaeb24e094ff701002e82ff17cabdcfe2e6450 AS ui-deps WORKDIR /app @@ -7,7 +7,7 @@ COPY ui/packages/app/web/package.json ./packages/app/web/package.json COPY ui/package.json ui/yarn.lock ./ RUN yarn workspace @parca/web install --frozen-lockfile -FROM docker.io/node:16.17.1-alpine@sha256:09e34d52d6529475745215cfa67a6fa5f6f1cb9a5145f5ca34cea9e11827f4f9 AS ui-builder +FROM docker.io/node:16.17.1-alpine@sha256:061d1a13f7107cef701517b906aaeb24e094ff701002e82ff17cabdcfe2e6450 AS ui-builder WORKDIR /app From 4d8f8d39065d888f8faf329c8a97caa50abd4850 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 02:21:47 +0000 Subject: [PATCH 6/8] chore(deps): update nextjs monorepo to v12.3.1 --- ui/package.json | 6 +++--- ui/yarn.lock | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ui/package.json b/ui/package.json index 4d59ceb1dbb..925548d16b7 100644 --- a/ui/package.json +++ b/ui/package.json @@ -25,9 +25,9 @@ }, "devDependencies": { "@mdx-js/loader": "2.1.3", - "@next/bundle-analyzer": "12.3.0", - "@next/eslint-plugin-next": "12.3.0", - "@next/mdx": "12.3.0", + "@next/bundle-analyzer": "12.3.1", + "@next/eslint-plugin-next": "12.3.1", + "@next/mdx": "12.3.1", "@storybook/addon-actions": "6.5.12", "@storybook/addon-docs": "6.5.12", "@storybook/addon-essentials": "6.5.12", diff --git a/ui/yarn.lock b/ui/yarn.lock index 55c18481dd3..4979b33687d 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -2665,24 +2665,24 @@ call-me-maybe "^1.0.1" glob-to-regexp "^0.3.0" -"@next/bundle-analyzer@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/bundle-analyzer/-/bundle-analyzer-12.3.0.tgz#0a4ef7462c5d18fecc119bf681fdc1dc394318ed" - integrity sha512-hzRLHIrtwOiGEku9rmG7qZk+OQhnqQOL+ycl2XrjBaztBN/xaqnjoG4+HEf9L7ELN943BR+K/ZlaF2OEgbGm+Q== +"@next/bundle-analyzer@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@next/bundle-analyzer/-/bundle-analyzer-12.3.1.tgz#df168652c43ed0dc3e91a5108e34cdcc8fc7f05a" + integrity sha512-2f/eei0YqZZBMTs4g1+HbgHyAFH5MbI/w9wLXmE8ly9SFze2D40sRH46JcC//EFVM/TIynVBh5sxn9CVO/vtxg== dependencies: webpack-bundle-analyzer "4.3.0" -"@next/eslint-plugin-next@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.3.0.tgz#302c1f03618d5001ce92ea6826c329268759128e" - integrity sha512-jVdq1qYTNDjUtulnE8/hkPv0pHILV4jMg5La99iaY/FFm20WxVnsAZtbNnMvlPbf8dc010oO304SX9yXbg5PAw== +"@next/eslint-plugin-next@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.3.1.tgz#b821f27b0f175954d8d18e5d323fce040ecc79a6" + integrity sha512-sw+lTf6r6P0j+g/n9y4qdWWI2syPqZx+uc0+B/fRENqfR3KpSid6MIKqc9gNwGhJASazEQ5b3w8h4cAET213jw== dependencies: glob "7.1.7" -"@next/mdx@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/mdx/-/mdx-12.3.0.tgz#ba6a1d27f0ef9b46b00e09ca0b514787abdf5b81" - integrity sha512-XyzLhgsKa4lKb3dw8HFtj4MM0jilDStKtosFrkt8AX44zEwxPoJPaIvMCWNsRwq72YTzQLqh1gjepIe9zCKZwQ== +"@next/mdx@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@next/mdx/-/mdx-12.3.1.tgz#7951f27e3fb178319adfcb68b8e6365dbae5c36e" + integrity sha512-b7G3CsAwyD/8Eo6uDjCCqNwEi68LTyo/JYPC0N2Yu3yl/iveMDCi03ME+9JsnFPr3DcjmGSKc1ioiYM4dJUkTg== "@nodelib/fs.scandir@2.1.5": version "2.1.5" From bc30b42176539fbcba6914c39dd9a93df1a7e212 Mon Sep 17 00:00:00 2001 From: Manoj Vivek Date: Tue, 27 Sep 2022 09:44:03 +0530 Subject: [PATCH 7/8] Fixed the field numbers --- gen/proto/go/parca/share/v1alpha1/share.pb.go | 16 +++---- .../parca/share/v1alpha1/share_vtproto.pb.go | 16 +++---- proto/parca/share/v1alpha1/share.proto | 8 ++-- .../src/parca/share/v1alpha1/share.client.ts | 2 +- .../client/src/parca/share/v1alpha1/share.ts | 42 +++++++++---------- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/gen/proto/go/parca/share/v1alpha1/share.pb.go b/gen/proto/go/parca/share/v1alpha1/share.pb.go index a1e2f38cefe..03379c2ce30 100644 --- a/gen/proto/go/parca/share/v1alpha1/share.pb.go +++ b/gen/proto/go/parca/share/v1alpha1/share.pb.go @@ -400,22 +400,22 @@ type isQueryResponse_Report interface { type QueryResponse_Flamegraph struct { // flamegraph is a flamegraph representation of the report - Flamegraph *v1alpha1.Flamegraph `protobuf:"bytes,5,opt,name=flamegraph,proto3,oneof"` + Flamegraph *v1alpha1.Flamegraph `protobuf:"bytes,1,opt,name=flamegraph,proto3,oneof"` } type QueryResponse_Pprof struct { // pprof is a pprof profile as compressed bytes - Pprof []byte `protobuf:"bytes,6,opt,name=pprof,proto3,oneof"` + Pprof []byte `protobuf:"bytes,2,opt,name=pprof,proto3,oneof"` } type QueryResponse_Top struct { // top is a top list representation of the report - Top *v1alpha1.Top `protobuf:"bytes,7,opt,name=top,proto3,oneof"` + Top *v1alpha1.Top `protobuf:"bytes,3,opt,name=top,proto3,oneof"` } type QueryResponse_Callgraph struct { // callgraph is a callgraph nodes and edges representation of the report - Callgraph *v1alpha1.Callgraph `protobuf:"bytes,8,opt,name=callgraph,proto3,oneof"` + Callgraph *v1alpha1.Callgraph `protobuf:"bytes,4,opt,name=callgraph,proto3,oneof"` } func (*QueryResponse_Flamegraph) isQueryResponse_Report() {} @@ -465,15 +465,15 @@ var file_parca_share_v1alpha1_share_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe5, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x66, 0x6c, 0x61, 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, - 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x61, 0x6d, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x12, 0x16, 0x0a, 0x05, 0x70, 0x70, 0x72, 0x6f, 0x66, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x70, 0x70, 0x72, 0x6f, 0x66, 0x12, - 0x2d, 0x0a, 0x03, 0x74, 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x70, 0x70, 0x72, 0x6f, 0x66, 0x12, + 0x2d, 0x0a, 0x03, 0x74, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x48, 0x00, 0x52, 0x03, 0x74, 0x6f, 0x70, 0x12, 0x3f, - 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x61, 0x72, 0x63, 0x61, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x48, 0x00, 0x52, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x67, 0x72, 0x61, 0x70, 0x68, 0x42, diff --git a/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go b/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go index a127878d9ab..8edfe6bf2f2 100644 --- a/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go +++ b/gen/proto/go/parca/share/v1alpha1/share_vtproto.pb.go @@ -490,7 +490,7 @@ func (m *QueryResponse_Flamegraph) MarshalToSizedBufferVT(dAtA []byte) (int, err i -= size i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -505,7 +505,7 @@ func (m *QueryResponse_Pprof) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.Pprof) i = encodeVarint(dAtA, i, uint64(len(m.Pprof))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x12 return len(dAtA) - i, nil } func (m *QueryResponse_Top) MarshalToVT(dAtA []byte) (int, error) { @@ -523,7 +523,7 @@ func (m *QueryResponse_Top) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= size i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x1a } return len(dAtA) - i, nil } @@ -542,7 +542,7 @@ func (m *QueryResponse_Callgraph) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= size i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x42 + dAtA[i] = 0x22 } return len(dAtA) - i, nil } @@ -1322,7 +1322,7 @@ func (m *QueryResponse) UnmarshalVT(dAtA []byte) error { return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 5: + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Flamegraph", wireType) } @@ -1363,7 +1363,7 @@ func (m *QueryResponse) UnmarshalVT(dAtA []byte) error { m.Report = &QueryResponse_Flamegraph{v} } iNdEx = postIndex - case 6: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pprof", wireType) } @@ -1396,7 +1396,7 @@ func (m *QueryResponse) UnmarshalVT(dAtA []byte) error { copy(v, dAtA[iNdEx:postIndex]) m.Report = &QueryResponse_Pprof{v} iNdEx = postIndex - case 7: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Top", wireType) } @@ -1437,7 +1437,7 @@ func (m *QueryResponse) UnmarshalVT(dAtA []byte) error { m.Report = &QueryResponse_Top{v} } iNdEx = postIndex - case 8: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Callgraph", wireType) } diff --git a/proto/parca/share/v1alpha1/share.proto b/proto/parca/share/v1alpha1/share.proto index f57130de3db..4efedd019cf 100644 --- a/proto/parca/share/v1alpha1/share.proto +++ b/proto/parca/share/v1alpha1/share.proto @@ -66,15 +66,15 @@ message QueryResponse { // report is the generated report oneof report { // flamegraph is a flamegraph representation of the report - parca.query.v1alpha1.Flamegraph flamegraph = 5; + parca.query.v1alpha1.Flamegraph flamegraph = 1; // pprof is a pprof profile as compressed bytes - bytes pprof = 6; + bytes pprof = 2; // top is a top list representation of the report - parca.query.v1alpha1.Top top = 7; + parca.query.v1alpha1.Top top = 3; // callgraph is a callgraph nodes and edges representation of the report - parca.query.v1alpha1.Callgraph callgraph = 8; + parca.query.v1alpha1.Callgraph callgraph = 4; } } diff --git a/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts b/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts index 18ed57dce06..5e8cfb6b636 100644 --- a/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts +++ b/ui/packages/shared/client/src/parca/share/v1alpha1/share.client.ts @@ -1,5 +1,5 @@ // @generated by protobuf-ts 2.8.1 with parameter long_type_string,generate_dependencies -// @generated from protobuf file "share/share.proto" (package "polarsignals.share", syntax proto3) +// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; diff --git a/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts b/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts index 4d601dea0af..ba789c2adf5 100644 --- a/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts +++ b/ui/packages/shared/client/src/parca/share/v1alpha1/share.ts @@ -1,5 +1,5 @@ // @generated by protobuf-ts 2.8.1 with parameter long_type_string,generate_dependencies -// @generated from protobuf file "share/share.proto" (package "polarsignals.share", syntax proto3) +// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; @@ -126,7 +126,7 @@ export interface QueryResponse { /** * flamegraph is a flamegraph representation of the report * - * @generated from protobuf field: parca.query.v1alpha1.Flamegraph flamegraph = 5; + * @generated from protobuf field: parca.query.v1alpha1.Flamegraph flamegraph = 1; */ flamegraph: Flamegraph; } | { @@ -134,7 +134,7 @@ export interface QueryResponse { /** * pprof is a pprof profile as compressed bytes * - * @generated from protobuf field: bytes pprof = 6; + * @generated from protobuf field: bytes pprof = 2; */ pprof: Uint8Array; } | { @@ -142,7 +142,7 @@ export interface QueryResponse { /** * top is a top list representation of the report * - * @generated from protobuf field: parca.query.v1alpha1.Top top = 7; + * @generated from protobuf field: parca.query.v1alpha1.Top top = 3; */ top: Top; } | { @@ -150,7 +150,7 @@ export interface QueryResponse { /** * callgraph is a callgraph nodes and edges representation of the report * - * @generated from protobuf field: parca.query.v1alpha1.Callgraph callgraph = 8; + * @generated from protobuf field: parca.query.v1alpha1.Callgraph callgraph = 4; */ callgraph: Callgraph; } | { @@ -431,10 +431,10 @@ export const ProfileTypesResponse = new ProfileTypesResponse$Type(); class QueryResponse$Type extends MessageType { constructor() { super("parca.share.v1alpha1.QueryResponse", [ - { no: 5, name: "flamegraph", kind: "message", oneof: "report", T: () => Flamegraph }, - { no: 6, name: "pprof", kind: "scalar", oneof: "report", T: 12 /*ScalarType.BYTES*/ }, - { no: 7, name: "top", kind: "message", oneof: "report", T: () => Top }, - { no: 8, name: "callgraph", kind: "message", oneof: "report", T: () => Callgraph } + { no: 1, name: "flamegraph", kind: "message", oneof: "report", T: () => Flamegraph }, + { no: 2, name: "pprof", kind: "scalar", oneof: "report", T: 12 /*ScalarType.BYTES*/ }, + { no: 3, name: "top", kind: "message", oneof: "report", T: () => Top }, + { no: 4, name: "callgraph", kind: "message", oneof: "report", T: () => Callgraph } ]); } create(value?: PartialMessage): QueryResponse { @@ -449,25 +449,25 @@ class QueryResponse$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* parca.query.v1alpha1.Flamegraph flamegraph */ 5: + case /* parca.query.v1alpha1.Flamegraph flamegraph */ 1: message.report = { oneofKind: "flamegraph", flamegraph: Flamegraph.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).flamegraph) }; break; - case /* bytes pprof */ 6: + case /* bytes pprof */ 2: message.report = { oneofKind: "pprof", pprof: reader.bytes() }; break; - case /* parca.query.v1alpha1.Top top */ 7: + case /* parca.query.v1alpha1.Top top */ 3: message.report = { oneofKind: "top", top: Top.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).top) }; break; - case /* parca.query.v1alpha1.Callgraph callgraph */ 8: + case /* parca.query.v1alpha1.Callgraph callgraph */ 4: message.report = { oneofKind: "callgraph", callgraph: Callgraph.internalBinaryRead(reader, reader.uint32(), options, (message.report as any).callgraph) @@ -485,18 +485,18 @@ class QueryResponse$Type extends MessageType { return message; } internalBinaryWrite(message: QueryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* parca.query.v1alpha1.Flamegraph flamegraph = 5; */ + /* parca.query.v1alpha1.Flamegraph flamegraph = 1; */ if (message.report.oneofKind === "flamegraph") - Flamegraph.internalBinaryWrite(message.report.flamegraph, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* bytes pprof = 6; */ + Flamegraph.internalBinaryWrite(message.report.flamegraph, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* bytes pprof = 2; */ if (message.report.oneofKind === "pprof") - writer.tag(6, WireType.LengthDelimited).bytes(message.report.pprof); - /* parca.query.v1alpha1.Top top = 7; */ + writer.tag(2, WireType.LengthDelimited).bytes(message.report.pprof); + /* parca.query.v1alpha1.Top top = 3; */ if (message.report.oneofKind === "top") - Top.internalBinaryWrite(message.report.top, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); - /* parca.query.v1alpha1.Callgraph callgraph = 8; */ + Top.internalBinaryWrite(message.report.top, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* parca.query.v1alpha1.Callgraph callgraph = 4; */ if (message.report.oneofKind === "callgraph") - Callgraph.internalBinaryWrite(message.report.callgraph, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + Callgraph.internalBinaryWrite(message.report.callgraph, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); From d8b8967ca067824fd7d5000644184dfffa5a7bf9 Mon Sep 17 00:00:00 2001 From: manojVivek Date: Tue, 27 Sep 2022 04:55:03 +0000 Subject: [PATCH 8/8] ui-v0.16.20 --- ui/CHANGELOG.md | 31 ++++++++++++++++++++++ ui/lerna.json | 2 +- ui/packages/app/web/CHANGELOG.md | 8 ++++++ ui/packages/app/web/package.json | 8 +++--- ui/packages/shared/client/CHANGELOG.md | 12 +++++++++ ui/packages/shared/client/package.json | 2 +- ui/packages/shared/components/CHANGELOG.md | 8 ++++++ ui/packages/shared/components/package.json | 4 +-- ui/packages/shared/profile/CHANGELOG.md | 8 ++++++ ui/packages/shared/profile/package.json | 6 ++--- 10 files changed, 78 insertions(+), 11 deletions(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index a6d71358b45..cd7f93ff90b 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -3,6 +3,37 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.16.20](https://github.com/parca-dev/parca/compare/ui-v0.16.19...ui-v0.16.20) (2022-09-27) + + + +## [0.16.18](https://github.com/parca-dev/parca/compare/ui-v0.16.17...ui-v0.16.18) (2022-09-26) + + + +## [0.16.17](https://github.com/parca-dev/parca/compare/ui-v0.16.16...ui-v0.16.17) (2022-09-26) + + + +## [0.16.16](https://github.com/parca-dev/parca/compare/ui-v0.16.15...ui-v0.16.16) (2022-09-26) + + + +## [0.16.15](https://github.com/parca-dev/parca/compare/ui-v0.16.6...ui-v0.16.15) (2022-09-22) + + +### Bug Fixes + +* set the granule size option in FrostDB ([#1726](https://github.com/parca-dev/parca/issues/1726)) ([20ba452](https://github.com/parca-dev/parca/commit/20ba452203cfc682f8ce623abe3132904418b694)) + + + +## 0.16.6 (2022-09-15) + + + + + ## [0.16.19](https://github.com/parca-dev/parca/compare/ui-v0.16.18...ui-v0.16.19) (2022-09-26) diff --git a/ui/lerna.json b/ui/lerna.json index 0e6b90b76fa..5f37fce7fa0 100644 --- a/ui/lerna.json +++ b/ui/lerna.json @@ -1,5 +1,5 @@ { - "version": "0.16.19", + "version": "0.16.20", "npmClient": "yarn", "tagVersionPrefix": "ui-v", "useWorkspaces": true, diff --git a/ui/packages/app/web/CHANGELOG.md b/ui/packages/app/web/CHANGELOG.md index 2e328afd0e9..db047c3b8b7 100644 --- a/ui/packages/app/web/CHANGELOG.md +++ b/ui/packages/app/web/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.16.20](https://github.com/parca-dev/parca/compare/ui-v0.16.19...ui-v0.16.20) (2022-09-27) + +**Note:** Version bump only for package @parca/web + + + + + ## [0.16.19](https://github.com/parca-dev/parca/compare/ui-v0.16.18...ui-v0.16.19) (2022-09-26) **Note:** Version bump only for package @parca/web diff --git a/ui/packages/app/web/package.json b/ui/packages/app/web/package.json index 1b9b1fc512a..0cc2e6b8e89 100644 --- a/ui/packages/app/web/package.json +++ b/ui/packages/app/web/package.json @@ -1,7 +1,7 @@ { "name": "@parca/web", "private": true, - "version": "0.16.19", + "version": "0.16.20", "description": "Parca Web Interface", "scripts": { "lint": "eslint --no-error-on-unmatched-pattern --ext .ts,.tsx,.js src/*", @@ -25,13 +25,13 @@ "dependencies": { "@headlessui/react": "1.7.2", "@heroicons/react": "1.0.6", - "@parca/client": "^0.16.19", - "@parca/components": "^0.16.19", + "@parca/client": "^0.16.20", + "@parca/components": "^0.16.20", "@parca/dynamicsize": "^0.16.0", "@parca/functions": "^0.16.0", "@parca/icons": "^0.16.0", "@parca/parser": "^0.16.0", - "@parca/profile": "^0.16.19", + "@parca/profile": "^0.16.20", "@parca/store": "^0.16.16", "@svgr/webpack": "6.3.1", "@testing-library/jest-dom": "5.16.5", diff --git a/ui/packages/shared/client/CHANGELOG.md b/ui/packages/shared/client/CHANGELOG.md index dc17b3023b1..e33723e9e01 100644 --- a/ui/packages/shared/client/CHANGELOG.md +++ b/ui/packages/shared/client/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.16.20](https://github.com/parca-dev/parca/compare/ui-v0.16.19...ui-v0.16.20) (2022-09-27) + + + +## [0.16.15](https://github.com/parca-dev/parca/compare/ui-v0.16.6...ui-v0.16.15) (2022-09-22) + +**Note:** Version bump only for package @parca/client + + + + + ## [0.16.19](https://github.com/parca-dev/parca/compare/ui-v0.16.18...ui-v0.16.19) (2022-09-26) **Note:** Version bump only for package @parca/client diff --git a/ui/packages/shared/client/package.json b/ui/packages/shared/client/package.json index 8d1faa5b7b6..94174db01cf 100644 --- a/ui/packages/shared/client/package.json +++ b/ui/packages/shared/client/package.json @@ -1,6 +1,6 @@ { "name": "@parca/client", - "version": "0.16.19", + "version": "0.16.20", "description": "Parca API Client", "main": "src/index.ts", "scripts": { diff --git a/ui/packages/shared/components/CHANGELOG.md b/ui/packages/shared/components/CHANGELOG.md index 59466a1ae16..8a2ba53629b 100644 --- a/ui/packages/shared/components/CHANGELOG.md +++ b/ui/packages/shared/components/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.16.20](https://github.com/parca-dev/parca/compare/ui-v0.16.19...ui-v0.16.20) (2022-09-27) + +**Note:** Version bump only for package @parca/components + + + + + ## [0.16.19](https://github.com/parca-dev/parca/compare/ui-v0.16.18...ui-v0.16.19) (2022-09-26) **Note:** Version bump only for package @parca/components diff --git a/ui/packages/shared/components/package.json b/ui/packages/shared/components/package.json index ad1fca87aee..6c4046991eb 100644 --- a/ui/packages/shared/components/package.json +++ b/ui/packages/shared/components/package.json @@ -1,6 +1,6 @@ { "name": "@parca/components", - "version": "0.16.19", + "version": "0.16.20", "description": "A component library for Parca", "main": "dist/index.js", "scripts": { @@ -11,7 +11,7 @@ "dependencies": { "@headlessui/react": "^1.4.3", "@heroicons/react": "^1.0.5", - "@parca/client": "^0.16.19", + "@parca/client": "^0.16.20", "@parca/dynamicsize": "^0.16.0", "@parca/functions": "^0.16.0", "@parca/icons": "^0.16.0", diff --git a/ui/packages/shared/profile/CHANGELOG.md b/ui/packages/shared/profile/CHANGELOG.md index 5e669af3e00..5bd0c5e5a07 100644 --- a/ui/packages/shared/profile/CHANGELOG.md +++ b/ui/packages/shared/profile/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.16.20](https://github.com/parca-dev/parca/compare/ui-v0.16.19...ui-v0.16.20) (2022-09-27) + +**Note:** Version bump only for package @parca/profile + + + + + ## [0.16.19](https://github.com/parca-dev/parca/compare/ui-v0.16.18...ui-v0.16.19) (2022-09-26) **Note:** Version bump only for package @parca/profile diff --git a/ui/packages/shared/profile/package.json b/ui/packages/shared/profile/package.json index b21a56b8d52..d121074f264 100644 --- a/ui/packages/shared/profile/package.json +++ b/ui/packages/shared/profile/package.json @@ -1,11 +1,11 @@ { "name": "@parca/profile", - "version": "0.16.19", + "version": "0.16.20", "description": "Profile viewing libraries", "dependencies": { "@iconify/react": "^3.2.2", - "@parca/client": "^0.16.19", - "@parca/components": "^0.16.19", + "@parca/client": "^0.16.20", + "@parca/components": "^0.16.20", "@parca/dynamicsize": "^0.16.0", "@parca/functions": "^0.16.0", "@parca/parser": "^0.16.0",