Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

@oppiliappan
Copy link
Contributor

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.

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.
@oppiliappan oppiliappan requested a review from rsdy November 9, 2023 15:58
- marks full index resets as `SchemaUpgrade`s
- marks periodic reindex jobs as `PeriodicSync`s
Copy link
Contributor

@rsdy rsdy left a 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.

@oppiliappan oppiliappan requested a review from rsdy November 14, 2023 16:51
Copy link
Contributor

@rsdy rsdy left a 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

@ggordonhall ggordonhall merged commit c66e99a into main Nov 15, 2023
@ggordonhall ggordonhall deleted the nerdypepper/indexing-analytics branch November 15, 2023 12:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants