Skip to content
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

In-Editor Analytics for inference #4677

Merged
merged 27 commits into from
Dec 15, 2020
Merged

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Nov 19, 2020

Proposed change(s)

Adds analytics tracking for inference. These are only sent when running inference in the editor, do not collect any PII beyond what Unity already collects in its base events, and can be opting out of other Unity Editor analytics will disable these too.

More detailed readme with opt-out information coming soon

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments


static bool EnableAnalytics()
{
if (s_EventRegistered)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is adapted from the example here (internal link)

@chriselion chriselion marked this pull request as ready for review December 5, 2020 01:47
Copy link
Contributor

@surfnerd surfnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you messaged me privately about adding code to allow for opting out of sending analytics. Please remove the FNV Hash code if you are going to use the Hash128 code path instead.

@chriselion
Copy link
Contributor Author

After investigating options, we won't be adding a separate opt-out for analytics; users will be able to use the existing options to opt out from all events. This will be clarified in a README soon.

Copy link
Contributor

@shihzy shihzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legal language LGTM.

@chriselion chriselion merged commit 258f4dc into master Dec 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the MLA-1545-inference-analytics branch December 15, 2020 17:10
chriselion pushed a commit that referenced this pull request Dec 15, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2021
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.

5 participants