summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2023-09-17 07:28:57 +0200
committerAlan Pearce2023-09-17 07:28:57 +0200
commit150234c3208b7bcc61fc9cf0291ab3ea7756a3c7 (patch)
treef342d01426668c95e0baff0c11e6476d91e18361 /src
parentd484c4b09faf96a4717b0dec89f397d5119e600e (diff)
downloadwebsite-150234c3208b7bcc61fc9cf0291ab3ea7756a3c7.tar.lz
website-150234c3208b7bcc61fc9cf0291ab3ea7756a3c7.tar.zst
website-150234c3208b7bcc61fc9cf0291ab3ea7756a3c7.zip
Include user-agent string in Sentry tags
Diffstat (limited to 'src')
-rw-r--r--src/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index 6b7bdd3..26007c8 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -147,6 +147,7 @@ const server = Bun.serve({
       tags: {
         url: request.url,
         "http.method": request.method,
+        "http.user_agent": request.headers.get("user-agent"),
       },
     });
     const span = transaction.startChild({