posthog
View Source2.4.0 — 2026-02-16
Minor changes
- 0f1f78e This is technically a breaking change because we're now always sending data gzip compressed and people might not want that, but this will not break anyone's code so we'll release it as a minor knowing that it's an improvement. It's always been possible to swap the client off, but we weren't documenting how to do that exactly - this is now solved too. — Thanks @rafaeelaudibert!
2.3.0 — 2026-02-12
Minor changes
- ba2f10a Implement proper retry behavior for requests. Also respects X-Retry-Later header. — Thanks @rafaeelaudibert!
- 39a304d We've now added a new
get_feature_flag_resultmethod that can be used to get a full view of your feature flags including the payload rather than simply a boolean/string from the enabled/variant state. — Thanks @rafaeelaudibert! - 1dc5271 Add support for Anthropic messages in the LLM analytis module — Thanks @rafaeelaudibert!
2.2.0 — 2026-02-05
Minor changes
4069a8e Add LLM Analytics
This release introduces a lightweight LLM analytics toolkit for instrumenting, recording, and analyzing large language model usage across applications that use this repository's SDK. It provides practical observability for teams running LLMs in production and during development. — Thanks @martosaur!
5fec2fd Add
uuidto events on every request to guarantee idempotency in the backend — Thanks @rafaeelaudibert!927c1b4 New release process via sampo — Thanks @rafaeelaudibert!
2.1.0 - 2025-11-25
- included evaluated_at properties in $feature_flag_called events
7c7ee1e978164809aa28162824f273f6f2bd33f2
2.0.0 - 2025-09-30
Major Release
posthog-elixir was fully reworked. Check migration guide
for some tips on how to upgrade.
Huge thanks to community member @martosaur for contributing this new version.
What's new
- Elixir v1.17+ required
- Event capture is now offloaded to background workers with automatic batching
- Context mechanism for easier property propagation
- Error Tracking support
- New
PostHog.FeatureFlagsmodule for working with feature flags - Test mode for easier testing
- Customizable HTTP client with Req as the default
- Plug integration for automatically capturing common HTTP properties
1.1.0 - 2025-07-01
- Expose
capture/2b077aba849126c63f1c7a82b6ad9d21945871a4a
1.0.3 - 2025-06-02
- Fix implementation for structs
2cdc6f578a192fd751ce105018a7f78b7ed8f852
1.0.2 - 2025-04-17
- More small changes to docs
147795c21a58e2308fbd43b571d9ba978c8a8a3b
1.0.1 - 2025-04-17
- Small changes to docs
f3578a7006fb8d6cb19f36e19b1387243a12bd21
1.0.0 - 2025-04-17
Big Release
posthog-elixir is now officially stable and running on v1. There are some breaking changes and some general improvements. Check MIGRATION.md for a guide on how to migrate.
What's changed
- Elixir v1.14+ is now a requirement
- Feature Flags now return a key called
payloadrather thanvalueto better align with the other SDKs - PostHog now requires you to initialize
Posthog.Applicationalongside your supervisor tree. This is required because of ourCachexsystem to properly track your FF usage.- We'll also include local evaluation in the near term, which will also require a GenServer, therefore, requiring us to use a Supervisor.
- Added
enabled_captureconfiguration option to disable PostHog tracking in development/test environments PostHog.capturenow requiresdistinct_idas a required second argument
0.4.4 - 2025-04-14
Fix inconsistent docs for properties - [#13]
0.4.3 - 2025-04-14
Improve docs setup - [#12]
0.4.2 - 2025-03-27
Allow atom() property keys - [#11]
0.4.1 - 2025-03-12
Fix feature flags broken implementation - [#10]
0.4.0 - 2025-02-11
Documentation + OTP/Elixir version bumps
0.3.0 - 2025-01-09
- Initial feature flags implementation (#7)
0.2.0 - 2024-05-04
- Allow extra headers (#3)
0.1.0 - 2020-06-06
- Initial release