Skip to content

Instantly share code, notes, and snippets.

@sevki
Created April 2, 2013 13:25
Show Gist options
  • Save sevki/5292175 to your computer and use it in GitHub Desktop.
Save sevki/5292175 to your computer and use it in GitHub Desktop.
message KeyValue {
required string key =1;
required bytes value = 2;
}
message OpParamMessage {
required string msg =1;
repeated KeyValue param = 2;
}
message OpException {
required string type = 1;
required string value =2;
optional string module =3;
}
message OpFrame {
required int32 line_no = 1;
required string filename = 2;
optional string abs_path =3;
optional string function = 4;
repeated KeyValue vars = 5;
repeated string pre_context =6;
optional string context_line = 7;
repeated string post_context = 8;
}
message OpStackTrace {
optional string trace = 1;
repeated OpFrame frames = 2;
}
message OpHttp {
required string url =1;
required string method =2;
optional bytes data = 3;
optional string query_string = 4;
optional string cookies = 5;
repeated KeyValue headers = 6;
optional string remote_host =7;
optional string http_host = 8;
optional string user_agent =9;
optional bool secure = 10;
repeated KeyValue env_vars = 11;
}
message OpUser {
required bool is_authenticated = 1;
required bool user_id = 2;
optional bool user_name = 3;
optional bool email = 4;
}
message OpQuery {
required string command = 1;
optional string engine = 2;
}
message OpMessage {
required string msg = 1;
optional int64 timestamp = 2;
enum MsgLevel {
DEBUG = 0;
INFO = 1;
WARN = 2;
ERROR = 3;
CRITICAL = 4;
}
optional MsgLevel level = 3;
optional string logger = 4;
optional string client_supplied_id = 5;
optional string culprit = 6;
repeated string extra = 7;
optional OpParamMessage param_message = 9;
optional OpException exception = 10;
optional OpStackTrace stack_trace = 11;
optional OpHttp http = 12;
optional OpUser user = 13;
optional OpQuery query = 14;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment