Skip to main content

Python Agent v2.3.1

December 2, 2026

Common​

  • New Added the custom_trace_header_key option

    • Type: String, default: ""
    • Collects the specified HTTP header value as the custom TID in Transaction information > Record summary. Example: custom_trace_header_key=x-test-id
    • Transactions with the same header value are linked into one multi-transaction (MTID). If a different MTID is received through the WhaTap multi-transaction header, that value takes precedence.
  • New Added the gevent_native_sender_enabled option

    • Type: Boolean, default: false
    • Prevents transactions from appearing as Lost Connection in gevent worker environments, where transaction end information is not sent while a request stays inside a C extension module (such as cx_Oracle).
    • This option requires an application restart.
  • Changed Updated the Go Relay agent

  • Fixed Fixed RecursionError and connection pool exhaustion when using the synchronous ConnectionPool of psycopg_pool

  • Fixed Fixed SQLAlchemy (postgresql+psycopg) connections failing when psycopg was instrumented

  • Fixed Fixed the psycopg / psycopg_pool asynchronous tracing module

    • Fixed SQL steps not being collected when getconn() / putconn() was called directly on an async pool.
    • Fixed an in-use connection being returned to the pool when async with conn: was nested on a pool connection.
    • Fixed the connection class specified with connection_class being replaced with the default class.
  • Fixed Fixed connection string handling for psycopg / psycopg2

    • Fixed connections failing with URL-format strings, values containing quotes or =, and connect() calls without arguments.
    • Excluded passwords from DB connection steps.
  • Fixed Fixed the psycopg / sqlite3 tracing module

    • Fixed SQL errors not being passed to the application and execute() returning None.
    • Fixed TypeError when iterating a cursor with for row in cur.
    • Fixed AttributeError when a connection opened inside a transaction was closed outside it.
  • Fixed Fixed active transactions accumulating without ending when the Celery broker reconnected

  • Fixed Fixed handling of received multi-transaction headers

    • Fixed WhaTap multi-transaction headers sent by callers not being recognized in Django ASGI and Starlette, which prevented transactions from being linked as a multi-transaction.
    • Fixed caller project information missing from transactions called by other applications (such as Java).
    • Fixed request processing errors in WSGI-based frameworks (Flask, Django, etc.), Tornado, and Frappe when a malformed multi-transaction header was received.
Note

Agent download: whatap-python v2.3.1