Add option to remove params from traces#3045
Conversation
|
I used |
|
thank you! just to confirm, you used the shell script to regenerate sea-orm-sync right? |
Oh, sorry, I updated the sync side manually. I didn't know there was a script to use before. I’ll rerun the script and update the PR |
ab2cf80 to
b1ec898
Compare
|
#2941 wanted was to only remove the parameter. This change just disables statement recording in spans, so it doesn’t seem to fully resolve that issue. |
Yeah the current change only adds a switch for whether After rechecking the current implementation and testing it locally, it looks like the tracing span path records So I may be targeting a different concern than #2941 originally described. Does #2941 refer to another current path that records rendered SQL with parameters, or to an older behavior? |
|
Perhaps it's because of tracing::instrument. |
Thanks! After looking into it again, I think the real concern in #2941 may be If that’s the case, then this PR may be addressing a separate concern: whether raw SQL is recorded into Would you prefer me to keep this PR scoped as that separate option, or would it be better to rework/replace it with a focused fix for the |
|
Keep this PR and open a separate one for the tracing::instrument issue. |
PR Info
New Features
ConnectOptions::tracing_statement_logging(bool)to let users disabledb.statementrecording whentracing-spansis enabled.Changes
DatabaseConnectionandDatabaseTransaction.db.statementis still recorded unless explicitly disabled.