xBis7 commented on code in PR #63839:
URL: https://github.com/apache/airflow/pull/63839#discussion_r2954445878
##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -431,6 +436,35 @@ def ti_update_state(
)
+def _emit_task_span(ti, state):
+ log.info("making task span", ti=ti)
+ log.info("ti.context_carrier", context_carrier=ti.context_carrier)
+ ctx = TraceContextTextMapPropagator().extract(ti.context_carrier)
+ span = trace.get_current_span(context=ctx)
+ span_context = span.get_span_context()
+ with override_ids(span_context.trace_id, span_context.span_id):
+ log.info("overriding ids", trace_id=span_context.trace_id,
span_id=span_context.span_id)
+ if not ti.start_date:
+ log.warning("ti has no start date", ti=ti)
+ span = tracer.start_span(
+ name=f"task_run.{ti.task_id}",
Review Comment:
So, `worker_run` is when it's in the worker and `trigger_run` is when it
goes to the triggerer?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]