mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
build(deps): bump opentelemetry crates to 0.27 (#6774)
This commit is contained in:
@ -3,7 +3,7 @@ use common_utils::date_time;
|
||||
use diesel_models::{api_keys::ApiKey, enums as storage_enums};
|
||||
use error_stack::{report, ResultExt};
|
||||
use masking::{PeekInterface, StrongSecret};
|
||||
use router_env::{instrument, metrics::add_attributes, tracing};
|
||||
use router_env::{instrument, tracing};
|
||||
|
||||
use crate::{
|
||||
configs::settings,
|
||||
@ -160,9 +160,8 @@ pub async fn create_api_key(
|
||||
);
|
||||
|
||||
metrics::API_KEY_CREATED.add(
|
||||
&metrics::CONTEXT,
|
||||
1,
|
||||
&add_attributes([("merchant", merchant_id.get_string_repr().to_owned())]),
|
||||
router_env::metric_attributes!(("merchant", merchant_id.clone())),
|
||||
);
|
||||
|
||||
// Add process to process_tracker for email reminder, only if expiry is set to future date
|
||||
@ -244,11 +243,7 @@ pub async fn add_api_key_expiry_task(
|
||||
api_key.key_id
|
||||
)
|
||||
})?;
|
||||
metrics::TASKS_ADDED_COUNT.add(
|
||||
&metrics::CONTEXT,
|
||||
1,
|
||||
&add_attributes([("flow", "ApiKeyExpiry")]),
|
||||
);
|
||||
metrics::TASKS_ADDED_COUNT.add(1, router_env::metric_attributes!(("flow", "ApiKeyExpiry")));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@ -456,7 +451,7 @@ pub async fn revoke_api_key(
|
||||
);
|
||||
}
|
||||
|
||||
metrics::API_KEY_REVOKED.add(&metrics::CONTEXT, 1, &[]);
|
||||
metrics::API_KEY_REVOKED.add(1, &[]);
|
||||
|
||||
#[cfg(feature = "email")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user