Tracing statusCodeTracker need to implement CloseNotify
This commit is contained in:
parent
9f741abd84
commit
b50aebd2ed
4 changed files with 63 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue