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

[pg + pg-pool] Update DB semantic conventions #116

Closed
dyladan opened this issue Jul 1, 2020 · 6 comments · Fixed by #467
Closed

[pg + pg-pool] Update DB semantic conventions #116

dyladan opened this issue Jul 1, 2020 · 6 comments · Fixed by #467
Labels
up-for-grabs Good for taking. Extra help will be provided by maintainers

Comments

@dyladan
Copy link
Member

dyladan commented Jul 1, 2020

open-telemetry/opentelemetry-specification#575

@naseemkullah
Copy link
Member

This may fall out of scope but would it make sense to have a shared opentelemetry-semantic-conventions package that exports the enum of all attribute names and such? If so should this be package be hosted in the core repo?

@dyladan
Copy link
Member Author

dyladan commented Jul 6, 2020

There is already such a package. https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-semantic-conventions

@naseemkullah
Copy link
Member

perfect!

@naseemkullah
Copy link
Member

@dyladan re: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/database.md#mysql

Please take note of span name and db statement.

Shall we proceed like as such? Currently span name is e.g.: mysql:query:SELECT, the value of db statement is that of span name and we have a custom attribute MYSQL_VALUES with the values. To adhere to spec, MYSQL_VALUES would be gone, they would be templated into the sql for db statement, and the non templated sql statement would be the span name.

If we proceed as per spec, should we worry about sanitization?

@dyladan
Copy link
Member Author

dyladan commented Aug 5, 2020

We should follow the spec. The spec does not require sanitization, so I think we leave that as a backend concern. There is also an option to sanitize at the collector level, so I think we're ok.

@naseemkullah
Copy link
Member

FYI I don't plan on tackling pg or pg-pool so those are up for grabs.

@naseemkullah naseemkullah changed the title Update DB semantic conventions [pg + pg-pool] Update DB semantic conventions Sep 4, 2020
@naseemkullah naseemkullah added the up-for-grabs Good for taking. Extra help will be provided by maintainers label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
up-for-grabs Good for taking. Extra help will be provided by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants