-
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
[extension/jaegerremotesampling] remove jaeger sampling dependency #36977
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
extension/jaegerremotesampling/internal/remote_strategy_store.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
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.
The organization of the components needs to be improved, it's all over the place. I would recommend
internal/
source/
source.go - define interface
filesource/ - define reading from file
remotesource/ - a proxy that reads from a remote service
server/
grpc/ - grpc server that uses Source
http/ - http server that uses Source and defines its own JSON model
...rremotesampling/fixtures/TestServiceNoPerOperationStrategiesDeprecatedBehavior_ServiceA.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
lgtm! Let's makes sure all CI checks are green. |
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Sorry, closing was a misclick on
|
600 permission should be fine
There's rarely a good reason to ignore errors, even in tests - at some point something might break, and ignored error makes it harder to debug. You can always add |
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Thanks for your help :) Should be fixed now |
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
@@ -22,11 +22,11 @@ require ( | |||
go.opentelemetry.io/collector/featuregate v1.22.1-0.20241220212031-7c2639723f67 | |||
go.uber.org/goleak v1.3.0 | |||
go.uber.org/zap v1.27.0 | |||
golang.org/x/net v0.33.0 |
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.
There shouldn't be changes like this in go mod, they are not related to the pr.
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.
x/net/context
was being used in the grpc_handler_test file, which caused this change to go.mod
.
Changed to use the stdlib context
.
Signed-off-by: Aryan Goyal <137564277+ary82@users.noreply.github.com>
Description
Copy the required code from jaeger to extension/jaegerremotesampling:
plugin/sampling/strategyprovider/static
cmd/collector/app/sampling
tointernal
Link to tracking issue
Fixes #36976
Testing
grpc_handler_test.go
fromcmd/collector/app/sampling/grpc_handler_test.go
provider_test.go
fromplugin/sampling/strategyprovider/static/provider_test.go
withplugin/sampling/strategyprovider/static/fixtures