Python Agent v2.3.1
December 2, 2026
Common
-
NewAdded thecustom_trace_header_keyoption- 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.
- Type: String, default:
-
NewAdded thegevent_native_sender_enabledoption- 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.
- Type: Boolean, default:
-
ChangedUpdated the Go Relay agent -
FixedFixedRecursionErrorand connection pool exhaustion when using the synchronousConnectionPoolofpsycopg_pool -
FixedFixed SQLAlchemy (postgresql+psycopg) connections failing when psycopg was instrumented -
FixedFixed 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_classbeing replaced with the default class.
- Fixed SQL steps not being collected when
-
FixedFixed connection string handling for psycopg / psycopg2- Fixed connections failing with URL-format strings, values containing quotes or
=, andconnect()calls without arguments. - Excluded passwords from DB connection steps.
- Fixed connections failing with URL-format strings, values containing quotes or
-
FixedFixed the psycopg / sqlite3 tracing module- Fixed SQL errors not being passed to the application and
execute()returningNone. - Fixed
TypeErrorwhen iterating a cursor withfor row in cur. - Fixed
AttributeErrorwhen a connection opened inside a transaction was closed outside it.
- Fixed SQL errors not being passed to the application and
-
FixedFixed active transactions accumulating without ending when the Celery broker reconnected -
FixedFixed 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