Skip to content

Sample high-volume analytics events#653

Merged
jahooma merged 1 commit into
mainfrom
jahooma/cli-posthog-audit
May 12, 2026
Merged

Sample high-volume analytics events#653
jahooma merged 1 commit into
mainfrom
jahooma/cli-posthog-audit

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 12, 2026

Summary

  • Add deterministic sampling for high-volume analytics while preserving core lifecycle and error events.
  • Summarize CLI log and tool-use payloads to avoid sending raw params or contents by default.
  • Add full-telemetry env overrides for targeted debugging and document them.

Validation

  • bun test common/src/util/tests/analytics-sampling.test.ts packages/agent-runtime/src/tests/xml-tool-result-ordering.test.ts
  • bun test cli/src/utils/tests/analytics-client.test.ts
  • bun run --filter @codebuff/common typecheck
  • bun run --filter @codebuff/agent-runtime typecheck
  • bun run --filter @codebuff/sdk typecheck
  • bun run --filter @codebuff/cli typecheck
  • git diff --check

@jahooma jahooma merged commit 0ecc385 into main May 12, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/cli-posthog-audit branch May 12, 2026 18:10
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.

1 participant