Commit a11314c
authored
[Azure Functions] Skip instrumenting orchestrator functions (#7640)
## Summary of changes
`[PreserveContext]` on
`Microsoft.Azure.Functions.Worker.Pipeline.FunctionExecutionMiddleware.Invoke`
to force `ConfigureAwait(continueOnCapturedContext: true)` on returned
tasks
## Reason for change
Orchestrator functions have special constraints:
https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-code-constraints?tabs=csharp#orchestrator-code-constraints
We are currently breaking applications for users of Azure durable
functions, as we are interferring with the determinism of the
orchestrator functions by wrapping the returned tasks and continuing in
a different context.1 parent 4626c34 commit a11314c
File tree
1 file changed
+1
-0
lines changed- tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/Isolated
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments