Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database/gdb:improve gdb trace for sql #3658

Closed
houseme opened this issue Jun 22, 2024 · 0 comments
Closed

database/gdb:improve gdb trace for sql #3658

houseme opened this issue Jun 22, 2024 · 0 comments
Assignees

Comments

@houseme
Copy link
Member

houseme commented Jun 22, 2024

Description

SQL 数据的统计依据是 Tagkey db.statement,例如: tracer.activeSpan.setTag("db.statement", "SELECT*FROM wuser _table");,

统一使用官方推荐的tagKey 存储运行的sql记录,移除trace events中的重复记录。

https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/sql.md

https://github.com/open-telemetry/semantic-conventions/blob/3b6ffe3e810e965d122c19fdcc07212a2ec854b7/CHANGELOG.md?plain=1#L935

https://github.com/open-telemetry/semantic-conventions/blob/3b6ffe3e810e965d122c19fdcc07212a2ec854b7/CHANGELOG.md?plain=1#L14

open-telemetry/semantic-conventions#716

open-telemetry/opentelemetry-go#5476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant