提交 e64d51ab 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Merge pull request #260 from wu-sheng/feature/254

change the grpc protocol
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
option java_package = "org.skywalking.apm.network.proto";
import "KeyWithIntegerValue.proto";
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
......@@ -10,11 +12,9 @@ service ApplicationRegisterService {
}
message Application {
string applicationCode = 1;
repeated string applicationCode = 1;
}
message ApplicationMapping {
int32 applicationId = 1;
Application application = 2;
}
repeated KeyWithIntegerValue application = 1;
}
\ No newline at end of file
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
option java_package = "org.skywalking.apm.network.proto";
import "Downstream.proto";
......@@ -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";
option java_package = "org.skywalking.apm.network.proto";
// nothing down stream from collector yet.
message Downstream {
......
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
option java_package = "org.skywalking.apm.network.proto";
import "Downstream.proto";
......
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.proto";
message KeyWithIntegerValue {
string key = 1;
int32 value = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.proto";
message KeyWithStringValue {
string key = 1;
string value = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
option java_package = "org.skywalking.apm.network.proto";
import "Downstream.proto";
import "KeyWithStringValue.proto";
service TraceSegmentService {
rpc collect (stream UpstreamSegment) returns (Downstream) {
......@@ -48,7 +49,7 @@ message SpanObject {
int32 componentId = 11;
string component = 12;
bool isError = 13;
repeated KeyValue tags = 14;
repeated KeyWithStringValue tags = 14;
repeated LogMessage logs = 15;
}
......@@ -65,12 +66,7 @@ enum SpanLayer {
MQ = 3;
}
message KeyValue {
string key = 1;
string value = 2;
}
message LogMessage {
int64 time = 1;
repeated KeyValue data = 2;
repeated KeyWithStringValue data = 2;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册