-
Hi @nirga, I have recently experimenting with My Python app also uses SQLModel for interacting with my SQL database. Do you have any future plans for trace re. SQLModel, Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @k1eran! Looks like SQLModel is using SQLAlchemy behind the scenes, which is something we instrument. Were you able to see SQL-related spans? |
Beta Was this translation helpful? Give feedback.
-
Thanks @k1eran, I think this has to do with the behavior of the SQLAlchemy instrumentation provided by OpenTelemetry. We'll look into providing a better support for this, but if you can open an issue and provide a small snippet that can be extremely helpful 🙏 |
Beta Was this translation helpful? Give feedback.
@nirga When I enable my underlying db adapter (
PsycopgInstrumentor().instrument()
) used below SQLAlchemy I realise I now get pretty good tracing (with the SQL commands)Thanks for pointing me in right direction.
Cheers. Kieran.
PS. I think I edited my earlier reply at same time you replied; I THINK this whole thread still makes sense however to others.