add default span layer

This commit is contained in:
ascrutae 2017-08-12 21:04:07 +08:00
parent ec575ce007
commit 77069695a8
2 changed files with 9 additions and 8 deletions

View File

@ -72,10 +72,11 @@ enum SpanType {
}
enum SpanLayer {
Database = 0;
RPCFramework = 1;
Http = 2;
MQ = 3;
Unknown = 0;
Database = 1;
RPCFramework = 2;
Http = 3;
MQ = 4;
}
message LogMessage {

View File

@ -4,10 +4,10 @@ package org.skywalking.apm.agent.core.context.trace;
* @author wusheng
*/
public enum SpanLayer {
DB(0),
RPC_FRAMEWORK(1),
HTTP(2),
MQ(3);
DB(1),
RPC_FRAMEWORK(2),
HTTP(3),
MQ(4);
private int code;