Repository navigation
fix(dify-agent): handle non-recording application tracing parents - #44803
Merged
Merged
Conversation
linw1995
approved these changes
Oct 26, 2026
1 task done
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.
Workflow Agent execution fails before its first model call when the ambient platform span is a Logfire
ReadableSpanwrapper around an OpenTelemetryNonRecordingSpan._ApplicationRunTracerassumes everyReadableSpanexposesattributes, causing anAttributeErrorwhile selecting the invocation parent. This also prevents the collector's initialization-failure fallback from creating a span.Treat a wrapper without attributes as unable to prove invocation ownership and use the existing API-issued trace ID and parent span. Attributed descendants belonging to the current invocation keep their hierarchy. No API contract, dependency lock, or sampling/content policy changes.
Validation:
service.instance.idexposes a separate isolation assumption; this patch does not change that provider logic.Found during staging regression after #44701 reached the environment via saas-deploy #1172. Successful Workflow inline/reference execution and native provider receipt still require deployment and end-to-end revalidation; local tests are not claimed as a staging acceptance pass.