@@ -182,6 +182,30 @@ GraphQL::default()
182182// 3. Query via: POST /rpc/graphql with { "query": "{ ... }" }
183183```
184184
185+ ## Analytics Configuration
186+
187+ Analytics is powered by Logflare, a centralized logging and analytics platform.
188+ It requires a PostgreSQL database for storing analytics data.
189+
190+ ``` rust
191+ Analytics :: default ()
192+ . with_postgres_backend_url (" postgresql://..." ) // PostgreSQL backend URL (required)
193+ . with_postgres_backend_schema (" _analytics" ) // Backend schema
194+ . with_db_hostname (" localhost" ) // Database hostname
195+ . with_db_port (5432 ) // Database port
196+ . with_db_username (" supabase_admin" ) // Database username
197+ . with_db_password (" password" ) // Database password
198+ . with_db_database (" _supabase" ) // Database name
199+ . with_public_access_token (" your-public-token" ) // Public API token
200+ . with_private_access_token (" your-private-token" ) // Private API token
201+ . with_encryption_key (" base64-key..." ) // Encryption key for sensitive data
202+ . with_single_tenant (true ) // Single-tenant mode
203+ . with_supabase_mode (true ) // Supabase integration mode
204+ . with_log_level (" warn" ) // Log verbosity
205+ . with_tag (" 1.26.13" ) // Image version
206+ . with_env (" KEY" , " value" ) // Custom environment variable
207+ ```
208+
185209## Features
186210
187211| Feature | Description |
@@ -209,7 +233,7 @@ GraphQL::default()
209233| Realtime | Complete |
210234| Functions | Complete |
211235| GraphQL | Complete |
212- | Analytics | Planned |
236+ | Analytics | Complete |
213237
214238## License
215239
0 commit comments