-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove OTEL/contrib dependency on cmd/collector/app/sampling #6411
Comments
Hi @yurishkuro, I'm interested in trying this. I'll try to prepare a doc to discuss this in detail. |
Hi @yurishkuro, for the first part of this issue, here are my findings: In
Also, some of these have a dependency on |
@ary82 I would keep the dependency on |
Hi @yurishkuro, I'm still learning jaeger's architecture and the code structure, but here's what I think for the second part of this issue:
What do you think? |
I don't think you can move stuff into |
Took a closer look at the dependencies. Currently,
Seeing as they have a lot of components depending upon them, would it make more sense in moving these to the root As for
So I think we might benefit from moving them to |
all the sampling components are effectively internal services, so I would move them to |
This maintains the current package hierarchy for the most part, and keeps the samplingstrategy interfaces in the
|
a few comments
|
How does this sound?
|
looks better, but I would still like to simplify this more
|
Merging |
please elaborate why it will cause a circular dependency? On which types? For example, if the dependency is on the interfaces that the structs in |
That's right, the dependency is on the interfaces that the structs in strategyprovider implement. We can do this in a test file as you recommended. The refactor would look like:
Does this look better? |
looks great. Are you thinking of doing this all at once or incrementally by package? I'd prefer smaller PRs, as the whole thing could easily include 100 files. |
Sounds good, I'll break it down:
|
) ## Which problem is this PR solving? - Towards #6411 ## Description of the changes - Involves refactoring the `model` package in `cmd/collector/app/sampling` - Move specific `plugin/storage/cassandra/samplingstore` types to that package as internal types - Move the other types to `storage/samplingstore/model` ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
## Which problem is this PR solving? - Towards #6411 ## Description of the changes - Move sampling grpc handler from cmd/collector/app/sampling to internal/sampling/grpc ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
…egertracing#6531) ## Which problem is this PR solving? - Towards jaegertracing#6411 ## Description of the changes - Involves refactoring the `model` package in `cmd/collector/app/sampling` - Move specific `plugin/storage/cassandra/samplingstore` types to that package as internal types - Move the other types to `storage/samplingstore/model` ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
…ertracing#6540) ## Which problem is this PR solving? - Towards jaegertracing#6411 ## Description of the changes - Move sampling grpc handler from cmd/collector/app/sampling to internal/sampling/grpc ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
## Which problem is this PR solving? - Towards #6411 ## Description of the changes - Move sampling http handler from pkg/clientcfg/clientcfghttp to internal/sampling/http ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
…tion (#6546) ## Which problem is this PR solving? - Towards #6411 ## Description of the changes - Move leaderelection package from plugin/sampling/leaderelection to internal/leaderelection ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
…ategy (#6547) ## Which problem is this PR solving? - Towards #6411 ## Description of the changes - Move sampling strategy interfaces from cmd/collector/app/sampling/samplingstrategy to internal/sampling/strategy ## How was this change tested? - Covered by existing ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Part of #6408, please read that first.
The dependency exists in
OTEL/contrib/extension/jaegerremotesampling
. It might be relatively easy to break, but need to try it out.cmd/collector/app/sampling
andplugin/sampling/strategyprovider/static
to OTEL/contrib.The text was updated successfully, but these errors were encountered: