Skip to content

Conversation

@vlidholt
Copy link
Contributor

@vlidholt vlidholt commented Jan 29, 2026

Summary by CodeRabbit

  • Enhancements
    • Analytics tracking now supports configurable per-instance library names, enabling greater flexibility in multi-instance deployments.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

📝 Walkthrough

Walkthrough

Modified PostHogAnalytics class to support configurable library names per-instance. Replaced hard-coded 'cli_tools' library identifier with a constructor parameter that defaults to the original value, allowing customization while maintaining backward compatibility.

Changes

Cohort / File(s) Summary
PostHog Library Name Configuration
packages/cli_tools/lib/src/analytics/posthog.dart
Added static default library name constant and instance-level _libName field. Extended constructor with libName parameter (defaults to _defaultLibName) and updated track method to use configurable library name instead of hard-coded 'cli_tools'.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: making the library name configurable in PostHog analytics, which is the primary purpose of this PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Collaborator

@christerswahn christerswahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vlidholt vlidholt merged commit 660578f into serverpod:main Jan 29, 2026
13 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