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

add method to get name sanitized for tag value #31

Merged
merged 6 commits into from
Jul 2, 2019

Conversation

replay
Copy link
Contributor

@replay replay commented Jun 26, 2019

this is going to be useful to implement the change documented
here in Metrictank:

https://github.com/graphite-project/graphite-web/pull/2458/files

replay added 5 commits June 26, 2019 19:03

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
this is going to be useful to implement the change documented
here in Metrictank:

https://github.com/graphite-project/graphite-web/pull/2458/files
Copy link
Contributor

@Dieterbe Dieterbe left a comment

Choose a reason for hiding this comment

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

nitpick but lgtm

metric.go Outdated
}

i := 1
for ; i < len(name); i++ {
Copy link
Contributor

Choose a reason for hiding this comment

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

put the initialisation of i in the for loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but we need that value on :274

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess I could just return from inside the loop as soon as name[i] != '~', then the i could be inside the scope of the for

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated: 1cc6c13

@replay replay merged commit 6e2981e into master Jul 2, 2019
@replay replay deleted the sanitize_metric_name_for_tag_value branch July 2, 2019 18:36
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.

None yet

2 participants