Skip to content

Wrap TaskInstance.id span attr in str#64566

Open
dstandish wants to merge 1 commit intoapache:mainfrom
astronomer:wrap-taskinstance.id-span-attr-in-str
Open

Wrap TaskInstance.id span attr in str#64566
dstandish wants to merge 1 commit intoapache:mainfrom
astronomer:wrap-taskinstance.id-span-attr-in-str

Conversation

@dstandish
Copy link
Copy Markdown
Contributor

This is necessary because span attr has to be a primitive

This is necessary because span attr has to be a primitive

(cherry picked from commit 935f819)
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ensures OpenTelemetry span attributes in the Execution API route use primitive types by converting TaskInstance.id to a string before setting it as a span attribute.

Changes:

  • Wraps ti.id with str() when setting the airflow.task_instance.id span attribute.

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.

2 participants