We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d57cdc commit 3cd74b6Copy full SHA for 3cd74b6
drift/instrumentation/utils/serialization.py
@@ -91,6 +91,12 @@ def serialize_value(val: Any) -> Any:
91
# Serialize ipaddress types to string for inet/cidr PostgreSQL columns
92
# These are returned by psycopg when querying inet and cidr columns
93
return str(val)
94
+ elif hasattr(val, "getquoted"):
95
+ if hasattr(val, "adapted"):
96
+ return serialize_value(val.adapted)
97
+ elif hasattr(val, "addr"):
98
+ return serialize_value(val.addr)
99
+ return str(val)
100
elif isinstance(val, memoryview):
101
# Convert memoryview to bytes first, then serialize
102
return _serialize_bytes(bytes(val))
0 commit comments