change the grpc protocol
This commit is contained in:
parent
d8e06b39d8
commit
53be072c25
|
|
@ -0,0 +1,20 @@
|
|||
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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue