-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add repo sync analytics #1122
add repo sync analytics #1122
Conversation
tracks repo metadata on first index, or on full reindex (when the tantivy index hash is updated, for example), includes the following info: - repo ref - repo provider - size in bytes - number of qdrant chunks - time taken to index sample event: RepoEvent { name: "index", payload: [ ("repo_ref", String("nerdypepper/dijo")), ("provider", String("github")), ("file_count", Number(35)), ("chunk_count", Number(236)), ("bytes", String("116.59KB")), ("sync_time", String("4.957807429s")), ], } --- to test this changeset, set the following values in `local_config.json`: { "analytics_key": "..", "analytics_data_plane": ".." } run rudderstack in "live event stream" mode, and index a repository.
- marks full index resets as `SchemaUpgrade`s - marks periodic reindex jobs as `PeriodicSync`s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that this patch is interwoven with the indexing logic so much makes it slightly difficult to track. I'd prefer containing this logic a bit more, and preferably separating it out to another module from file
as much as we can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a lot cleaner. Thanks
tracks repo metadata on first index, or on full reindex (when the tantivy index hash is updated, for example), includes the following info:
sample event:
to test this changeset, set the following values in
local_config.json
:run rudderstack in "live event stream" mode, and index a repository.