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

[receiver/mysql]: add endpoint resource attribute #14340

Merged

Conversation

aboguszewski-sumo
Copy link
Member

@aboguszewski-sumo aboguszewski-sumo commented Sep 21, 2022

Description:
Add mysql.instance.endpoint resource attribute.

Link to tracking Issue:
#14138

Testing:
Unit tests have their expected results modified.
Integration tests have not been modified, because it seems that they don't compare resources anyway (I tested that and the tests were passing even with wrong expected result).

Documentation:
Documentation automatically generated my mdatagen.

@@ -1,5 +1,10 @@
name: mysqlreceiver

resource_attributes:
endpoint:
Copy link
Member

Choose a reason for hiding this comment

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

Resource attributes are part of a single hierarchy that must cover the whole project, so we need to name this more specifically.

I suggest mysql.instance.endpoint. In the future, when we add mysql database specific metrics, we'll likely add mysql.database.name and/or mysql.database.id, and those metrics will belong to a resource with both instance and database attributes.

@@ -0,0 +1,5 @@
change_type: enhancement
Copy link
Member

Choose a reason for hiding this comment

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

Technically, I think we need to call this a breaking change, as it may break data continuity for some consumers.

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.

3 participants