Skip to content

Create a span for triggers#63565

Open
dstandish wants to merge 4 commits intoapache:mainfrom
astronomer:triggerer-spans
Open

Create a span for triggers#63565
dstandish wants to merge 4 commits intoapache:mainfrom
astronomer:triggerer-spans

Conversation

@dstandish
Copy link
Contributor

@dstandish dstandish commented Mar 13, 2026

When a trigger runs, it now creates a span that is nested in the dag run span.

@dstandish dstandish changed the title Add OTel trace context propagation to triggerer spans Create a span for triggers Mar 13, 2026
When a trigger runs, it now creates a span that is nested in the dag run span.
- Add explicit type annotation (dict[str, str | int]) for span attributes
  to fix MyPy error: try_number and map_index are ints, OTel supports them
- Add task_instance=None to mock triggers in test_run_inline_trigger_canceled
  and test_run_inline_trigger_timeout to fix AttributeError when run_trigger
  accesses trigger.task_instance for span creation

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant