Skip to content

Add telemetry to track usage and errors#2319

Merged
shaahji merged 44 commits intomicrosoft:mainfrom
bmehta001:bhamehta/track-actions
Mar 9, 2026
Merged

Add telemetry to track usage and errors#2319
shaahji merged 44 commits intomicrosoft:mainfrom
bmehta001:bhamehta/track-actions

Conversation

@bmehta001
Copy link
Contributor

@bmehta001 bmehta001 commented Feb 2, 2026

Add telemetry library and Olive-specific functionality

  • Convert .NET OneCollector library to Python and add to telemetry/library
  • Track actions/errors with telemetry decorator
  • Use heartbeat event to track general usage
  • Add flag to disable telemetry, if desired (--disable-telemetry)
  • Create telemetry cache so events can be sent when network connectivity is convenient
    Nits:
  • Break out version into separate file
  • Remove Python 3.9 from classifiers, since library only supports 3.10+
  • Update minimum onnxscript version needed, since FOLDED_FROM_KEY requires 0.5.3

Description of change for release notes:

Add telemetry to help improve our products and services

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

@bmehta001 bmehta001 requested a review from shaahji February 25, 2026 18:13
@bmehta001 bmehta001 changed the title Track usage, errors, and create disable_telemetry flag Add telemetry to track usage and errors Feb 25, 2026
@shaahji
Copy link
Collaborator

shaahji commented Mar 5, 2026

/az run

@shaahji shaahji enabled auto-merge (squash) March 5, 2026 22:04
@bmehta001
Copy link
Contributor Author

bmehta001 commented Mar 7, 2026

Hi @shaahji, Thanks for approving the PR. The Olive CI is pending, so I am not able to merge the PR. Do you know how to get it to run? This is my first contribution to the repo, so I am not sure if I am missing some permissions.

@shaahji
Copy link
Collaborator

shaahji commented Mar 9, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shaahji shaahji merged commit 43f81fb into microsoft:main Mar 9, 2026
15 checks passed
@bmehta001 bmehta001 deleted the bhamehta/track-actions branch March 11, 2026 03:09
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