pub struct TelemetryState { /* private fields */ }

Implementations§

source§

impl TelemetryState

source

pub fn new( tx_latency_submitted_range: Range<u64>, tx_latency_submitted_buckets: u64, tx_latency_confirmed_range: Range<u64>, tx_latency_confirmed_buckets: u64 ) -> Self

source

pub fn gather(&self) -> Vec<MetricFamily>

Gather the metrics for export

source

pub fn init_worker_by_type(&self, worker_type: WorkerType)

source

pub fn init_per_chain(&self, chain_id: &ChainId)

source

pub fn init_per_channel( &self, src_chain: &ChainId, dst_chain: &ChainId, src_channel: &ChannelId, dst_channel: &ChannelId, src_port: &PortId, dst_port: &PortId )

source

pub fn init_per_path( &self, chain: &ChainId, counterparty: &ChainId, channel: &ChannelId, port: &PortId, clear_packets: bool )

source

pub fn init_per_client( &self, src_chain: &ChainId, dst_chain: &ChainId, client: &ClientId, misbehaviour: bool )

source

pub fn worker(&self, worker_type: WorkerType, count: i64)

Update the number of workers per object

source

pub fn client_updates_submitted( &self, src_chain: &ChainId, dst_chain: &ChainId, client: &ClientId, count: u64 )

Update the number of client updates per client

source

pub fn client_updates_skipped( &self, src_chain: &ChainId, dst_chain: &ChainId, client: &ClientId, count: u64 )

Update the number of client updates skipped per client

source

pub fn client_misbehaviours_submitted( &self, src_chain: &ChainId, dst_chain: &ChainId, client: &ClientId, count: u64 )

Number of client misbehaviours per client

source

pub fn receive_packets_confirmed( &self, src_chain: &ChainId, dst_chain: &ChainId, src_channel: &ChannelId, dst_channel: &ChannelId, src_port: &PortId, dst_port: &PortId, count: u64 )

Number of receive packets relayed, per channel

source

pub fn acknowledgment_packets_confirmed( &self, src_chain: &ChainId, dst_chain: &ChainId, src_channel: &ChannelId, dst_channel: &ChannelId, src_port: &PortId, dst_port: &PortId, count: u64 )

Number of acknowledgment packets relayed, per channel

source

pub fn timeout_packets_confirmed( &self, src_chain: &ChainId, dst_chain: &ChainId, src_channel: &ChannelId, dst_channel: &ChannelId, src_port: &PortId, dst_port: &PortId, count: u64 )

Number of timeout packets relayed, per channel

source

pub fn query(&self, chain_id: &ChainId, query_type: &'static str)

Number of queries emitted by the relayer, per chain and query type

source

pub fn queries_cache_hits(&self, chain_id: &ChainId, query_type: &'static str)

Number of cache hits for queries emitted by the relayer, per chain and query type

source

pub fn ws_reconnect(&self, chain_id: &ChainId)

Number of time the relayer had to reconnect to the WebSocket endpoint, per chain

source

pub fn ws_events(&self, chain_id: &ChainId, count: u64)

How many IBC events did Hermes receive via the WebSocket subscription, per chain

source

pub fn messages_submitted(&self, chain_id: &ChainId, count: u64)

How many messages Hermes submitted to the chain

source

pub fn wallet_balance( &self, chain_id: &ChainId, account: &str, amount: f64, denom: &str )

The balance in each wallet that Hermes is using, per account, denom and chain. The amount given is of unit: 10^6 * denom

source

pub fn received_event_batch(&self, tracking_id: impl ToString)

source

pub fn tx_submitted( &self, tx_count: usize, tracking_id: impl ToString, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn tx_confirmed( &self, tx_count: usize, tracking_id: impl ToString, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn send_packet_events( &self, _seq_nr: u64, _height: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn acknowledgement_events( &self, _seq_nr: u64, _height: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn timeout_events( &self, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn cleared_send_packet_events( &self, _seq_nr: u64, _height: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn cleared_acknowledgment_events( &self, _seq_nr: u64, _height: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

source

pub fn backlog_insert( &self, seq_nr: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

Inserts in the backlog a new event for the given sequence number. This happens when the relayer observed a new SendPacket event.

source

pub fn update_backlog( &self, sequences: Vec<u64>, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

Inserts in the backlog a new event for the given sequence number. This happens when the relayer observed a new SendPacket event.

source

pub fn backlog_remove( &self, seq_nr: u64, chain_id: &ChainId, channel_id: &ChannelId, port_id: &PortId, counterparty_chain_id: &ChainId )

Evicts from the backlog the event for the given sequence number. Removing events happens when the relayer observed either an acknowledgment or a timeout for a packet sequence number, which means that the corresponding packet was relayed.

source

pub fn fees_amount( &self, chain_id: &ChainId, receiver: &Signer, fee_amounts: Coin<String> )

Record the rewarded fee from ICS29 if the address is in the registered addresses list.

source

pub fn update_period_fees( &self, chain_id: &ChainId, receiver: &String, denom: &String )

source

pub fn add_visible_fee_address(&self, address: String)

source

pub fn broadcast_errors( &self, address: &String, error_code: u32, error_description: &str )

Add an error and its description to the list of errors observed after broadcasting a Tx with a specific account.

source

pub fn simulate_errors( &self, address: &String, recoverable: bool, error_description: String )

Add an error and its description to the list of errors observed after simulating a Tx with a specific account.

source

pub fn dynamic_gas_queried_fees(&self, chain_id: &ChainId, amount: f64)

source

pub fn dynamic_gas_paid_fees(&self, chain_id: &ChainId, amount: f64)

source

pub fn dynamic_gas_queried_success_fees(&self, chain_id: &ChainId, amount: f64)

source

pub fn filtered_packets( &self, src_chain: &ChainId, dst_chain: &ChainId, src_channel: &ChannelId, dst_channel: &ChannelId, src_port: &PortId, dst_port: &PortId, count: u64 )

Increment number of packets filtered because the memo field is too big

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more