Skip to content

Commit

Permalink
feat: ✨ enable observability
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashRajpurohit committed Nov 2, 2024
1 parent dc9faa5 commit 374e85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ app.get('*', async (c) => {

const urlWithRef = appendReferrerTextToUrl(url, REFERRER_TEXT, existingSearchParams);

console.log({ text, url })

return c.redirect(urlWithRef, 307);
})

Expand Down
4 changes: 4 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ id = "6ec3404005ee4537bcb35a7660c4f93c"
[vars]
NOT_FOUND_REDIRECT_URL = "https://akashrajpurohit.com/404/"
REFERRER_TEXT = "go.akashrajpurohit.com"

[observability]
enabled = true
head_sampling_rate = 1

0 comments on commit 374e85f

Please sign in to comment.