Tracing statusCodeTracker need to implement CloseNotify

This commit is contained in:
Michael 2018-01-25 16:34:02 +01:00 committed by Traefiker
parent 9f741abd84
commit b50aebd2ed
4 changed files with 63 additions and 16 deletions

View file

@ -28,16 +28,6 @@ type Backend interface {
Setup(serviceName string) (opentracing.Tracer, io.Closer, error)
}
type statusCodeTracker struct {
http.ResponseWriter
status int
}
func (s *statusCodeTracker) WriteHeader(status int) {
s.status = status
s.ResponseWriter.WriteHeader(status)
}
// Setup Tracing middleware
func (t *Tracing) Setup() {
var err error