Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[remote-storage][v2] Add IDL for dependency storage #6738

Merged
merged 6 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions internal/storage/v2/grpc/dependency_storage.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package jaeger.storage.v2;

import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "model.proto";

option go_package = "storage";

message GetDependenciesRequest {
// start_time is the start of the time interval to search for the dependencies.
google.protobuf.Timestamp start_time = 1 [
(gogoproto.stdtime) = true,
(gogoproto.nullable) = false
];
// end_time is the end of the time interval to search for the dependencies.
google.protobuf.Timestamp end_time = 2 [
(gogoproto.stdtime) = true,
(gogoproto.nullable) = false
];
}

message GetDependenciesResponse {
repeated jaeger.api_v2.DependencyLink dependencies = 1 [(gogoproto.nullable) = false];
}

service DependencyReader {
// GetDependencies loads service dependencies from storage.
rpc GetDependencies(GetDependenciesRequest) returns (GetDependenciesResponse);
}
228 changes: 228 additions & 0 deletions proto-gen/storage/v2/dependency_storage.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/makefiles/Protobuf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ proto-storage-v1:
.PHONY: proto-storage-v2
proto-storage-v2:
$(call proto_compile, proto-gen/storage/v2, internal/storage/v2/grpc/trace_storage.proto, -Iinternal/storage/v2/grpc/)
$(call proto_compile, proto-gen/storage/v2, internal/storage/v2/grpc/dependency_storage.proto, -Iinternal/storage/v2/grpc/)

.PHONY: proto-hotrod
proto-hotrod:
Expand Down
Loading