@@ -138,7 +138,7 @@ def _normalize_git_sha(v: str) -> str:
138138 return s [:9 ]
139139 return s
140140
141- def _detect_git_commit () -> str | None :
141+ def _detect_git_commit ():
142142 """
143143 Best-effort commit detection:
144144 1) common CI env vars
@@ -254,7 +254,7 @@ def _init_otel_datadog() -> None:
254254
255255 endpoint = _build_otlp_traces_endpoint ()
256256
257- exporter = OTLPSpanExporter (endpoint = endpoint , timeout = 0.5 )
257+ exporter = OTLPSpanExporter (endpoint = endpoint , timeout = 2 )
258258
259259 # Wrap exporter so any export failure disables tracing for this container
260260 from opentelemetry .sdk .trace .export import SpanExportResult
@@ -327,7 +327,7 @@ def _parse_http_status_code(status):
327327_E2E_RUNID_HEADER = "X-EasyCLA-E2E-RunID"
328328_E2E_LEGACY_HEADER = "X-E2E-TEST"
329329
330- def _extract_e2e_marker (headers ) -> tuple [ bool , str ] :
330+ def _extract_e2e_marker (headers ):
331331 """
332332 CI/E2E request marker so we can tag/filter test noise in logs and traces.
333333 Returns (is_e2e, run_id).
@@ -547,15 +547,15 @@ def process_data_api_logs(request, response):
547547 API request metadata is logged to the DynamoDB-backed APILog model
548548 for all requests.
549549 """
550- cla .log .info ('LG:api-request-path:' + request .path + suffix )
550+ cla .log .info ('LG:api-request-path:' + request .path )
551551 # Mark E2E calls in the log line so jq-based rollups can filter them out easily.
552552 e2e , e2e_run_id = _extract_e2e_marker (getattr (request , "headers" , None ) or {})
553553 suffix = ""
554554 if e2e :
555555 suffix = " e2e=1"
556556 if e2e_run_id :
557557 suffix += f" e2e_run_id={ e2e_run_id } "
558- cla .log .info ('LG:e2e-request-path:' + request .path + suffix )
558+ cla .log .info ('LG:e2e-request-path:' + request .path + suffix )
559559
560560 # DynamoDB API logging (conditional)
561561 if _enabled_by_env_or_stage ("DDB_API_LOGGING" , default_by_stage = (True , False )):
0 commit comments