- Notifications
You must be signed in to change notification settings - Fork 231
Closed
Labels
agent-pythonci-reportedIssues that have been automatically reported from the CIIssues that have been automatically reported from the CIflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.

Description
Flaky Test
- Test Name:
Initializing / Test / Python-pypy-3-2 / test_httpx_instrumentation_via_client – tests.instrumentation.httpx_tests
- Artifact Link: https://apm-ci.elastic.co/blue/organizations/jenkins/apm-agent-python%2Fapm-agent-python-mbp%2FPR-705/detail/PR-705/116/
- PR: Support capturing spans from code run in an event loop executor #705
- Commit: e2e7239
Error details
AssertionError: assert "traceparent" in EnvironHeaders([("Host", "127.0.0.1:38837"), ("Accept", "*/*"), ("Accept-Encoding", "gzip, deflate"), ("Connection", "keep-alive"), ("User-Agent", "python-httpx/0.21.0")]) + where "traceparent" = constants.TRACEPARENT_HEADER_NAME
Stack Trace
instrument = None elasticapm_client = <tests.fixtures.TempStoreClient object at 0x0000000006a27d70> waiting_httpserver = <ContentServer(<class "pytest_localserver.http.ContentServer">, started 139883109521152)> def test_httpx_instrumentation_via_client(instrument, elasticapm_client, waiting_httpserver): waiting_httpserver.serve_content("") url = waiting_httpserver.url + "/hello_world" elasticapm_client.begin_transaction("transaction.test") with capture_span("test_request", "test"): c = httpx.Client() c.get(url, **allow_redirects) elasticapm_client.end_transaction("MyView") transactions = elasticapm_client.events[TRANSACTION] spans = elasticapm_client.spans_for_transaction(transactions[0]) assert spans[0]["name"].startswith("GET 127.0.0.1:") assert url == spans[0]["context"]["http"]["url"] headers = waiting_httpserver.requests[0].headers > assert constants.TRACEPARENT_HEADER_NAME in headers E AssertionError: assert "traceparent" in EnvironHeaders([("Host", "127.0.0.1:38837"), ("Accept", "*/*"), ("Accept-Encoding", "gzip, deflate"), ("Connection", "keep-alive"), ("User-Agent", "python-httpx/0.21.0")]) E + where "traceparent" = constants.TRACEPARENT_HEADER_NAME tests/instrumentation/httpx_tests.py:101: AssertionError
Metadata
Metadata
Assignees
Labels
agent-pythonci-reportedIssues that have been automatically reported from the CIIssues that have been automatically reported from the CIflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.