- Rename main class Posthog -> Insights (Posthog kept as alias) - Rename PosthogContextMiddleware -> InsightsContextMiddleware (alias kept) - Rename PostHogTracingProcessor -> InsightsTracingProcessor (alias kept) - Add `insights/` re-export package so `from insights import Insights` works - Update all imports from `posthog` to `hanzo_insights` across source and tests - Update docstrings, comments, error messages, user agent string - Update README, example.py, .env.example, Makefile, LLM.md - Django middleware now supports INSIGHTS_MW_* settings (POSTHOG_MW_* still works) - Django middleware accepts X-INSIGHTS-* headers (X-POSTHOG-* still works) - Keep protocol-level values ($lib, ingestion URLs, sentinel strings) for server compat - Keep posthog_* parameter names in AI wrappers for API compat - All 681 tests pass
12 lines
447 B
Bash
12 lines
447 B
Bash
# Hanzo Insights API Configuration
|
|
# Copy this file to .env and update with your actual values
|
|
|
|
# Your project API key (found on the setup page in Insights)
|
|
INSIGHTS_PROJECT_API_KEY=hi_your_project_api_key_here
|
|
|
|
# Your personal API key (for local evaluation and other advanced features)
|
|
INSIGHTS_PERSONAL_API_KEY=phx_your_personal_api_key_here
|
|
|
|
# Insights host URL (remove this line if using insights.hanzo.ai)
|
|
INSIGHTS_HOST=http://localhost:8000
|