Skip to content

Commit

Permalink
increase visbility for route not found (#1698)
Browse files Browse the repository at this point in the history
Signed-off-by: Sandor Szücs <[email protected]>
  • Loading branch information
szuecs authored Jan 26, 2021
1 parent f5f2314 commit e1c1df6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,10 @@ func (p *Proxy) errorResponse(ctx *context, err error) {
if span := ot.SpanFromContext(ctx.Request().Context()); span != nil {
p.tracing.setTag(span, ErrorTag, true)
p.tracing.setTag(span, HTTPStatusCodeTag, uint16(code))
if err == errRouteLookupFailed {
span.LogKV("event", "error", "message", errRouteLookup.Error())
}

}

if p.flags.Debug() {
Expand Down

0 comments on commit e1c1df6

Please sign in to comment.