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 parent trace context information when scheduling an orchestration #358

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bachuv
Copy link
Contributor

@bachuv bachuv commented Dec 17, 2024

These changes send trace context information about the client function when scheduling the orchestration. The parent's traceId is sent through StartOrchestrationOptions.

@@ -100,4 +100,5 @@ public SubOrchestrationOptions(TaskOptions options, string? instanceId = null)
/// The time when the orchestration instance should start executing. If not specified or if a date-time in the past
/// is specified, the orchestration instance will be scheduled immediately.
/// </param>
public record StartOrchestrationOptions(string? InstanceId = null, DateTimeOffset? StartAt = null);
/// <param name="ParentTraceId">Parent Trace Id.</param>
public record StartOrchestrationOptions(string? InstanceId = null, DateTimeOffset? StartAt = null, string? ParentTraceId = null);
Copy link
Member

Choose a reason for hiding this comment

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

We should not include trace information in the public API. Capturing of trace details should be done implicitly in the implementation by checking Activity.Current.

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.

2 participants