jedcunningham commented on code in PR #63839:
URL: https://github.com/apache/airflow/pull/63839#discussion_r2976646513
##########
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py:
##########
@@ -3242,3 +3242,145 @@ def test_no_scope_defaults_to_execution(self, client,
session, create_task_insta
payload = {"state": "success", "end_date": "2024-10-31T13:00:00Z"}
resp = client.patch(f"/execution/task-instances/{ti.id}/state",
json=payload)
assert resp.status_code in [200, 204]
+
+
+class TestEmitTaskSpan:
+ """Tests for the _emit_task_span function in the execution API
task-instance route."""
+
+ @pytest.fixture(autouse=True)
+ def sdk_tracer_provider(self):
+ from opentelemetry.sdk.trace import TracerProvider
Review Comment:
Lets more these imports to top level, and only keep ones we really need at
this level.
--
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]