How to log the actual SQL queries in ActiveRecord? #1409
-
Hey, I'm used to seeing the actual SQL query in traces like |
Beta Was this translation helpful? Give feedback.
Answered by
arielvalentin
Feb 12, 2025
Replies: 1 comment 3 replies
-
The primary reason is that we instrument db driver spans. The driver spans are considered DB We prefer to adhere to semantic conventions, which means we target the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
edzhelyov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The primary reason is that we instrument db driver spans.
The driver spans are considered DB
client
spans whereas we treat active record spans as higher level internal spans.We prefer to adhere to semantic conventions, which means we target the
client
span for database attributes as opposed to higher level ORM spans (AR, Sequel, ROM, etc...).