-
Notifications
You must be signed in to change notification settings - Fork 543
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
log.WithUserID
: log user ID in user
label instead of org_id
#1634
Conversation
Hold on before merging. We have some people working to expose selected logs to customers. It could impact them. |
@chroberts are you impacted by this change? |
Also, should we expose it on |
Thank you! Yes, this would impact us. I just added a change to an open PR to support You can go ahead and merge whenever you'd like. Our side isn't complete yet, so we wouldn't be affected. |
@colega raises a good point... we decided to try to use |
As idealistic people, we did. The change would be quite wide spread, given almost all logs use |
I don't really mind using "user" in the logs, it's shorter :) But it's also extra rule to remember. ("user" for logs, but "tenant" in docs and arguments?) Perhaps it's time to finally unify all this terminology for once, and be done with it. |
Totally agree with all of this. Anyway, I checked and we don't seem to have any "tenant" in the logs, so I guess we could go with "user" now and replace usages in a separate issue. |
All metrics use What is the main concern with switching to I'm trying to think of an easy way to either log both or do the switch without a big change. We can replace the |
Makes sense.
It's definitely a big breaking change for metrics: I'm personally against doing that change in metrics, unless we'll have a smooth migration path, but the effort doesn't justify the benefit to me. Uniforming on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chroberts Mentioned they will handle this change and we can merge it, so this PR LGTM. About renaming from user
to tenant
, I left my personal opinion in the comment above.
156ca12
to
d5b837d
Compare
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
d5b837d
to
90ed95d
Compare
thanks for the reviews everyone. In this case I'm happy to merge this as is too |
Signed-off-by: Dimitar Dimitrov dimitar.dimitrov@grafana.com
What this PR does
log.WithUserID
: log user ID inuser
label instead oforg_id
This PR still keeps usages of
__org_id__
in the TSDB.Implications are that the slow queries dashboard will not detect old slow queries once this change is released.
This PR is complemented by grafana/dskit#156
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]