Skip to content

Add detached fan-out-instance error span test#179

Merged
chris-colinsky merged 1 commit into
mainfrom
chore/detached-fan-out-instance-error-test
Jun 23, 2026
Merged

Add detached fan-out-instance error span test#179
chris-colinsky merged 1 commit into
mainfrom
chore/detached-fan-out-instance-error-test

Conversation

@chris-colinsky

Copy link
Copy Markdown
Member

Adds a unit test guarding proposal 0061's detached-invocation error behavior for a raising detached fan-out instance: ERROR plus the error category plus an OTel exception event on the detached instance's own invocation span, and ERROR on the parent-trace fan-out node span.

Conformance fixture 008 case 3 covers only the detached-subgraph path, so the fan-out-instance path was implemented (it reuses the same detached-invocation propagation, keyed on the per-instance key) but unguarded on the python side. This is the v0.15.0 release-review item 2 follow-up.

Writing the test confirmed the behavior is correct: an initial cut mis-identified the span (a detached fan-out emits two spans named after the fan-out node, the parent node span and the detached instance's root span), so the final test keys off the raising inner node to locate the detached trace. Test-only; no behavior change.

Guards proposal 0061's detached-invocation error behavior for a raising
detached fan-out instance: ERROR plus the error category plus an OTel
exception event on the detached instance's own invocation span, and
ERROR on the parent-trace fan-out node span. Conformance fixture 008
case 3 covers only the detached-subgraph path; this fills the
fan-out-instance gap on the python side (the v0.15.0 release-review
item 2 follow-up).
Copilot AI review requested due to automatic review settings June 23, 2026 02:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a unit test to guard OpenTelemetry span error propagation semantics for detached fan-out instances (proposal 0061 §4.2), ensuring both the detached instance invocation span and the parent fan-out node span are marked ERROR, and that the detached invocation span carries the error category and an exception event.

Changes:

  • Add a new unit test that drives a detached fan-out instance failure and asserts span status/attributes/events on both the detached and parent traces.
  • Locate the detached trace by keying off the raising inner node span (compute) to disambiguate the two score spans emitted in detached fan-out mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chris-colinsky chris-colinsky merged commit b09d91c into main Jun 23, 2026
6 checks passed
@chris-colinsky chris-colinsky deleted the chore/detached-fan-out-instance-error-test branch June 23, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants