Skip to content

The only tool you need to know what is happening and how to fix it.

wrangler for the website to include opentelemetry observability

ddux160be2f9025a
diff --git a/website/wrangler.toml b/website/wrangler.toml
index d0d91d50..c2d852ca 100644
--- a/website/wrangler.toml
+++ b/website/wrangler.toml
@@ -2,6 +2,19 @@ name = "tracewayapp"
main = "./functions/worker.ts"
compatibility_date = "2025-02-01"
+routes = [
+ { pattern = "tracewayapp.com", zone_name = "tracewayapp.com", custom_domain = true }
+]
+
+[vars]
+SENDGRID_FROM_EMAIL = "[email protected]"
+SENDGRID_TO_EMAIL = "[email protected]"
+
+[observability.traces]
+enabled = true
+head_sampling_rate = 1
+destinations = ["traceway"]
+
[assets]
directory = "./out"
html_handling = "auto-trailing-slash"