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

WIP: Use propagator interface #3416

Closed

Conversation

simonswine
Copy link
Contributor

This is some early draft of how we could allow some divergence on the weaveworks/common context propagation.

Thoughts and comments welcome (cc @jtlisi)

Signed-off-by: Christian Simon <simon@swine.de>
```
\# replace injectorgid with tenantIDs
git ls-files $(git rev-parse --show-toplevel)/pkg  | xargs sed -i 's#user\.InjectOrgID(\([^,]*\), \?\([^)]*\)#user.InjectTenantIDs(\1, []string{\2}#g'
\# replace orgID with userID
git ls-files $(git rev-parse --show-toplevel)/pkg  | xargs sed -i 's#user\.ExtractOrgID(#user.Resolve.UserID(#g'
\# sort out import statement
git diff --name-only HEAD~1..HEAD | xargs -n 1 goimports -w -local github.com/cortexproject/cortex
```
@simonswine simonswine closed this Nov 11, 2020
@simonswine simonswine mentioned this pull request Nov 12, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant