提交 53be072c 编写于 作者: P pengys5

change the grpc protocol

上级 d8e06b39
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
import "KeyValue.proto";
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
rpc register (Application) returns (ApplicationMapping) {
}
}
message Application {
repeated string applicationCode = 1;
}
message ApplicationMapping {
repeated KeyValue application = 1;
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ service InstanceDiscoveryService {
}
message ApplicationInstance {
string applicationCode = 1;
int32 applicationId = 1;
}
message ApplicationInstanceMapping {
......@@ -45,6 +45,6 @@ message ServiceNameMappingElement {
message ServiceNameElement {
string serviceName = 1;
string ApplicationCode = 2;
int32 applicationId = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.collecor.proto";
message KeyValue {
string key = 1;
string value = 2;
}
......@@ -4,6 +4,7 @@ option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
import "Downstream.proto";
import "KeyValue.proto";
service TraceSegmentService {
rpc collect (stream UpstreamSegment) returns (Downstream) {
......@@ -65,11 +66,6 @@ enum SpanLayer {
MQ = 3;
}
message KeyValue {
string key = 1;
string value = 2;
}
message LogMessage {
int64 time = 1;
repeated KeyValue data = 2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册