fix(otel): keep continuation spans within invocation - #601
Merged
Conversation
SilanHe
approved these changes
Aug 6, 2026
zhongkechen
requested a deployment
to
ai-pr-review-runtime
August 6, 2026 21:34 — with
GitHub Actions
Waiting
zhongkechen
requested a deployment
to
ai-pr-review-runtime
August 6, 2026 21:34 — with
GitHub Actions
Waiting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue Link, if available
Observed in the OpenTelemetry invocation-view conformance run: https://github.com/aws/aws-durable-execution-conformance-tests/actions/runs/31059801062/job/92519884437?pr=69
Description
Invocation-view continuation spans were backdated to the logical operation start timestamp from a prior Lambda invocation. Because the continuation is parented to the current invocation span, this made it start before its parent and overlap the original STARTED operation span.
Allow continuation spans to use their creation time in the current invocation. The execution-view plugin continues to use the original operation timestamp for its single logical cross-invocation span. The unit test now verifies that a continuation is parented to and temporally contained by the current invocation span.
Demo/Screenshots
Not applicable.
Checklist
Testing
Unit Tests
Updated
InvocationOtelPluginTestwith a regression test covering continuation span parentage and temporal containment.Integration Tests
Ran
mvn -pl otel-plugin -am test: reactor build succeeded, including all 148 OpenTelemetry plugin tests and 17 invocation plugin integration tests. No new integration test was needed for this isolated span timestamp change.Examples
Not applicable.