DataDog / dd-trace-py

Datadog Python APM Client

Home Page:https://ddtrace.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datadog tracer SqlAlchemy integration exception

riyadparvez opened this issue · comments

Summary of problem

We keep seeing this exception on our logs. This seems to be coming from datadog integration of sqlalchemy

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/ddtrace/contrib/dbapi/__init__.py", line 125, in _trace_method
    return method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.ProgrammingError: can't adapt type 'TextClause'

Which version of dd-trace-py are you using?

ddsketch=3.0.1
ddtrace=2.8.0

Which version of pip are you using?

Which libraries and their versions are you using?

flask-sqlalchemy=3.1.1
sqlalchemy=2.0.29
sqlalchemy-utils=0.41.2

How can we reproduce your problem?

What is the result that you get?

What is the result that you expected?