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

Remove cassandra db.name attribute #3199

Closed
wants to merge 1 commit into from
Closed

Remove cassandra db.name attribute #3199

wants to merge 1 commit into from

Conversation

trask
Copy link
Member

@trask trask commented Jun 6, 2021

from https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md#cassandra:

db.cassandra.keyspace - The name of the keyspace being accessed. To be used instead of the generic db.name attribute.

@@ -25,7 +26,10 @@
protected void onStart(AttributesBuilder attributes, REQUEST request) {
set(attributes, SemanticAttributes.DB_SYSTEM, system(request));
set(attributes, SemanticAttributes.DB_USER, user(request));
set(attributes, SemanticAttributes.DB_NAME, name(request));
AttributeKey<String> nameAttribute = dbNameAttribute();
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm this weirdness seems like a good reason to go to the spec and remove the keyspace attribute? Not filling in a generic attribute seems like a bug, non-cassandra aware tracing systems would still get benefit from it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Definitely see where #2892 came from ;)

Copy link
Member Author

@trask trask Jun 6, 2021

Choose a reason for hiding this comment

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

👍 can I block my own PR? 😂

@trask trask marked this pull request as draft June 7, 2021 03:43
@trask trask closed this Jul 25, 2021
@trask trask deleted the remove-cassandra-db-name branch July 25, 2021 22:16
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