Derive outcome from the HTTP status code when available#4165
Derive outcome from the HTTP status code when available#4165jalvz merged 9 commits intoelastic:masterfrom
Conversation
|
Spec: elastic/apm#338 |
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
axw
left a comment
There was a problem hiding this comment.
Looks good! Just a few minor things.
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
|
Tested BC1 using the Go agent v1.8.0, which does not send outcome. package main
import (
"net/http"
"go.elastic.co/apm"
)
func main() {
tracer := apm.DefaultTracer
tx := tracer.StartTransaction("name", "type")
span := tx.StartSpan("name", "type", nil)
req, _ := http.NewRequest("GET", "http://testing.invalid", nil)
span.Context.SetHTTPRequest(req)
span.Context.SetHTTPStatusCode(200)
span.End()
tx.Context.SetHTTPStatusCode(400)
tx.End()
tracer.Flush(nil)
}As expected:
|
Motivation/summary
Avoid big empty charts in Kibana for error rates when user have ~old agents
Checklist
I have considered changes for:
How to test these changes
Related issues
Closes #4164