feat: add Aptabase analytics tracking - #23
Merged
Conversation
Some embedding models have strict limits on batch sizes and were crashing during namespace duplication when trying to generate embeddings for 100 vectors at once. Reducing the batch size to 50 provides better compatibility with various embedding APIs while still maintaining reasonable performance. This affects: - cloneNamespace: processes 50 vectors per batch - upsertVectors: batches in groups of 50 - batchImport: imports in batches of 50 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds analytics tracking using @aptabase/electron to monitor app usage and key user actions. The implementation is simple and non-intrusive. Tracked events: - app_started: When the app launches - app_closed: When the app quits - pinecone_connected: When user connects to Pinecone - vectors_searched: When user searches vectors (includes topK param) - index_duplicated: When user duplicates an index (includes vector count) To enable analytics, set the APTABASE_APP_KEY environment variable or update the placeholder in electron/analytics.ts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
- index_created (cloud, region, metric, dimension) - index_deleted - namespace_duplicated (vectorsCopied) - vector_created - vector_updated - vectors_deleted (count) - vectors_imported (count) All events use only generic metadata - no private data exposed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@aptabase/electronTracked Events
app_started: When the app launchesapp_closed: When the app quitspinecone_connected: When user successfully connects to Pineconevectors_searched: When user searches vectors (includes topK parameter)index_duplicated: When user duplicates an index (includes vector count)Implementation Details
electron/analytics.tsmodule for centralized analytics managementAPTABASE_APP_KEYenvironment variable is setSetup
To enable analytics, set the
APTABASE_APP_KEYenvironment variable or update the placeholder inelectron/analytics.ts.Test plan
🤖 Generated with Claude Code