Add a new protocol

Co-authored-by: Gérald Croës <gerald@containo.us>
This commit is contained in:
Julien Salleyron 2019-03-14 09:30:04 +01:00 committed by Traefiker Bot
parent 0ca2149408
commit 4a68d29ce2
231 changed files with 6895 additions and 4395 deletions

View file

@ -2,6 +2,7 @@ package tracing
import (
"context"
"errors"
"fmt"
"io"
"net/http"
@ -32,7 +33,7 @@ func FromContext(ctx context.Context) (*Tracing, error) {
tracer, ok := ctx.Value(tracingKey).(*Tracing)
if !ok {
return nil, fmt.Errorf("unable to find tracing in the context")
return nil, errors.New("unable to find tracing in the context")
}
return tracer, nil
}