divide the KeyValue.proto into KeyWithIntegerValue.proto and KeyWithStringValue.proto

This commit is contained in:
pengys5 2017-07-03 12:42:42 +08:00
parent 53be072c25
commit b97fafc366
5 changed files with 23 additions and 25 deletions

View File

@ -3,7 +3,7 @@ syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
import "KeyValue.proto";
import "KeyWithIntegerValue.proto";
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
@ -16,5 +16,5 @@ message Application {
}
message ApplicationMapping {
repeated KeyValue application = 1;
repeated KeyWithIntegerValue application = 1;
}

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.collecor.proto";
message KeyWithIntegerValue {
string key = 1;
int32 value = 2;
}

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.collecor.proto";
message KeyWithStringValue {
string key = 1;
string value = 2;
}

View File

@ -1,20 +0,0 @@
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
rpc register (Application) returns (ApplicationMapping) {
}
}
message Application {
string applicationCode = 1;
}
message ApplicationMapping {
int32 applicationId = 1;
Application application = 2;
}

View File

@ -4,7 +4,7 @@ option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.trace.proto";
import "Downstream.proto";
import "KeyValue.proto";
import "KeyWithStringValue.proto";
service TraceSegmentService {
rpc collect (stream UpstreamSegment) returns (Downstream) {
@ -49,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;
}
@ -68,5 +68,5 @@ enum SpanLayer {
message LogMessage {
int64 time = 1;
repeated KeyValue data = 2;
repeated KeyWithStringValue data = 2;
}