From e1c1df6396409a3030f653bd825f1de8c89b8682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Tue, 26 Jan 2021 12:02:35 +0100 Subject: [PATCH] increase visbility for route not found (#1698) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sandor Szücs --- proxy/proxy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/proxy.go b/proxy/proxy.go index 3297f92c0b..455b6f72d0 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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() {