fix(otel): read auth phase span opt-in headers via safe accessor

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-29 12:11:44 +00:00
parent 71684cfcdf
commit be7734d726

View file

@ -3333,7 +3333,7 @@ async def user_api_key_auth(
with (
phase_span(
f"auth {route}",
redact_content=request_opts_into_message_redaction(request.headers, request_data),
redact_content=request_opts_into_message_redaction(_safe_get_request_headers(request), request_data),
),
spend_counter_batch_scope(_spend_counter_redis_cache()),
):