mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
build(deps): bump opentelemetry crates to 0.27 (#6774)
This commit is contained in:
@ -35,7 +35,6 @@ use hyperswitch_domain_models::{
|
||||
router_response_types::{MandateRevokeResponseData, VerifyWebhookSourceResponseData},
|
||||
};
|
||||
use masking::Maskable;
|
||||
use router_env::metrics::add_attributes;
|
||||
use serde_json::json;
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
@ -121,9 +120,8 @@ pub trait ConnectorIntegration<T, Req, Resp>:
|
||||
_connectors: &Connectors,
|
||||
) -> CustomResult<Option<Request>, errors::ConnectorError> {
|
||||
metrics::UNIMPLEMENTED_FLOW.add(
|
||||
&metrics::CONTEXT,
|
||||
1,
|
||||
&add_attributes([("connector", req.connector.clone())]),
|
||||
router_env::metric_attributes!(("connector", req.connector.clone())),
|
||||
);
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ use common_utils::{
|
||||
};
|
||||
use hyperswitch_domain_models::{router_data::ErrorResponse, router_data_v2::RouterDataV2};
|
||||
use masking::Maskable;
|
||||
use router_env::metrics::add_attributes;
|
||||
use serde_json::json;
|
||||
|
||||
use crate::{
|
||||
@ -65,11 +64,8 @@ pub trait ConnectorIntegrationV2<Flow, ResourceCommonData, Req, Resp>:
|
||||
&self,
|
||||
_req: &RouterDataV2<Flow, ResourceCommonData, Req, Resp>,
|
||||
) -> CustomResult<String, errors::ConnectorError> {
|
||||
metrics::UNIMPLEMENTED_FLOW.add(
|
||||
&metrics::CONTEXT,
|
||||
1,
|
||||
&add_attributes([("connector", self.id())]),
|
||||
);
|
||||
metrics::UNIMPLEMENTED_FLOW
|
||||
.add(1, router_env::metric_attributes!(("connector", self.id())));
|
||||
Ok(String::new())
|
||||
}
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
//! Metrics interface
|
||||
|
||||
use router_env::{counter_metric, global_meter, metrics_context};
|
||||
use router_env::{counter_metric, global_meter};
|
||||
|
||||
metrics_context!(CONTEXT);
|
||||
global_meter!(GLOBAL_METER, "ROUTER_API");
|
||||
|
||||
counter_metric!(UNIMPLEMENTED_FLOW, GLOBAL_METER);
|
||||
|
||||
Reference in New Issue
Block a user