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

Anonymous Telemetry #790

Merged
merged 16 commits into from
Apr 6, 2022
Merged

Anonymous Telemetry #790

merged 16 commits into from
Apr 6, 2022

Conversation

markphelps
Copy link
Collaborator

@markphelps markphelps commented Apr 6, 2022

It's finally time that I need to start collecting some very anonymous, very basic telemetry to better understand how many people are using Flipt in order to help drive future work.

Here is the output of what the telemetry payload looks like on the analytics service side:

{
  "anonymousId": "4c3b7faf-3f43-4082-b5e2-4446a247fe1b",
  "event": "flipt.ping",
  "integrations": {},
  "messageId": "8bd98d39-8dd4-483c-9844-76b958b2285e",
  "originalTimestamp": "2022-04-04T13:29:20.398139235Z",
  "properties": {
    "flipt": {
      "version": "1.7.0"
    },
    "uuid": "4c3b7faf-3f43-4082-b5e2-4446a247fe1b",
    "version": "1.0"
  },
  "receivedAt": "2022-04-04T13:29:25.890Z",
  "sentAt": "2022-04-04T13:29:25.417Z",
  "timestamp": "2022-04-04T13:29:20.871Z",
  "type": "track",
  "writeKey": "{REDACTED}"
}

Note there is no identifiable information not even an IP address, just a unique ID that gets created and stored on every host that lives at the new meta.StateDirectory location in a file called telemetry.json.

The StateDirectory can be set in the config file or by setting FLIPT_META_STATE_DIRECTORY to a string. It defaults to the value of os.UserConfigDir() or $HOME/.config for *nix systems.

Here's an example of the contents of telemetry.json:

{
  "version": "1.0", # the version of the telemetry data, not Flipt itself
  "uuid": "1545d8a8-7a66-4d8d-a158-0a1c576c68a6",
  "lastTimestamp": "2022-04-06T01:01:51Z"
}

This data is sent every 4 hours per host.

Telemetry can be disabled completely by setting meta.TelmetryEnabled to false in the config file or by setting the FLIPT_META_TELEMETRY_ENABLED env var to false

* master:
  Add note about helm chart
  Fix yarn lock
  Bump playwright from 1.19.2 to 1.20.1 in /ui (#774)
  Bump playwright-core from 1.19.2 to 1.20.1 in /ui (#773)
  Helm (#777)
…telemetry

* 'telemetry' of https://github.com/markphelps/flipt:
  Bump @playwright/test from 1.19.2 to 1.20.2 in /ui (#783)
  Bump playwright from 1.20.1 to 1.20.2 in /ui (#784)
  Bump @babel/plugin-transform-modules-commonjs in /ui (#781)
  Bump chalk from 5.0.0 to 5.0.1 in /ui (#782)
  Bump bufbuild/buf-setup-action from 1.3.0 to 1.3.1 (#780)
  Bump prettier from 2.5.1 to 2.6.2 in /ui (#785)
  Update README.md
  Bump alpine from 3.15.3 to 3.15.4 in /build (#787)
  Discord (#786)
  Update CODE_OF_CONDUCT.md
@markphelps markphelps enabled auto-merge (squash) April 6, 2022 22:11
@markphelps markphelps merged commit 65581fe into master Apr 6, 2022
@markphelps markphelps deleted the telemetry branch April 6, 2022 22:14
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.

1 participant