Packages

@posthog/ai

8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed

Your version

7.15.0

14 Apr 2026Where it was published

7.21.0 is the newest release of 7.x.

In short

2 new

Release note

Minor Changes

  • Add PostHogSpanProcessor as a self-contained OpenTelemetry SpanProcessor that handles batching and export internally. Both PostHogSpanProcessor and PostHogTraceExporter now automatically filter to AI-related spans only (gen_ai.*, llm.*, ai.*, traceloop.*).
    (2026-04-14)

  • Add OpenAI Agents SDK tracing support via @posthog/ai/openai-agents. Implements PostHogTracingProcessor that captures agent traces, spans, and LLM generations as PostHog LLM analytics events. Supports all span types including generation, response, function/tool, agent, handoff, guardrail, custom, audio, and MCP.
    (2026-04-14)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.