syntax = "proto2";

package serialize;

message Msg {
	enum Kind {
		Admin = 0;
		Connect = 1;
		Event = 2;
		TranStart = 3;
		TranEnd = 4;
		CallStart = 5;
		CallEnd = 6;
	}

	message Desc {
		optional string key = 1;
		optional string val = 2;
	}

	optional Kind kind = 1;
	optional fixed64 time = 2;
	optional string service = 3;
	optional string machine = 4;
	optional int32 pid = 5;
	optional fixed64 traceid = 6;
	optional string subtraceid = 7;
	repeated Desc desc = 8;
}

message MsgLite {
	// only include this single field, for faster searching
	optional fixed64 traceid = 6;
}
