all repos — website @ 89d211a3cc537aaba08667ebd0c16cd2a54ec960

My website

Set http tags on 404 spans
Alan Pearce alan@alanpearce.eu
Sat, 16 Sep 2023 08:08:22 +0200
commit

89d211a3cc537aaba08667ebd0c16cd2a54ec960

parent

03cbe07a15514f3ad300c310741a6b7769101455

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/index.tssrc/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) {