Merged
Conversation
cgillum
reviewed
May 5, 2025
bachuv
reviewed
May 5, 2025
Contributor
bachuv
left a comment
There was a problem hiding this comment.
Can you add a screenshot of a trace from Application Insights showing that a signal_entity call from a Python function creates the right trace?
Also, can you fix the linter issues that are showing up in the CI? Please reach out if you need help with this.
added 2 commits
May 5, 2025 20:20
bachuv
reviewed
May 21, 2025
added 2 commits
May 21, 2025 12:33
…automatic extraction
greenie-msft
pushed a commit
to greenie-msft/azure-functions-durable-python
that referenced
this pull request
Sep 25, 2025
* Adds support for distributed tracing for Durable entities in Python --------- Authored-by: Sophia Tevosyan <stevosyan@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds additional information passing to enable distributed tracing for entities.
DurableOrchestrationClient.signal_entitywas modified to pass the current trace context in its HTTP headers (similar to how is done in thestart_newcall) such that the trace for signaling the entity created in WebJobs can correctly be linked as a child of the client trace that triggered the signal entity request.OperationResultsuch that the traces can accurately capture the time it takes for the request to be completed (using theOperationResult.durationfield to calculate the end time).Note that for a client signaling an entity via
DurableOrchestrationClient.signal_entity, in order for this method to be able to obtain the current trace context, the user needs to actually start their own trace from their function app. An example is provided in this PR for a client starting an orchestration (the example code would be identical in this case, withclient.start_newreplaced byclient.signal_entity):Client Signaling an Entity
Which leads to the following trace

Orchestartion Calling/Signaling an Entity
Whereas starting the following orchestration
leads to the following trace
