Skip to content

Flaky Test [Initializing / Test / Python-pypy-3-2 / test_httpx_instrumentation_via_client – tests.instrumentation.httpx_tests] #1401

@ghost

Description

Flaky Test

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

No one assigned

    Labels

    agent-pythonci-reportedIssues that have been automatically reported from the CIflaky-testUnstable or unreliable test cases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions