mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
- Added PostHog configuration options to .env.example files for both Docker and Surfsense backend. - Introduced PostHog dependency in pyproject.toml. - Implemented analytics middleware to capture various events across the application, including user authentication, automation runs, and API requests. - Enhanced existing routes and services to emit analytics events, providing insights into user interactions and system performance. - Ensured graceful shutdown of analytics clients in worker processes and application lifecycles.
9 lines
346 B
Python
9 lines
346 B
Python
"""SurfSense observability surface.
|
|
|
|
The single user-visible API right now is :mod:`otel`, which exposes a
|
|
small wrapper around the optional ``opentelemetry`` instrumentation. The
|
|
wrapper is a no-op when OTEL is not configured, so importing it from
|
|
performance-critical paths is safe.
|
|
"""
|
|
|
|
__all__ = ["analytics", "bootstrap", "metrics", "otel"]
|