[Bug]: root handler instrumentation misses the canonical OTel execution context
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 40/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java
- Domínio
- observability
Direção de pesquisa
Start with Java conformance PR #769, case22, and the LocalDurableTestRunner regression on main61f5d103. Trace the core/plugin lifecycle hooks and handler-thread behavior; done means root probes join the canonical trace in both views, context is restored across success, failure, suspension, and resume, and older combinations retain behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Expected behavior
User instrumentation in the root durable handler should join the canonical execution trace in both OTel views, including before/after nested operations and after resume. Preserve a valid same-trace ambient Lambda span; otherwise activate the view root (Workflow for execution view, Invocation for invocation view). Restore the previous context on the same handler thread on success, failure and suspension.
Actual behavior
The plugins select the canonical trace for SDK spans but never activate context around the root handler body. Nested callbacks have scopes, while root instrumentation sees either an invalid context or an unrelated ambient trace. SpanContext.isValid() alone does not detect the latter.
Java conformance PR #769, head078ce3b719f8bebf5fe5ab77a6f06c148fa3cf7f, exposes this in case22 on both views and both deployed backends (ADOT/X-Ray and Community/S3). Root probes conformance.handler, conformance.handler-restored, and conformance.handler-after-resume are absent from the canonical trace; nested callback probes pass. Deployed run: https://github.com/aws/aws-durable-execution-sdk-java/actions/runs/37079677202
A local public LocalDurableTestRunner regression also reproduces invalid root context without an agent on current main61f5d103, both sampled and unsampled, while the plugins already know the canonical trace. Supplying a different valid ambient trace reproduces incorrect trace membership.
Scope
Provide a focused nonbreaking core/plugin lifecycle capability. The scope must close on the handler thread: invocation end hooks can run on a different CompletableFuture completion thread. Preserve source/binary APIs, seven-component InvocationInfo, existing config/replay identities, released core/plugin combinations and separate plugin layers. Older cores may lack the new capability but must retain existing behavior. No major factory migration, handler-fixture parent binding, or weaker conformance assertions.
Related topology issue #644 handled SDK span parent selection, not root handler activation. #721 is the separate breaking plugin-lifetime migration. Coverage searches found no current implementation of this handler scope.
- Linguagem predominante
- Java
- Estrelas
- 28
- Forks
- 18
- Merge médio
- 16h 53min
- PRs com merge (30d)
- 63
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 aws/aws-durable-execution-sdk-java
-
bug pkg:conformance
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
aws/aws-durable-execution-sdk-java#844 ·
Mantenedores costumam responder em até 1 dia
-
documentation pkg:sdk
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
aws/aws-durable-execution-sdk-java#645 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
aws/aws-durable-execution-sdk-java#300 ·
Mantenedores costumam responder em até 1 dia
-
bug pkg:telemetry
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 54/100
aws/aws-durable-execution-sdk-java#877 ·
Mantenedores costumam responder em até 1 dia
-
[Feature]: Add a unified OtelPlugin factory with execution defaultsTalvez já em andamento @zhongkechen assumiu há 1 dia. Abertaenhancement needs-triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
aws/aws-durable-execution-sdk-java#872 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de aws/aws-durable-execution-sdk-java
Issues semelhantes
-
needs-area-label
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 2 dias
-
enhancement Java macOS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
freerouting/freerouting#1079 ·
Mantenedores costumam responder em até 4 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
apache/maven-enforcer#1074 ·
Mantenedores costumam responder em até 1 dia
-
Gradle liquibaseDiffChangelog drops jhi_date_time_wrapperTalvez já em andamento @mraible assumiu hoje. Abertaarea: triage theme: undefined
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
jhipster/generator-jhipster#35998 ·
Mantenedores costumam responder em até 1 dia