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

Disable telemetry #46

Closed
Shatur opened this issue Oct 13, 2020 · 9 comments
Closed

Disable telemetry #46

Shatur opened this issue Oct 13, 2020 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@Shatur
Copy link

Shatur commented Oct 13, 2020

Could you add an option to disable telemetry?
Maybe should be enabled by default? I don't think Microsoft needs statistics on vcpkg from GitHub Actions.

@lukka
Copy link
Owner

lukka commented Oct 13, 2020

@Shatur95 yes, that makes sense. I think by creating environment variable VCPKG_DISABLE_METRICS, the telemetry would be disabled, e.g.:

uses: lukka/run-vcpkg@v4
with:
   ....
env:
   VCPKG_DISABLE_METRICS: 1

If this works, all i need is to add this information to the documentation.

@Shatur
Copy link
Author

Shatur commented Oct 13, 2020

Oh, yes, this will work :)

@Shatur Shatur closed this as completed Oct 13, 2020
@Shatur
Copy link
Author

Shatur commented Oct 19, 2021

With manifest mode it should be added to cmake runs.

@lukka, could we just pass -disableMetrics to bootstrap-vcpkg script by default?

@lukka
Copy link
Owner

lukka commented Oct 19, 2021

@Shatur yes, the action could just define the VCPKG_DISABLE_METRICS env var.

For now, this is achievable like this for run-cmake:

uses: lukka/run-cmake@v10
with:
   ....
env:
   VCPKG_DISABLE_METRICS: 1

Question: How would users be able to opt-in if the action always define that env var?
I'm thinking about minimizing changes, i.e. finding a solution that does not employ adding new inputs and much business logic.
Input is welcome :)

@lukka lukka reopened this Oct 19, 2021
@Shatur
Copy link
Author

Shatur commented Oct 19, 2021

Question: How would users be able to opt-in if the action always define that env var?

Is there a user who wants to enable telemetry for CI? I don't think so :)

I'm thinking about minimizing changes, i.e. finding a solution that does not employ adding new inputs and much business logic.

Totally understand. I would just pass -disableMetrics to bootstrap-vcpkg. It will disable the telemetry permanently.

@lukka
Copy link
Owner

lukka commented Oct 19, 2021

Probably this would be a simple one liner solution that allow the user to opt-in, but defaults to opt-out:

if (!process.env['VCPKG_ENABLE_METRICS']) process.env['VCPKG_DISABLE_METRICS'] = "1";

@Shatur
Copy link
Author

Shatur commented Oct 19, 2021

Sounds reasonable!

@Shatur
Copy link
Author

Shatur commented Oct 19, 2021

On the other hand, an option would be more intuitive for the user.
But I don't think anyone will need this opt-out. Is there at least one use-case for telemetry enabled on CI?

@lukka lukka added the help wanted Extra attention is needed label Dec 16, 2021
@lukka lukka mentioned this issue Jan 30, 2022
@lukka
Copy link
Owner

lukka commented Jan 30, 2022

Fixed in #126 , please try run-vcpkg@v10.1 and let me know!

@lukka lukka closed this as completed Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants