What's Changed
⚠️ Breaking Change: PostHog adapter now uses PostHog Logs (OTLP) by default
This only affects you if you use
evlog/posthog. For all other adapters, this release is fully backward-compatible.
createPostHogDrain() now sends logs to PostHog Logs via OTLP instead of sending custom events via the /batch/ API. This is significantly cheaper and provides a dedicated log viewer in PostHog.
If you were using createPostHogDrain():
- Your logs will now appear in PostHog Logs instead of Events
- The
eventNameanddistinctIdoptions are no longer available oncreatePostHogDrain() - If you need the old custom events behavior, switch to
createPostHogEventsDrain()fromevlog/posthog
If you were using createPostHogLogsDrain():
- This function has been removed —
createPostHogDrain()now does the same thing
Migration:
- import { createPostHogDrain } from 'evlog/posthog'
+ import { createPostHogEventsDrain } from 'evlog/posthog'
- createPostHogDrain({ eventName: 'server_request', distinctId: 'my-service' })
+ createPostHogEventsDrain({ eventName: 'server_request', distinctId: 'my-service' })
Features 🚀
- feat(evlog): add edgeUrl ingest support by @gabrielelpidio in #110
Bug Fixes 🐞
Dependency Updates 📦
- chore(deps): update dependency next to v16 by @renovate[bot] in #104
- chore(deps): update dependency zod to v4 by @renovate[bot] in #106
- chore(deps): update dependency react to v19 by @renovate[bot] in #105
- chore(deps): update all non-major dependencies by @renovate[bot] in #103
- chore(deps): update all non-major dependencies by @renovate[bot] in #107
New Contributors
- @gabrielelpidio made their first contribution in #110
Full Changelog: https://github.com/HugoRCD/evlog/compare/evlog@1.11.0...evlog@2.0.0