Set http tags on 404 spans
Alan Pearce alan@alanpearce.eu
Sat, 16 Sep 2023 08:08:22 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M src/index.ts → src/index.ts
@@ -213,7 +213,8 @@ span.setTag("http.status_code", 200); return serveFile(file); } else { metrics.requestsByStatus.inc({ status_code: 404 }); - transaction.setTag("http.status_code", 404); + span.setTag("http.encoding", "identity"); + span.setTag("http.status_code", 404); return serveFile(files.get("/404.html"), 404); } } catch (error) {