Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore auth service sizing (#1772)

Will Hutchinson0f6395be0b09
diff --git a/infra/stacks/authentication-service/index.ts b/infra/stacks/authentication-service/index.ts
index 2bb57ba50c..b377ebe672 100644
--- a/infra/stacks/authentication-service/index.ts
+++ b/infra/stacks/authentication-service/index.ts
@@ -192,7 +192,7 @@ const service = new AuthenticationService('authentication-service', {
{ name: 'ENVIRONMENT', value: stack },
{
name: 'RUST_LOG',
- value: `authentication_service=${stack === 'prod' ? 'info' : 'trace'},tower_http=${stack === 'prod' ? 'info' : 'debug'},macro_auth=${stack === 'prod' ? 'info' : 'debug'},macro_middleware=${stack === 'prod' ? 'info' : 'debug'},github=${stack === 'prod' ? 'info' : 'debug'}`,
+ value: `authentication_service=${stack === 'prod' ? 'info' : 'trace'},tower_http=${stack === 'prod' ? 'info' : 'debug'},macro_auth=${stack === 'prod' ? 'info' : 'debug'},macro_middleware=${stack === 'prod' ? 'info' : 'debug'},github=${stack === 'prod' ? 'info' : 'debug'},fusionauth=debug`,
},
{
name: 'DATABASE_URL',
diff --git a/rust/cloud-storage/authentication_service/src/api/jwt/refresh.rs b/rust/cloud-storage/authentication_service/src/api/jwt/refresh.rs
index 41302f58d0..f8965e2538 100644
--- a/rust/cloud-storage/authentication_service/src/api/jwt/refresh.rs
+++ b/rust/cloud-storage/authentication_service/src/api/jwt/refresh.rs
@@ -113,6 +113,7 @@ pub async fn handler(
// return Err(RefreshError::RefreshInProgress);
// }
+ let start_time = std::time::Instant::now();
let (access_token, refresh_token) = auth_client
.refresh_token(&token_context.access_token, &token_context.refresh_token)
.await
@@ -124,6 +125,8 @@ pub async fn handler(
}
})?;
+ tracing::info!(time_taken=?start_time.elapsed(), "refresh token time");
+
// Add in cookies to response
cookies.add(create_access_token_cookie(&access_token));
cookies.add(create_refresh_token_cookie(&refresh_token));