You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "howardyoo (via GitHub)" <gi...@apache.org> on 2024/08/15 14:00:31 UTC
[I] Incorrect try number producing invalid span id for OTEL airflow [airflow]
howardyoo opened a new issue, #41501:
URL: https://github.com/apache/airflow/issues/41501
### Apache Airflow version
2.10.0rc1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
When OTEL Airflow is enabled, there are series of IDs for trace and span being generated.
Part of the ID generation process involves using 'try number' of the task instance to produce a unique ID representation of it. Try number has been somewhat unstable in Airflow, where many of its deficiencies were fixed in here: https://github.com/apache/airflow/pull/39336. Now, as try number issues are resolved, it is necessary to fix the OTEL airflow to not:
- increment or decrement try_number of task instance when generating span id
- increment or decrement try_number when instrumenting information related to task instance
Currently, the task instance contains span_id that may not be correct depending on the try_number.
### What you think should happen instead?
- spans containing span_id should reflect the correct try_number of the task instance
- information about try number is correctly displayed when emitting span
### How to reproduce
Run an example DAG file, and monitor the span id being generated. Observe that span id generated from the span link does not match that of task instance span due to the fact that task instance will have the try_number decremented conditionally.
### Operating System
All OS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Incorrect try number producing invalid span id for OTEL airflow [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #41501: Incorrect try number producing invalid span id for OTEL airflow
URL: https://github.com/apache/airflow/issues/41501
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org