-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[mysqlreceiver]: rename mysql.commands metric to mysql.prepared_statements #14722
[mysqlreceiver]: rename mysql.commands metric to mysql.prepared_statements #14722
Conversation
f2883d8
to
8579001
Compare
@djaglowski @jpkrohling There can be possible conflict between |
It's not clear to me that |
This was my first iteration (first commit), but as this is breaking change and the names are not conflicting I decided to not do that. I will change it back |
I will issue adding proprt |
Considering the Can we just clarify the descriptions and add the |
@djaglowski what do you think about another label, which will differ between list of possible metrics: opentelemetry-collector-contrib/receiver/mysqlreceiver/testdata/scraper/global_stats.txt Lines 11 to 181 in 6dc71bd
This new label (
|
Unfortunately, I don't think an additional attribute works here for the reason you noted. I can't argue that In the absence of a better suggestion, I think we just make the breaking change. The component is still in beta so this is possible still. |
c971e7d
to
2571833
Compare
@djaglowski should be ready to go |
Looks like there's a code generation issue:
|
615379d
to
bb50a7f
Compare
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.
@sumo-drosiek I'd like to help move these from approved to merged, but there's a lot of PRs with many conflicts to resolve. Can you resolve conflicts of one PR at a time and ping me when they're resolved?
Resolving more than one will just result in a merge conflict once any of them is merged (i'm guessing since they're touching the same files)
In the future, it may be easier to either open one pr for all new metrics, or build each PR on top of the other one and leave it in draft until the previous PR is merged.
@codeboten I see that issue as well, I would love to make PR chain, but as code is outside of this repo the PRs won't create here
I can prepare one common PR for all approved PRs |
bb50a7f
to
3506c48
Compare
@codeboten This commit should be good to go |
aa3dde0
to
15ced7f
Compare
15ced7f
to
84d3adb
Compare
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.
Please take a look at the failing porto check:
porto -w --include-internal --skip-dirs "^cmd$" ./
diff --git a/receiver/mysqlreceiver/internal/metadata/deprecated_metrics_commands.go b/receiver/mysqlreceiver/internal/metadata/deprecated_metrics_commands.go
index 8ac87fe..45be9d1 100644
--- a/receiver/mysqlreceiver/internal/metadata/deprecated_metrics_commands.go
+++ b/receiver/mysqlreceiver/internal/metadata/deprecated_metrics_commands.go
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package metadata
+package metadata // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver/internal/metadata"
// deprecateDescription add [DEPRECATED] prefix to description.
func (m *metricMysqlCommands) deprecateDescription() {
Porto links are out of date, please run "make goporto" and commit the changes in this PR.
Error: Process completed with exit code 1.
e75aa3b
to
657fbc3
Compare
…d_statements instead (feature-gate) Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
657fbc3
to
313d95e
Compare
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
313d95e
to
af7efe7
Compare
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
PR is ready to merge. Rebased and changed OTC version in warnings |
…ments (open-telemetry#14722) * feat(receivers/mysql): deprecate mysql.commands and use mysql.prepared_statements instead (feature-gate)
Description:
Rename mysql.commands metric to mysql.stmt_commands.
Actual
mysql.commands
is about prepared statement commands, and they shouldn't be mixed with regular commands as this will be messy and can be problematic in the future (e.g. reset is common command for both prepared statements and regular statements). In addition usingmysql.commands
metric is counterintuitive and unexpected for usersLink to tracking Issue:
#14138
Testing:
unit tests
Documentation: N/A