-
Notifications
You must be signed in to change notification settings - Fork 1k
Add db.query.summary support to Cassandra instrumentations #15919
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
base: main
Are you sure you want to change the base?
Add db.query.summary support to Cassandra instrumentations #15919
Conversation
Co-authored-by: trask <[email protected]>
…ents Co-authored-by: trask <[email protected]>
|
@copilot fix tests |
Co-authored-by: trask <[email protected]>
... Fixed in cddb2d0. The issue was that when Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
| "io.opentelemetry.cassandra-3.0", | ||
| DB_SYSTEM_NAME, | ||
| DB_OPERATION_NAME, | ||
| emitStableDatabaseSemconv() ? DB_QUERY_SUMMARY : DB_OPERATION_NAME, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot assertDurationMetric method already has an internal check and only applies to emitStableDatabaseSemconv, so this can be simplified to just DB_QUERY_SUMMARY
make this change in instrumentation/cassandra/cassandra-4-common/testing/src/main/java/io/opentelemetry/cassandra/v4/common/AbstractCassandraTest.java too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified in c201605. Removed the conditional and unused DB_OPERATION_NAME imports from both files since assertDurationMetric only runs when emitStableDatabaseSemconv() is true.
Co-authored-by: trask <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot run |
Co-authored-by: trask <[email protected]>
Done in 7ec9657. Spotless formatting has been applied to split long lines in the test files. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
db.query.summaryin SqlClientAttributesExtractor #15896 changesOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.