mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(router_env): making metric flow as a trait for extensibility (#797)
This commit is contained in:
@ -164,6 +164,12 @@ pub enum Flow {
|
||||
ApiKeyList,
|
||||
}
|
||||
|
||||
///
|
||||
/// Trait for providing generic behaviour to flow metric
|
||||
///
|
||||
pub trait FlowMetric: ToString + std::fmt::Debug {}
|
||||
impl FlowMetric for Flow {}
|
||||
|
||||
/// Category of log event.
|
||||
#[derive(Debug)]
|
||||
pub enum Category {
|
||||
|
||||
Reference in New Issue
Block a user