Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updated telemetry docs. #1237

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions waspc/cli/src/Wasp/Cli/Command/Telemetry/Project.hs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ getProjectTelemetryData userSignature projectHash cmdCall context =
_context = context
}

-- We don't really want or need to see all the things users
-- pass to the deploy script. Let's only track what we need.
-- | To preserve user's privacy, we capture only args (from `wasp deploy ...` cmd)
-- that are from the predefined set of keywords.
-- NOTE: If you update the list of keywords here, make sure to also update them in the official docs
-- on our webpage, under Telemetry.
extractKeyDeployArgs :: [String] -> [String]
extractKeyDeployArgs = intersect ["fly", "setup", "create-db", "deploy", "cmd"]

Expand Down
14 changes: 11 additions & 3 deletions web/docs/telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Our telemetry implementation is anonymized and very limited in its scope, focuse
- How many people and how often: tried to install Wasp, use Wasp, have built a Wasp app, or have deployed one?
- How many projects are created with Wasp?


## When and what is sent?

- Information is sent via HTTPS request when `wasp` CLI command is invoked.
Expand All @@ -22,10 +23,14 @@ Our telemetry implementation is anonymized and very limited in its scope, focuse
"project_hash": "6d7e561d62b955d1",
// True if command was `wasp build`, false otherwise.
"is_build": true,
// Only specific deploy keywords.
// Captures `wasp deploy ...` args, but only those from the limited, pre-defined list of keywords.
// Those are "fly", "setup", "create-db", "deploy" and "cmd". Everything else is ommited.
"deploy_cmd_args": "fly;deploy",
"wasp_version": "0.1.9.1",
"os": "linux"
"os": "linux",
// "CI" if running on CI, and whatever is the content of "WASP_TELEMETRY_CONTEXT" env var.
// We use this to track when execution is happening in some special context, like on Gitpod, Replit or similar.
"context": "CI"
}
```

Expand All @@ -40,7 +45,10 @@ Our telemetry implementation is anonymized and very limited in its scope, focuse

## Opting out

You can opt-out of telemetry by setting the `WASP_TELEMETRY_DISABLE` environment variable to any value, e.g.:
You sharing the telemetry data with us means a lot to us, since it helps us understand how popular Wasp is, how it is being used, how the changes we are doing affect usage, how many new vs old users there are, and just in general how Wasp is doing. We look at these numbers every morning and they drive us to make Wasp better.

However, if you wish to opt-out of telemetry, we understand!
You can do so by setting the `WASP_TELEMETRY_DISABLE` environment variable to any value, e.g.:

```
export WASP_TELEMETRY_DISABLE=1
Expand Down