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

Fix: make label names uniform #596

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix: make label names uniform #596

wants to merge 1 commit into from

Conversation

mem
Copy link
Contributor

@mem mem commented Jan 31, 2024

Our use of labels names in logs and metrics is not uniform and this is causing a lot of pain.

We have foo_id, fooID and other variations.

Pick one.

It's fooId from now on.

It's going to be painful to change everywhere else to match this, but it's better than dealing with the existing pain.

Our use of labels names in logs and metrics is not uniform and this is
causing a lot of pain.

We have `foo_id`, `fooID` and other variations.

Pick one.

It's `fooId` from now on.

It's going to be painful to change everywhere else to match this, but
it's better than dealing with the existing pain.

Signed-off-by: Marcelo E. Magallon <[email protected]>
@mem mem requested a review from a team as a code owner January 31, 2024 18:37
@roobre
Copy link
Member

roobre commented Mar 7, 2024

So from now on we use camelCase for log labels, but we should keep using snake_case for prom labels, right?

@mem
Copy link
Contributor Author

mem commented Mar 7, 2024

So from now on we use camelCase for log labels, but we should keep using snake_case for prom labels, right?

I didn't think that far, but sounds reasonable.

Basically I looked at what would introduce the least changes, and camel case for log labels won.

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