Opt-out of dotnet telemetry for btcpay #599

Merged
greg merged 5 commits from feature/441-optout_dotnet_telemetry into master 2025-06-25 10:01:59 +00:00
Owner

This is done by setting an environment variable in the systemd unit

Fixes #441

This is done by setting an environment variable in the systemd unit Fixes #441
greg added the
enhancement
kredits-1
labels 2025-06-24 14:59:42 +00:00
greg added 1 commit 2025-06-24 14:59:43 +00:00
This is done by setting an environment variable in the systemd unit

Fixes #441
greg requested review from raucao 2025-06-24 14:59:43 +00:00
Author
Owner

Is btcpay safe to restart? I haven't done a Chef run yet

Is btcpay safe to restart? I haven't done a Chef run yet
raucao reviewed 2025-06-24 19:01:24 +00:00
@ -75,2 +75,4 @@
end
systemd_unit_env = "'DOTNET_CLI_TELEMETRY_OPTOUT=1'"
systemd_unit_env << " 'BTCPAY_EXPLORERPOSTGRES=#{nbxpg_connect}'" if defined?(nbxpg_connect)
Owner

This should fail if it's not defined, since you need the explorer to run the service. (I.e. just remove the if.)

This should fail if it's not defined, since you need the explorer to run the service. (I.e. just remove the `if`.)
greg marked this conversation as resolved
Owner

Yep, safe to restart anytime.

Yep, safe to restart anytime.
greg added 1 commit 2025-06-25 07:53:51 +00:00
Also move back the environment variable definitions to the hash
greg added 1 commit 2025-06-25 08:14:01 +00:00
Author
Owner

I ran this on bitcoin-2, this is now ready to review (addressed your comment and fixed the restart of the service/systemd unit) and merge

I ran this on bitcoin-2, this is now ready to review (addressed your comment and fixed the restart of the service/systemd unit) and merge
Owner

Do we also need this for the builds, since those are dotnet CLI operations, too?

Do we also need this for the builds, since those are dotnet CLI operations, too?
greg added 1 commit 2025-06-25 08:19:18 +00:00
greg added 1 commit 2025-06-25 08:35:42 +00:00
Author
Owner

Do we also need this for the builds, since those are dotnet CLI operations, too?

Good catch, I've just pushed the addition of the environment variable during the build

> Do we also need this for the builds, since those are dotnet CLI operations, too? Good catch, I've just pushed the addition of the environment variable during the build
raucao approved these changes 2025-06-25 09:59:12 +00:00
raucao left a comment
Owner

Looks good.👍

Looks good.👍
greg merged commit 8052c67d23 into master 2025-06-25 10:01:59 +00:00
greg deleted branch feature/441-optout_dotnet_telemetry 2025-06-25 10:01:59 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#599
No description provided.