Skip to content

Commit

Permalink
feat(gateway): instrument gateway entry points (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
yair-starkware authored Jul 11, 2024
1 parent 7ff6fc1 commit 6f0ced5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/gateway/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use starknet_api::transaction::TransactionHash;
use starknet_mempool_infra::component_runner::{ComponentRunner, ComponentStartError};
use starknet_mempool_types::communication::SharedMempoolClient;
use starknet_mempool_types::mempool_types::{Account, MempoolInput};
use tracing::info;
use tracing::{info, instrument};

use crate::compilation::compile_contract_class;
use crate::config::{GatewayConfig, GatewayNetworkConfig, RpcStateReaderConfig};
Expand Down Expand Up @@ -78,10 +78,12 @@ impl Gateway {

// Gateway handlers.

#[instrument]
async fn is_alive() -> GatewayResult<String> {
unimplemented!("Future handling should be implemented here.");
}

#[instrument(skip(app_state))]
async fn add_tx(
State(app_state): State<AppState>,
Json(tx): Json<RPCTransaction>,
Expand Down

0 comments on commit 6f0ced5

Please sign in to comment.