From 89d211a3cc537aaba08667ebd0c16cd2a54ec960 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Sep 2023 08:08:22 +0200 Subject: Set http tags on 404 spans --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit 1.4.1