Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 194 additions & 0 deletions observation/qos/jsonrpc_validation_error.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 32 additions & 17 deletions observation/qos/solana.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions proto/path/qos/jsonrpc_validation_error.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";
Comment thread
adshmh marked this conversation as resolved.
package path.qos;

option go_package = "github.com/buildwithgrove/path/observation/qos";

import "google/protobuf/timestamp.proto";

// JsonRpcResponseValidationError captures validation errors for JSON-RPC responses
message JsonRpcResponseValidationError {
// Type of validation error
JsonRpcValidationErrorType error_type = 1;

// Timestamp when the validation error occurred
google.protobuf.Timestamp timestamp = 2;
}

// Enum for different types of JSON-RPC validation errors
enum JsonRpcValidationErrorType {
// Default/unspecified validation error
JSON_RPC_VALIDATION_ERROR_TYPE_UNSPECIFIED = 0;

// Response is not a valid JSON-RPC response
NON_JSONRPC_RESPONSE = 1;
}
6 changes: 5 additions & 1 deletion proto/path/qos/solana.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ option go_package = "github.com/buildwithgrove/path/observation/qos";
import "path/qos/jsonrpc.proto";
import "path/qos/request_origin.proto";
import "path/qos/request_error.proto";
import "path/qos/jsonrpc_validation_error.proto";

// SolanaRequestObservations captures QoS data for a single Solana blockchain service request,
// including all observations made during potential retries.
Expand Down Expand Up @@ -79,4 +80,7 @@ message SolanaGetHealthResponse {
// Examples: getTokenSupply, getTransaction
message SolanaUnrecognizedResponse {
JsonRpcResponse jsonrpc_response = 1;
}

// Optional validation error information
optional JsonRpcResponseValidationError validation_error = 2;
}
Loading