Repository navigation
fix: align the OpenTelemetry instrumentation scope with Durable Task SDKs - #372
Open
JasonWinters (richarmurray6y8-creator) wants to merge 2 commits into
Conversation
Copilot started reviewing on behalf of
JasonWinters (richarmurray6y8-creator)
November 30, 2026 00:53
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Azure Managed provider changelog is missing migration guidance for updating tracing scope filters from durabletask to Microsoft.DurableTask.
1 open issue
What changed in this PR
Aligns Python Durable Task spans with the shared Microsoft.DurableTask OpenTelemetry instrumentation scope, addressing #369 and simplifying cross-language tracing filters.
Changes:
- Renames the instrumentation scope and documents migration for existing filters.
- Adds scope assertions for regular and deferred spans.
- Updates the Functions tracing test to distinguish host and worker spans by
service.name.
| File | Description |
|---|---|
tests/durabletask/test_tracing.py |
Verifies the scope on regular and deferred spans. |
tests/azure-functions-durable/e2e/test_distributed_tracing_e2e.py |
Uses worker resource identity to detect duplicate lifecycle spans. |
tests/azure-functions-durable/e2e/_harness.py |
Preserves resource metadata on collected spans. |
durabletask/internal/tracing.py |
Sets the scope to Microsoft.DurableTask. |
CHANGELOG.md |
Documents the scope change and filter migration. |
Review effort: Balanced
Comment on lines
+19
to
+21
| - Python SDK spans now use the `Microsoft.DurableTask` OpenTelemetry instrumentation | ||
| scope. Update queries, dashboards, and collector filters that use the previous | ||
| `durabletask` scope. |
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.

Summary
Fixes #369. Python Durable Task spans now use the
Microsoft.DurableTaskinstrumentation scope documented for the portable SDKs. The changelog explains how to update queries and collector filters that match the previousdurabletaskscope.The Azure Functions tracing test distinguishes worker spans using their configured
service.name, so it can still detect duplicate Python lifecycle spans when the host and worker share a scope name.Verification
Microsoft.DurableTaskand the Python worker resource.Serialization compatibility
The change applies to OpenTelemetry scope metadata.