File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,11 +82,18 @@ async def test_crawler_instrumentor_capability(server_url: URL) -> None:
8282 assert telemetry_data [2 ]['context' ]['trace_id' ] != telemetry_data [1 ]['context' ]['trace_id' ]
8383
8484 # Crawler telemetry - all crawler spans will be in one trace as there is only one request in this test.
85- assert telemetry_data [3 ]['name' ] == '_execute_pre_navigation_hooks, action'
86- assert telemetry_data [3 ]['attributes' ]['code.function.name' ] == 'AbstractHttpCrawler._execute_pre_navigation_hooks'
85+ assert telemetry_data [3 ]['name' ] == '_manage_shared_navigation_timeout, action'
86+ assert (
87+ telemetry_data [3 ]['attributes' ]['code.function.name' ] == 'AbstractHttpCrawler._manage_shared_navigation_timeout'
88+ )
8789 assert telemetry_data [3 ]['attributes' ]['url.full' ] == str (server_url )
8890 assert telemetry_data [3 ]['resource' ]['attributes' ] == dict (resource .attributes )
8991
92+ assert telemetry_data [4 ]['name' ] == '_execute_pre_navigation_hooks, action'
93+ assert telemetry_data [4 ]['attributes' ]['code.function.name' ] == 'AbstractHttpCrawler._execute_pre_navigation_hooks'
94+ assert telemetry_data [4 ]['attributes' ]['url.full' ] == str (server_url )
95+ assert telemetry_data [4 ]['resource' ]['attributes' ] == dict (resource .attributes )
96+
9097 assert telemetry_data [- 1 ]['name' ] == '__run_task_function'
9198 assert telemetry_data [- 1 ]['attributes' ]['code.function.name' ] == 'BasicCrawler.__run_task_function'
9299 assert telemetry_data [- 1 ]['resource' ]['attributes' ] == dict (resource .attributes )
You can’t perform that action at this time.
0 commit comments