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

feat: Add telemetry opt-out env var #212

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

marofke
Copy link
Contributor

@marofke marofke commented Mar 14, 2024

What was the problem/requirement? (What/Why)

We need an easy way for customers to opt-out of telemetry data collection for our adaptors, ideally through a Queue environment so the amount of configuration is minimal.

What was the solution? (How)

Add an opt-out env var, DEADLINE_CLOUD_TELEMETRY_OPT_OUT, which will override the config file setting if it exists. Customers can define this env var in their queue environment to opt out of telemetry data collection.

I also noticed some tests were throwing background errors, as telemetry wasn't mocked out in some tests, I've fixed those tests.

What is the impact of this change?

Customers can now easily opt-out. Also updated the readme to instruct users on opt-out instructions.

How was this change tested?

Tested manually, confirming telemetry was not sent went the env var was set to true/yes/1/on, and it did send if set to false/no/0/off (or didn't exist).

Tested with adaptors, confirming they didn't send telemetry when the env var was set.

Was this change documented?

There is a readme change.

Is this a breaking change?

No

@marofke marofke force-pushed the marofke/telemetry-opt-out-env-var branch from 0a8d0ab to d74c197 Compare March 14, 2024 20:17
@marofke marofke marked this pull request as ready for review March 14, 2024 20:42
@marofke marofke requested a review from a team as a code owner March 14, 2024 20:42
gahyusuh
gahyusuh previously approved these changes Mar 15, 2024
ddneilson
ddneilson previously approved these changes Mar 15, 2024
@marofke marofke dismissed stale reviews from ddneilson and gahyusuh via d06efcb March 15, 2024 15:31
@marofke marofke force-pushed the marofke/telemetry-opt-out-env-var branch from d74c197 to d06efcb Compare March 15, 2024 15:31
Signed-off-by: Caden Marofke <marofke@amazon.com>
@marofke marofke force-pushed the marofke/telemetry-opt-out-env-var branch from d06efcb to 315e0c6 Compare March 15, 2024 15:32
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.

3 participants