class documentation
Configuration for telemetry collection.
| Class Method | from |
Build a config from environment variables. |
| Instance Variable | allow |
Whether callers and context providers may override reserved telemetry control fields. |
| Instance Variable | allowlist |
CLI parameter names that may be logged. |
| Instance Variable | api |
API key for the backend, if applicable. |
| Instance Variable | backend |
Backend name to use, such as "posthog" or "stdout". |
| Instance Variable | debug |
Whether to enable debug behavior such as the stdout backend default. |
| Instance Variable | disable |
Whether to disable PostHog GeoIP enrichment. |
| Instance Variable | enabled |
Whether telemetry should emit events. |
| Instance Variable | endpoint |
Custom endpoint or host for the backend, if applicable. |
| Instance Variable | include |
Whether to include the shared default context on every event. |
| Instance Variable | include |
Whether to include extended system metadata by default. |
Build a config from environment variables.
Reads the LUXONIS_TELEMETRY_* settings and returns a fully populated TelemetryConfig instance. Environment variables take precedence over product-level defaults, which in turn take precedence over the telemetry module's base defaults.
| Parameters | |
defaults:TelemetryDefaults | None | Optional product-level defaults used when a given environment variable is not set. |
| Returns | |
TelemetryConfig | A telemetry configuration built from environment variables. |