go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

hope to have traceid in sql trace and aliyun database dashboard

Open Danny5487401 opened this issue 3 years ago • 8 comments
trafficstars

Is your feature request related to a problem? Please describe. image

hope to add the traceinfo in future version after 1.3.5!

Danny5487401 avatar Aug 22 '22 10:08 Danny5487401

Added in v1.4.0, I remember.

kevwan avatar Aug 22 '22 11:08 kevwan

Added in v1.4.0, I remember. image image 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 image

Danny5487401 avatar Aug 23 '22 01:08 Danny5487401

Didn't submit details for security reasons. What kind of info you like to submit?

kevwan avatar Aug 23 '22 12:08 kevwan

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.

Danny5487401 avatar Aug 24 '22 03:08 Danny5487401

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 25 '23 01:08 github-actions[bot]

@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"

Danny5487401 avatar Aug 26 '23 01:08 Danny5487401

I hope to commit sql statement too, because Alibaba Cloud's database analytics function rely on it.

xuerbujia avatar Aug 29 '23 09:08 xuerbujia