all repos — website @ 150234c3208b7bcc61fc9cf0291ab3ea7756a3c7

My website

Include user-agent string in Sentry tags
Alan Pearce alan@alanpearce.eu
Sun, 17 Sep 2023 07:28:57 +0200
commit

150234c3208b7bcc61fc9cf0291ab3ea7756a3c7

parent

d484c4b09faf96a4717b0dec89f397d5119e600e

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

jump to
M src/index.tssrc/index.ts
@@ -147,6 +147,7 @@ description: `${request.method} ${pathname}`,       tags: {
         url: request.url,
         "http.method": request.method,
+        "http.user_agent": request.headers.get("user-agent"),
       },
     });
     const span = transaction.startChild({