about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-16 08:08:22 +0200
committerAlan Pearce2023-09-16 08:08:22 +0200
commit89d211a3cc537aaba08667ebd0c16cd2a54ec960 (patch)
tree899ddf36e649f94f5a341586ca33ad1e867e87fa
parent03cbe07a15514f3ad300c310741a6b7769101455 (diff)
downloadwebsite-89d211a3cc537aaba08667ebd0c16cd2a54ec960.tar.lz
website-89d211a3cc537aaba08667ebd0c16cd2a54ec960.tar.zst
website-89d211a3cc537aaba08667ebd0c16cd2a54ec960.zip
Set http tags on 404 spans
-rw-r--r--src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 57c612a..d4c7b3d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -213,7 +213,8 @@ const server = Bun.serve({
         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) {