go-zero
go-zero copied to clipboard
hope to have traceid in sql trace and aliyun database dashboard
Is your feature request related to a problem? Please describe.

hope to add the traceinfo in future version after 1.3.5!
Added in v1.4.0, I remember.
Added in v1.4.0, I remember.
![]()
Photos Above are the trace info in v1.4.0!
By the way, i have seen the original code in v1.4.0, which is not including any sql stmt log in the trace. Only print the sql stat in console! @kevwan

Didn't submit details for security reasons. What kind of info you like to submit?
Didn't submit details for security reasons. What kind of info you like to submit?
Ok. Hope to include the related sql database in the trace panel. From the trace panel , i can get the traceId , then get the sql log from the sls service searching by the trace id.
This issue is stale because it has been open for 30 days with no activity.
@kevwan hope to print sql like "/TRACE_3f5a0e4904d43b0632e260c2a1db3d28/SELECT t1.id, t1.external_type, t1.external_idFROM esdocownerstriggerlog t1WHERE t1.is_synced = 0ORDER BY t1.id ASCLIMIT 200"
I hope to commit sql statement too, because Alibaba Cloud's database analytics function rely on it.
Photos Above are the trace info in v1.4.0!