The GitHub Actions job "Tests" on airflow.git/v3-2-test has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
381297ec0fdf60cea145065a1af070dd20fe1b3b / github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
[v3-2-test] Stringify task_instance.id when setting OTEL span attribute 
(#66053) (#66645)

* Stringify task_instance.id when setting OTEL span attribute

The execution API's _emit_task_span() was setting the
"airflow.task_instance.id" span attribute to the raw UUID object.
The OTEL SDK only accepts str/bytes/int/float/bool attribute values
(or homogeneous sequences thereof), so it dropped the attribute and
logged a warning per task state transition:

    Invalid type UUID for attribute 'airflow.task_instance.id'
    value. Expected one of ['bool', 'str', 'bytes', 'int', 'float']
    or a sequence of those types

The fix is to stringify the UUID, matching the convention already
used in the same module (e.g. bind_contextvars(ti_id=str(...))).

The bug was introduced in #63839 and ships in 3.2.0 / 3.2.1.



* Add newsfragment for OTEL UUID attribute fix



* Drop newsfragment per review feedback

Reviewer (henry3260) noted the newsfragment isn't needed for this fix.

---------
(cherry picked from commit 8310049a654d2762681564ce98c51f10c1020fd2)

Signed-off-by: Chris <[email protected]>
Co-authored-by: Chris Premus <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/25618775742

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to