Records written during a gateway request carry the route <unmatched>
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Domínio
- backend, observability
Direção de pesquisa
Read the dependency declarations and uv.lock files in the six packages listed in the issue, then inspect the gateway and entrypoint tests. Update the observability requirement and relock each affected package. Done when every lock holds version 3.0.6 and tests confirm the matched route on the recorded exception and backend response event.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
Every record the gateway writes while a FastAPI endpoint runs (from record_exception, event or log) carries http.route = <unmatched>, not the route template such as /jobs/{job_id}. The entrypoint's records have the same problem. The daily telemetry error report therefore groups gateway exceptions under <unmatched>; see PolicyEngine/policyengine-api#4218 (a ValueError group whose most frequent route is <unmatched>).
Cause
policyengine-observability 3.0.4's FastAPI middleware begins the request before FastAPI matches the route, and records written during the endpoint copy the route stored at that moment. PolicyEngine/policyengine-observability#40 fixed this in 3.0.5 (released 2026-10-27): the runtime now reads the matched route each time it writes a record. Every uv.lock on main still locks 3.0.4, and every pyproject.toml allows >=3.0.4,<4.
Fix
Require policyengine-observability 3.0.6 (the latest) in every package that depends on it, and relock every lock that holds it:
libs/policyengine-simulation-observabilitylibs/policyengine-simulation-contract(lock only)libs/policyengine-stage12-persistence(lock only)projects/policyengine-simulation-entryprojects/policyengine-simulation-executorprojects/policyengine-simulation-gateway
3.0.6 changes nothing else the services use: its only change after 3.0.5 is a newer certifi in the observability repository's own uv.lock, which does not affect the package's requirements.
Done when
- Every lock holds policyengine-observability 3.0.6.
- A gateway test shows that an exception recorded while
GET /jobs/{job_id}runs carrieshttp.route=/jobs/{job_id}, and an entrypoint test shows the same for its backend response event.
- Linguagem predominante
- Python
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 2d 6min
- PRs com merge (30d)
- 88
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/policyengine-sim-api
-
Update policyengine to 6.7.3Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Mantenedores costumam responder em até 2 dias
-
Integration tests fail due to missing UV virtual environment setupTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Mantenedores costumam responder em até 2 dias
-
Retry run-time dataset downloads, and move latest only after a deploy's checksTalvez já em andamento @anth-volk assumiu há 1 dia. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
PolicyEngine/policyengine-sim-api#1022 ·
Mantenedores costumam responder em até 2 dias
-
Update policyengine to 6.15.0Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
PolicyEngine/policyengine-sim-api#1014 ·
Mantenedores costumam responder em até 2 dias
-
Move the simulation executor to policyengine.py 6.14.0 and keep accepting US 2022 and 2023Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-sim-api#1012 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de PolicyEngine/policyengine-sim-api
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
igormcsouza/tether#278 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 91/100
aws-samples/sample-per-model-bedrock#803 ·
Mantenedores costumam responder em até 1 dia
-
documentation p1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
huggingface/accelerate#4511 ·
Mantenedores costumam responder em até 1 dia
-
follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia