Skip to content

Commit

Permalink
updated condition to create StartOrchestrationOptions and set parent …
Browse files Browse the repository at this point in the history
…trace id
  • Loading branch information
bachuv committed Dec 17, 2024
1 parent 312f31b commit 15999ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override Task<string> ScheduleNewOrchestrationInstanceAsync(
CancellationToken cancellation = default)
{
Activity? currActivity = Activity.Current;
if (currActivity != null)
if (options == null && options?.ParentTraceId == null && currActivity != null)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 81 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'StartOrchestrationOptions' does not contain a definition for 'ParentTraceId' and no accessible extension method 'ParentTraceId' accepting a first argument of type 'StartOrchestrationOptions' could be found (are you missing a using directive or an assembly reference?)
{
options = new StartOrchestrationOptions(ParentTraceId: currActivity?.Id?.ToString());

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'

Check failure on line 83 in src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The best overload for 'StartOrchestrationOptions' does not have a parameter named 'ParentTraceId'
}
Expand Down

0 comments on commit 15999ad

Please sign in to comment.