-
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
Add /api/sampling endpoint in collector #1990
Add /api/sampling endpoint in collector #1990
Conversation
@yurishkuro Do I update the content/docs/next-release/faq in the documentation repo? |
yes |
@yurishkuro How would an import from the same repo resolve if it is pointing to the remote master that does not contain the branch's changes? |
Sorry, I don't follow. |
@yurishkuro For example, when I import |
There's something wrong with your Go setup then. Maybe you cloned this repo in the wrong location, it should be under |
12bf753
to
64afaff
Compare
Codecov Report
@@ Coverage Diff @@
## master #1990 +/- ##
==========================================
+ Coverage 96.93% 96.95% +0.02%
==========================================
Files 204 205 +1
Lines 10113 10114 +1
==========================================
+ Hits 9803 9806 +3
+ Misses 270 269 -1
+ Partials 40 39 -1
Continue to review full report at Codecov.
|
@yurishkuro it appears cross-dock is failing and it is not clear from the logs as to why. Could this be related to #1455? |
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.
This PR now creates a lot of new public APIs. I don't think it's necessary. What we need is to pull the HTTP handler from the agent into a shared location, e.g. /pkg/clientcfg/http
where there's only a single public type HTTPHandler
that has RegisterHander(mux)
function. The actual HTTPServer should remain in the agent, and the collector has its own HTTPService (used for /api/traces endpoint). This will also mean the test infrastructure that you made public can remain private in that package.
@yurishkuro if |
Yes, since they are part of the implementation. And they can remain private |
64afaff
to
2fdedfb
Compare
16ba9f2
to
d06b515
Compare
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.
I did the refactoring as a separate PR #1996, please rebase. It should limit the scope of this change to only registering the endpoints from collector.
So |
7604fa3
to
a420344
Compare
Return metricsFactory from test server init fix import structure fix unwanted change in agent server Add license on new file Signed-off-by: RickyRajinder <singh.sangh@gmail.com> Add tests for errors Refactor collector API handler to extend agent handler Remove unused fields Unexport fields in HttpHandler Update callers of NewAPIHandler Run go fmt Fix lint issues Fix spelling error in comment Refactor HTTP Handler to shared location Implement clientConfigManager interface for collector Run gofmt Resolve prior dependencies Rename HTTPHandler Update comments and fix failing test in agent Change mux version Add empty test Rebase master and register routes in APIHandler Remove empty test and rename handler variables Run fmt
a420344
to
7350001
Compare
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.
Looks good, almost there!
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Which problem is this PR solving?
Short description of the changes