-
Notifications
You must be signed in to change notification settings - Fork 15
/
errors.proto
36 lines (31 loc) · 989 Bytes
/
errors.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
syntax = "proto3";
package com.periskop;
message Errors {
repeated AggregatedError aggregatedErrors = 1;
string target_uuid = 2; // Must be unique per exception collector instance
}
message AggregatedError {
string aggregationKey = 1;
int64 totalCount = 2;
string severity = 3; // Either info, warning or error
repeated ErrorInstance latestErrors = 4; // A list of the last N error instances
}
message ErrorInstance {
Error error = 1;
string uuid = 2;
string timestamp = 3; // RFC3339 format
string severity = 4;
HttpContext httpContext = 5; // Optional
}
message Error {
string class = 1;
string message = 2;
repeated string stacktrace = 3; // An ordered list of stack trace lines
Error cause = 4; // Optional, for exceptions triggered by other exceptions
}
message HttpContext {
string requestMethod = 1;
string requestUrl = 2;
map<string, string> requestHeaders = 3;
string requestBody = 4; // Optional
}