-
Notifications
You must be signed in to change notification settings - Fork 526
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
Derive outcome from the HTTP status code when available #4165
Conversation
Spec: elastic/apm#338 |
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
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! Just a few minor things.
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
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