Skip to content

Commit

Permalink
Merge pull request #44 from dfinity/rjb/fix-call-v3-logging
Browse files Browse the repository at this point in the history
fix: log api/v3/call as call_v3 instead of unknown
  • Loading branch information
blind-oracle authored Sep 30, 2024
2 parents 1d969ca + db3750b commit 3b66140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ fn infer_request_type(path: &str) -> RequestType {
match path {
"/api/v2/canister/:principal/query" => RequestType::Api(RequestTypeApi::Query),
"/api/v2/canister/:principal/call" => RequestType::Api(RequestTypeApi::Call),
"/api/v3/canister/:principal/call" => RequestType::Api(RequestTypeApi::CallV3),
"/api/v2/canister/:principal/read_state" => RequestType::Api(RequestTypeApi::ReadState),
"/api/v2/subnet/:principal/read_state" => RequestType::Api(RequestTypeApi::ReadStateSubnet),
"/api/v2/status" => RequestType::Api(RequestTypeApi::Status),
Expand Down
1 change: 1 addition & 0 deletions src/routing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub enum RequestTypeApi {
Status,
Query,
Call,
CallV3,
ReadState,
ReadStateSubnet,
}
Expand Down

0 comments on commit 3b66140

Please sign in to comment.