[BUG]: TypeError can't concat str to bytes
For postgres.query
span.
#13403
Labels
TypeError can't concat str to bytes
For postgres.query
span.
#13403
Tracer Version(s)
3.7.0
Python Version(s)
Python 3.12.3
Pip Version(s)
pip 25.1
Bug Report
ddtrace/internal/_encoding.pyx in ddtrace.internal._encoding.truncate_string at line 101
We did not see this error:
TypeError can't concat str to bytes
until upgrading from 3.6.0 to 3.7.0.Reproduction Code
I lowered the limits in
trace/_limits.py
.We use sqlalchemy that creates a postgres.query span where
span.resource = b'....'
(the resource is bytes). We now hit this branch: 5aa32d1#diff-23840af0f4cae717d33e76ce1d0f4766fcc2e1f46a52e9716f6632d984ddfb4cR28-R99Which causes the exception above.
Error Logs
Libraries in Use
sqlalchemy==2.0.35
psycopg2==2.9.10
Operating System
No response
The text was updated successfully, but these errors were encountered: