syntax = "proto3";

option java_multiple_files = true;
option java_package = "com.a.eye.skywalking.network.grpc";

import "Spans.proto";

service AsyncTraceSearchService {
    rpc search (stream QueryTask) returns (stream SearchResult) {
    };
}

service TraceSearchService {
    rpc search (QueryTask) returns (SearchResult) {
    };
}

message QueryTask {
    TraceId traceId = 2;
}

message SearchResult {
    repeated Span spans = 2;
}
