src/dazzle_back/runtime/analytics_collector.py¶
Generated: 2026-03-30T04:38:46.728112+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Tenant-Scoped Analytics Collector.
Collects analytics events from the application and stores them in the ops database with tenant scoping for privacy.
Analytics types: - Page views - User actions (clicks, form submissions) - Feature usage - Conversions - Custom events
All analytics are tenant-sco...
Key Exports¶
AnalyticsEventTypeAnalyticsContextAnalyticsConfigAnalyticsCollectorcreate_analytics_routesstartstoptrack_page_viewtrack_actiontrack_clicktrack_form_submittrack_searchtrack_conversiontrack_feature_usetrack_errortrack_customTrackRequestTrackResponsetrack_eventtrack_page_view
Dependencies¶
Imports¶
asynciologgingdataclasses.dataclassdataclasses.fielddatetime.UTCdatetime.datetimetyping.Anyuuid.uuid4dazzle_back.runtime.ops_database.AnalyticsEventdazzle_back.runtime.ops_database.OpsDatabasefastapi.APIRouterfastapi.Headerfastapi.Requestpydantic.BaseModeldazzle_back.events.envelope.EventEnvelope
Event Interactions¶
Emits: AnalyticsEvent, ops.analytics
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.