diff --git a/.env.example b/.env.example index 7680b99..cd4daf0 100644 --- a/.env.example +++ b/.env.example @@ -28,3 +28,8 @@ BACHS_API_KEY="your-bachs-secret-key" BACHS_API_BASE="https://sandbox-api.bachs.io" # live: https://api.bachs.io BACHS_PRO_PRODUCT_ID="your-bachs-pro-product-id" BACHS_WEBHOOK_SECRET="your-bachs-webhook-signing-secret" + +# --- OpenTelemetry (optional) --- +# OTEL_SERVICE_NAME="your-app-name" +# OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" +# OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" \ No newline at end of file diff --git a/drizzle/0001_jazzy_darkstar.sql b/drizzle/0001_jazzy_darkstar.sql index 246928b..f3f5fa8 100644 --- a/drizzle/0001_jazzy_darkstar.sql +++ b/drizzle/0001_jazzy_darkstar.sql @@ -6,4 +6,7 @@ CREATE TABLE "page_views" ( "created_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint -CREATE INDEX "page_views_created_at_idx" ON "page_views" USING btree ("created_at"); \ No newline at end of file +CREATE INDEX "page_views_created_at_idx" ON "page_views" USING btree ("created_at"); +CREATE INDEX "page_views_path_idx" ON "page_views" USING btree ("path"); +CREATE INDEX "page_views_country_idx" ON "page_views" USING btree ("country"); +CREATE INDEX "page_views_referrer_idx" ON "page_views" USING btree ("referrer"); \ No newline at end of file diff --git a/src/components/admin/countries.tsx b/src/components/admin/countries.tsx index 789aab6..1b2bf03 100644 --- a/src/components/admin/countries.tsx +++ b/src/components/admin/countries.tsx @@ -51,4 +51,4 @@ export function AdminCountries({ )} ) -} +} \ No newline at end of file