fix(multitenancy): consistently use tenant nomenclature everywhere (#6389)

This commit is contained in:
Kartikeya Hegde
2024-10-28 20:37:59 +05:30
committed by GitHub
parent 7fe22e09a9
commit aecd5eea3d
13 changed files with 113 additions and 46 deletions

View File

@ -147,10 +147,11 @@ where
.and_then(|i| i.to_str().ok())
.map(|s| s.to_owned());
let response_fut = self.service.call(req);
let tenant_id_clone = tenant_id.clone();
Box::pin(
async move {
if let Some(tenant_id) = tenant_id {
router_env::tracing::Span::current().record("tenant_id", &tenant_id);
if let Some(tenant) = tenant_id_clone {
router_env::tracing::Span::current().record("tenant_id", tenant);
}
let response = response_fut.await;
router_env::tracing::Span::current().record("golden_log_line", true);
@ -166,7 +167,7 @@ where
status_code = Empty,
flow = "UNKNOWN",
golden_log_line = Empty,
tenant_id = "ta"
tenant_id = &tenant_id
)
.or_current(),
),