Skip to content

fix(otel): Use operation startTimestamp for continuation spans#542

Merged
SilanHe merged 1 commit into
mainfrom
fix/otel-continuation-span-start-time
Jul 16, 2026
Merged

fix(otel): Use operation startTimestamp for continuation spans#542
SilanHe merged 1 commit into
mainfrom
fix/otel-continuation-span-start-time

Conversation

@SilanHe

@SilanHe SilanHe commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

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

Description

Set the span start time to the operation's original startTimestamp when creating continuation spans in onOperationEnd. Previously the span defaulted to the current wall-clock time, which misrepresented the actual duration of cross-invocation operations.

Add a test to verify the continuation span uses the operation's startTimestamp.

Demo/Screenshots

n/a

Checklist

  • I have filled out every section of the PR template
  • I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes? yes

Integration Tests

Have integration tests been written for these changes? no

Examples

Has a new example been added for the change? (if applicable)

no

Set the span start time to the operation's original startTimestamp when
creating continuation spans in onOperationEnd. Previously the span
defaulted to the current wall-clock time, which misrepresented the
actual duration of cross-invocation operations.

Add a test to verify the continuation span uses the operation's
startTimestamp.
@SilanHe
SilanHe marked this pull request as ready for review July 16, 2026 21:43
@SilanHe
SilanHe requested a review from a team July 16, 2026 21:43
@SilanHe
SilanHe merged commit a22b4c6 into main Jul 16, 2026
6 checks passed
@SilanHe
SilanHe deleted the fix/otel-continuation-span-start-time branch July 16, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants