Skip to content

codeintel: Add additional usage telemetry

Administrator requested to merge ef/codeintel-telemetry into main

Created by: efritz

Updates the payload sent by server update checks to have the following new fields for code intelligence usage.

"new_codeintel_usage": {
    "start_time": "...",
    "waus": 100,
    "precise_waus": 100,
    "search_waus": 100,
    "xrepo_waus": 100,
    "precise_xrepo_waus": 100,
    "search_xrepo_waus": 100,
    "event_summaries": [
        {
            "action": "...",
            "source": "...",
            "language_id": "...",
            "cross_repository": "...",
            "waus": "...",
            "total_actions": "..."
        },
        ...
    ],
    "num_repositories_with_upload_records": 100,
    "num_repositories_without_upload_records": 100,

    // New fields
    "num_repositories": 100,
    "num_repositories_with_fresh_upload_records": 100,
    "num_repositories_with_index_records": 100,
    "num_repositories_with_fresh_index_records": 100,
    "num_repositories_with_index_configuration_records": 100,
    "counts_by_language": [
        {
            "language_id": "go",
            "num_repositories_with_upload_records": 100,
            "num_repositories_with_fresh_upload_records": 100,
            "num_repositories_with_index_records": 100,
            "num_repositories_with_fresh_index_records": 100,
        },
        {
            "language_id": "typescript",
            "num_repositories_with_upload_records": 100,
            "num_repositories_with_fresh_upload_records": 100,
            "num_repositories_with_index_records": 100,
            "num_repositories_with_fresh_index_records": 100
        },
        ...
    },
    "settings_page_view_count": 100
}

Merge request reports

Loading