@@ -962,7 +962,7 @@ def test_create_span_and_get_observation():
962962 sleep (2 )
963963
964964 # Use API to fetch the observation by ID
965- observation = get_api ().observations .get (span_id )
965+ observation = get_api ().legacy . observations_v1 .get (span_id )
966966
967967 # Verify observation properties
968968 assert observation .name == "span"
@@ -1476,7 +1476,7 @@ def test_kwargs():
14761476 sleep (2 )
14771477
14781478 # Retrieve and verify
1479- observation = get_api ().observations .get (span_id )
1479+ observation = get_api ().legacy . observations_v1 .get (span_id )
14801480
14811481 # Verify kwargs were properly set as attributes
14821482 assert observation .start_time is not None
@@ -1740,7 +1740,7 @@ def test_get_observation():
17401740 sleep (2 )
17411741
17421742 # Fetch the observation using the API
1743- observation = get_api ().observations .get (generation_id )
1743+ observation = get_api ().legacy . observations_v1 .get (generation_id )
17441744
17451745 # Verify observation properties
17461746 assert observation .id == generation_id
@@ -1804,7 +1804,7 @@ def test_get_trace_not_found():
18041804def test_get_observation_not_found ():
18051805 # Attempt to fetch a non-existent observation using the API
18061806 with pytest .raises (Exception ):
1807- get_api ().observations .get (create_uuid ())
1807+ get_api ().legacy . observations_v1 .get (create_uuid ())
18081808
18091809
18101810def test_get_traces_empty ():
0 commit comments