:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
export type AIObservabilityConfig = {
// Temporal — used by TemporalService to start evaluation-run workflows
TEMPORAL_HOST: string
TEMPORAL_PORT: string | undefined
TEMPORAL_NAMESPACE: string
TEMPORAL_CLIENT_ROOT_CA: string | undefined
TEMPORAL_CLIENT_CERT: string | undefined
TEMPORAL_CLIENT_KEY: string | undefined
TEMPORAL_SECRET_KEY: string | undefined
TEMPORAL_FALLBACK_SECRET_KEYS: string
LLMA_EVAL_SCHEDULER_PROVIDER_KEY_GATING: boolean
}
export function getDefaultAIObservabilityConfig(): AIObservabilityConfig {
return {
TEMPORAL_HOST: 'localhost',
TEMPORAL_PORT: '7233',
TEMPORAL_NAMESPACE: 'default',
TEMPORAL_CLIENT_ROOT_CA: undefined,
TEMPORAL_CLIENT_CERT: undefined,
TEMPORAL_CLIENT_KEY: undefined,
// Unlike Django's setting, this has no SECRET_KEY default, so the scheduler pod never needs that key.
TEMPORAL_SECRET_KEY: process.env.TEMPORAL_SECRET_KEY,
TEMPORAL_FALLBACK_SECRET_KEYS: process.env.TEMPORAL_FALLBACK_SECRET_KEYS ?? '',
LLMA_EVAL_SCHEDULER_PROVIDER_KEY_GATING: false,
}
}