Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runID to step.invoke() when the run is scheduled #1360

Merged
merged 8 commits into from
May 16, 2024
Merged

Conversation

darwin67
Copy link
Collaborator

@darwin67 darwin67 commented May 15, 2024

Description

Annotate the step.invoke span with the target runID, so it can be used as reference when showing the trace.
This mainly helps with in-process runs where the invoke target might not have finished yet.

This PR also tweaks the wait virtual span to make sure it's reconstruction works as expected.

Type of change (choose one)

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Check our Pull Request Guidelines

Copy link

linear bot commented May 15, 2024

Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
ui ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 6:58am

pkg/execution/executor/executor.go Show resolved Hide resolved
Comment on lines 276 to 285
InvokeFnID: opts.FnID,
InvokeCorrelationId: correlationID,
InvokeSpanID: spanID,
InvokeTimestamp: opts.SpanTimestamp,
InvokeExpiresAt: opts.ExpiresAt,
InvokeGroupID: opts.GroupID,
InvokeDisplayName: opts.DisplayName,
SourceAppID: opts.SourceAppID,
SourceFnID: opts.SourceFnID,
SourceFnVersion: opts.SourceFnVersion,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes perfect sense, though it's a shame we have to push so much data into the event, as it's visible to users and has mostly a tonne of concepts they don't otherwise have access to.

pkg/consts/otel.go Dismissed Show dismissed Hide dismissed
pkg/consts/otel.go Dismissed Show dismissed Hide dismissed
pkg/consts/otel.go Dismissed Show dismissed Hide dismissed
pkg/consts/otel.go Dismissed Show dismissed Hide dismissed
pkg/consts/otel.go Dismissed Show dismissed Hide dismissed
@darwin67 darwin67 force-pushed the darwin/INN-3034 branch 2 times, most recently from 18bdf06 to 213dc81 Compare May 16, 2024 07:07
@darwin67 darwin67 merged commit 8546316 into main May 16, 2024
17 of 18 checks passed
@darwin67 darwin67 deleted the darwin/INN-3034 branch May 16, 2024 07:16
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.

None yet

2 participants