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

Update database semantic conventions #8

Merged

Conversation

johnchildren
Copy link
Contributor

Release v0.6.0 of the opentelemetry spec included some changes to the
database semantic conventions, among them being changes to some of the
fields used to convert to Azure Dependency Targets etc.

open-telemetry/opentelemetry-specification#575

This commit updates the exporter to handle the new names for these
fields, however as the new equivalent to db.instance is db.name,
which can change when the database is changed inside a connection.

@johnchildren
Copy link
Contributor Author

Should resolve #7

Copy link
Owner

@frigus02 frigus02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Thanks for taking care of this.

The two properties are also defined near the top of the file in a HashSet. The reason is that I didn't want to include them in the custom properties, since the value is already used elsewhere:

"db.instance",
"db.type",

I'm not sure if this is a good idea anymore. It might be better to send all attributes as custom properties either way.

But in any case, would you mind changing those to the new names as well for now?

Release v0.6.0 of the opentelemetry spec included some changes to the
database semantic conventions, among them being changes to some of the
fields used to convert to Azure Dependency Targets etc.

open-telemetry/opentelemetry-specification#575

This commit updates the exporter to handle the new names for these
fields, however as the new equivalent to `db.instance` is `db.name`,
which can change when the database is changed inside a connection.
@johnchildren johnchildren force-pushed the update-database-semantic-conventions branch from a3b0f6f to 072b866 Compare August 7, 2020 08:43
@johnchildren
Copy link
Contributor Author

Ah sorry, don't know how I missed that, I did try to do a search through the codebase! Anyway should be updated now.

@frigus02
Copy link
Owner

frigus02 commented Aug 7, 2020

Perfect. Thanks again 👍

@frigus02 frigus02 merged commit a62c909 into frigus02:main Aug 7, 2020
@johnchildren johnchildren deleted the update-database-semantic-conventions branch August 7, 2020 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants