Skip to content

Update README.md to specify gathered telemetry#16379

Merged
daxian-dbw merged 9 commits intoPowerShell:masterfrom
JamesWTruher:ReadMeTelemetryUpdate01
Nov 10, 2021
Merged

Update README.md to specify gathered telemetry#16379
daxian-dbw merged 9 commits intoPowerShell:masterfrom
JamesWTruher:ReadMeTelemetryUpdate01

Conversation

@JamesWTruher
Copy link
Copy Markdown
Collaborator

PR Summary

The telemetry statement in the README seems out of date.

PR Context

The telemetry statement should fully describe the data we gather.

PR Checklist

Comment thread README.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't it more accurate that if it's anything other than 1,yes, or true then it defaults to false meaning to send telemetry?

Comment thread README.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it would be great to make these links to the source code where we collect this information

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make sure to use the permanent links to files.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@SteveL-MSFT - this could be problematic if the code changes

Comment thread README.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

make that a link instead of text to the source line

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make sure to use the permanent links to files.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- The name of a module when loaded if it is in the pre-approved list of modules (see line 128 in src/System.Management.Automation/utils/Telemetry.cs).
- The name of a module when loaded if it is in the pre-approved [list of modules](https://github.com/PowerShell/PowerShell/blob/d74c6bfb7bc2ff84ae15cceeba2fb7dc5c3ccd17/src/System.Management.Automation/utils/Telemetry.cs#L128)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If it is not best practice to include this line number perma-link then feel free to ignore.

Comment thread README.md Outdated
Comment on lines 253 to 254
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does the guid representing the session get generated for every session? or are those 2 using the same guid?

Comment thread README.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
- The value of the environment variable `POWERSHELL_DISTRIBUTION_CHANNEL`
- The value of the environment variable `POWERSHELL_DISTRIBUTION_CHANNEL`, if available

Comment thread README.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just out of curiosity, how useful do we think it is to collect the command type information?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@JamesWTruher can you please comment on this question? I'm just curious how useful this information turns out to be in our telemetry analysis so far.

@daxian-dbw
Copy link
Copy Markdown
Member

Pointing to the topic doc is surely better.

@daxian-dbw
Copy link
Copy Markdown
Member

@JamesWTruher please fix up the spelling issue, which caused the 'static-analysis' CI failed.

Copy link
Copy Markdown
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

'static-analysis' CI failed, need to fix the spelling issue.

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 5, 2021
@JamesWTruher JamesWTruher force-pushed the ReadMeTelemetryUpdate01 branch from b8c6be1 to aaddade Compare November 9, 2021 23:30
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 9, 2021
@pull-request-quantifier-deprecated
Copy link
Copy Markdown

This PR has 12 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

Label      : Extra Small
Size       : +9 -3
Percentile : 4.8%

Total files changed: 5

Change summary by file extension:
.spelling : +1 -0
.yml : +6 -0
.md : +2 -3

Change counts above are quantified counts, based on the PullRequestQuantifier customizations.

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a
balance between between PR complexity and PR review overhead. PRs within the
optimal size (typical small, or medium sized PRs) mean:

  • Fast and predictable releases to production:
    • Optimal size changes are more likely to be reviewed faster with fewer
      iterations.
    • Similarity in low PR complexity drives similar review times.
  • Review quality is likely higher as complexity is lower:
    • Bugs are more likely to be detected.
    • Code inconsistencies are more likely to be detetcted.
  • Knowledge sharing is improved within the participants:
    • Small portions can be assimilated better.
  • Better engineering practices are exercised:
    • Solving big problems by dividing them in well contained, smaller problems.
    • Exercising separation of concerns within the code changes.

What can I do to optimize my changes

  • Use the PullRequestQuantifier to quantify your PR accurately
    • Create a context profile for your repo using the context generator
    • Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the Excluded section from your prquantifier.yaml context profile.
    • Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your prquantifier.yaml context profile.
    • Only use the labels that matter to you, see context specification to customize your prquantifier.yaml context profile.
  • Change your engineering behaviors
    • For PRs that fall outside of the desired spectrum, review the details and check if:
      • Your PR could be split in smaller, self-contained PRs instead
      • Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR).

How to interpret the change counts in git diff output

  • One line was added: +1 -0
  • One line was deleted: +0 -1
  • One line was modified: +1 -1 (git diff doesn't know about modified, it will
    interpret that line like one addition plus one deletion)
  • Change percentiles: Change characteristics (addition, deletion, modification)
    of this PR in relation to all other PRs within the repository.


Was this comment helpful? 👍  :ok_hand:  :thumbsdown: (Email)
Customize PullRequestQuantifier for this repository.

@TravisEz13
Copy link
Copy Markdown
Member

I updated the CI yamls so future PRs to readme and spelling shouldn't trigger product tests, but because the PR now touches those files, we need to run those pipelines to validate those changes.

Copy link
Copy Markdown
Collaborator

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

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

Changes look good to me.

@daxian-dbw daxian-dbw merged commit 19b5647 into PowerShell:master Nov 10, 2021
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Nov 11, 2021
@anmenaga anmenaga added CL-Docs Indicates that a PR should be marked as a documentation change in the Change Log CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log and removed CL-Docs Indicates that a PR should be marked as a documentation change in the Change Log labels Dec 13, 2021
@ghost
Copy link
Copy Markdown

ghost commented Dec 16, 2021

🎉v7.3.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

TrapGodBrim pushed a commit to TrapGodBrim/PowerShell that referenced this pull request Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log Extra Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants