-
Notifications
You must be signed in to change notification settings - Fork 91
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 gin specific probes #780
Conversation
Hm, the test failure shouldn't have happened, when I test manually it works as expected with the same main.go test file in the e2e test:
|
I had to update the gin test at the end, we were checking for the scope to match the gin instrumentation and it was looking for a double server span. |
LGTM, not sure we should keep the e2e test since we have both |
I think keeping them as a forward compatibility test with Gin is a decent reason to keep them. We can always remove them in the future if they become a burden. |
I thought it would be useful to keep them around to prove we can still correctly instrument Gin, we are not dropping support for it, we are just handling it correctly with the server http instrumentation. |
Since we switched to putting the server HTTP probes on
net/http.serverHandler.ServeHTTP
the Gin specific probe is not needed. The handler for Gin is called from the default HTTP server handler and effectively we get duplicate probes. The e2e tests are purposefully left in place so that we can still test that Gin instrumentation is working. I modified the gin tests to do the same level of validation as the net/http tests and I removed the double server span.This is the backtrace from Delve attached to our Gin example:
Closes #171 as not needed