diff options
author | Alan Pearce | 2023-09-16 08:08:22 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-16 08:08:22 +0200 |
commit | 89d211a3cc537aaba08667ebd0c16cd2a54ec960 (patch) | |
tree | 899ddf36e649f94f5a341586ca33ad1e867e87fa /src | |
parent | 03cbe07a15514f3ad300c310741a6b7769101455 (diff) | |
download | website-89d211a3cc537aaba08667ebd0c16cd2a54ec960.tar.lz website-89d211a3cc537aaba08667ebd0c16cd2a54ec960.tar.zst website-89d211a3cc537aaba08667ebd0c16cd2a54ec960.zip |
Set http tags on 404 spans
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 3 |
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) { |