API Reference posthog v2.4.0

View Source

Modules

Main API for working with PostHog

Behaviour and the default implementation of a PostHog API client. Uses Req.

PostHog configuration

PostHog error

Convenience functions to work with Feature Flags API

Represents the result of a feature flag evaluation.

Req plugin that automatically captures $ai_generation events for LLMs.

Provides a plug that automatically extracts and sets relevant metadata from Plug.Conn.

LLM Analytics is an observability product for LLM-powered applications.

Supervisor that manages all processes required for logging. By default, PostHog starts it automatically.

PostHog Test Utilities Module

PostHog error that includes a reponse from the API, either full or partial.