提交 b97fafc3 编写于 作者: P pengys5

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

上级 53be072c
......@@ -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;
}
\ No newline at end of file
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.collecor.proto";
message KeyWithIntegerValue {
string key = 1;
int32 value = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.skywalking.apm.network.collecor.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";
//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;
}
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册