Skip to content

Fix: make label names uniform - #596

Open
mem wants to merge 1 commit into
mainfrom
make-naming-uniform
Open

Fix: make label names uniform#596
mem wants to merge 1 commit into
mainfrom
make-naming-uniform

Conversation

@mem

@mem mem commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

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 <marcelo.magallon@grafana.com>
@mem
mem requested a review from a team as a code owner January 31, 2024 18:37
@nadiamoe

nadiamoe commented Mar 7, 2024

Copy link
Copy Markdown
Member

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

@mem

mem commented Mar 7, 2024

Copy link
Copy Markdown
Contributor Author

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