Skip to content

WIP: Use propagator interface#3416

Closed
simonswine wants to merge 2 commits intocortexproject:masterfrom
simonswine:add-propagator-interface
Closed

WIP: Use propagator interface#3416
simonswine wants to merge 2 commits intocortexproject:masterfrom
simonswine:add-propagator-interface

Conversation

@simonswine
Copy link
Copy Markdown
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 <[email protected]>
@simonswine simonswine force-pushed the add-propagator-interface branch from 11b11d7 to c40637f Compare October 28, 2020 19:05
@pull-request-size pull-request-size bot added size/L and removed size/S labels Oct 28, 2020
```
\# 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