Skip to content

Commit

Permalink
addgraphstats to analytics record proto
Browse files Browse the repository at this point in the history
  • Loading branch information
kofoworola committed Oct 24, 2023
1 parent 7af2a45 commit ebddce4
Show file tree
Hide file tree
Showing 2 changed files with 351 additions and 72 deletions.
20 changes: 20 additions & 0 deletions analytics/analytics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ message AnalyticsRecord {
string OauthID = 29;
string TimeZone = 30;
string ApiSchema = 31;
GraphQLStats GraphQLStats = 32;
}

message Latency {
Expand Down Expand Up @@ -74,3 +75,22 @@ message NetworkStats {
int64 BytesIn = 3;
int64 BytesOut = 4;
}

enum GraphQLOperations{
OPERATION_QUERY = 0;
OPERATION_MUTATION = 1;
OPERATION_SUBSCRIPTION = 2;
}

message GraphQLStats{
map<string, RepeatedFields> Types = 1;
GraphQLOperations OperationType = 2;
string Variables = 3;
repeated string RootFields = 4;
bool HasError = 5;
repeated string GraphErrors = 6;
}

message RepeatedFields{
repeated string fields = 1;
}
Loading

0 comments on commit ebddce4

Please sign in to comment.