-
Notifications
You must be signed in to change notification settings - Fork 307
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
http plugin mark all http.request
spans as error
#1953
Comments
We're also seeing this from the v2.4.1 upgrade (we came from v2.2.0) |
We did made a few changes to the |
@iainmcgin Just tried with a POST request and still not getting the error flag set to |
Our graphql gateway is built using apollo-server, and the requests occur within the context of a RemoteGraphQLDataSource. I don't think we've customized the fetcher, and it looks like the default implementation uses make-fetch-happen, and from our lock file, looks like v8.0.14. I hope that helps! |
@rochdev It seems the problem comes from the instrumentation. See https://nodejs.org/api/http.html#:~:text=In%20a%20successful,%27close%27
|
Moreover are you sure of this? const finished = false
const finish = (finished, req, res) => {
if (!finished) {
finished = true // <|=====
asyncEndClientCh.publish({ req, res })
}
} It seems you are reassigning the |
We also have this after upgrading from 2.2.0 to 2.4.1 and we're using node-fetch 2.6.7 on node.js 16.13. |
@Grmiade That's definitely it. I'll figure out a test and release a fix as soon as possible. |
Seeing this still, but only for HEAD requests in spans. They do not contain errors, but DD-trace is treating them as errors. Rolling back to 2.4.0, this issue appears to gone, though HEAD request spans just totally disappear from spans... which I guess would hide the issue. EDIT: opened an issue #2089 |
I'm still seeing this problem with the latest version |
Describe the bug
When our service receives an http response with a 200 status code. The span is marked as an error.
We have this issue since we upgraded to the 2.4.1 version, for all services and each
http.request
spans.Environment
The text was updated successfully, but these errors were encountered: