Skip to content

feat(observability): adopt Platform 0.4.2 and send real ids to PostHog - #111

Merged
clbotdev merged 2 commits into
mainfrom
platform-0.4.2
Oct 21, 2026
Merged

clbotdev merged 2 commits into
mainfrom
platform-0.4.2

Conversation

@clbotdev

Copy link
Copy Markdown
Contributor

Adopts Platform 0.4.2 (codelitdev/platform#12, released in codelitdev/platform#13).

What changed

  • Version bump: every @codelitdev/* package goes to 0.4.2, exact pins. platform-cli@0.4.2 doctor reports no issues, and sync moved the managed conformance workflow to 0.4.2.
  • identifierKeys: src/observability/instance.ts lists SendLit's id properties (team_id, organization_id, contact_id, sequence_id, form_id and others), so their UUIDs reach PostHog instead of [redacted-token]. A new test covers it.

What 0.4.2 fixes for SendLit

  • Telemetry delivery: PostHog events and OTLP logs are batched and retried, with a 10 s timeout. Before, each was its own request, cut off after 2 s with no retry, and a test run lost 8 of 32 requests.
  • IDs: id properties aren't masked as tokens any more.
  • Sign-in page: signup refusals are shown to the person, e.g. "Disposable or temporary email addresses can't be used to sign up…", instead of "Sign-in failed. Please try again." (oauth-server-kit: hosted sign-in page hides the API's error message platform#11).

Testing

  • API 743 tests, web 81 tests, typecheck, lint, format, check:drift, test:conformance and the docs build all pass.
  • Live, with the published 0.4.2 (cloud mode, scratch DB):
    • The sign-in page showed the disposable-email reason.
    • Telemetry went to PostHog /batch/; every request returned 200.
  • Earlier, with the same Platform code from its branch, in the real PostHog project:
    • organization_id arrived as a real UUID.
    • Every abuse event from two full test runs arrived, with none dropped.

platform-cli sync moves the conformance workflow to 0.4.2. 0.4.2 batches
and retries telemetry and adds contextPolicy.identifierKeys; list SendLit's
id properties there so team_id, organization_id and other UUIDs reach
PostHog instead of [redacted-token]. The hosted sign-in page now shows
signup refusals (codelitdev/platform#11).
@clbotdev
clbotdev merged commit 9e0841e into main Oct 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants