Repository navigation
Conversation
2 tasks done
Contributor
|
@howardyoo - Can you have a look when you get time, this is something we discussed a while back. |
Contributor
|
It's a good start.
|
Contributor
Hey sorry about the delay. I took a look and the implementation should properly work for both statsd side and otel side. |
Contributor
Yes, I believe implementing unit test on get_name would be required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Summary:
This PR introduces the
get_namemethod as an abstract method in the base metrics logger class. Theget_namemethod has been implemented in both the StatsD and OTel metrics logger classes to handle metric name construction consistently across backends.Note: The PR is not fully finished and it does not close #42881. I'm sending it to PR to see if I can proceed and finish it. The
get_namemethod has been integrated into theincrmethod of the StatsD logger, but I have not applied it to other methods yet. I'm doing this to verify whether it aligns with the proposed functionality before further updates.Changes:
get_nameabstract method to the base metrics logger interface.get_namemethod in the StatsD logger class to concatenate tags with the metric name.get_namemethod in the OTel logger class to return the metric name directly.incrmethod in the StatsD class to utilize theget_namemethod for constructing metric names.Please review the changes and provide feedback!
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.