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

Add analytics module for telemetry #413

Merged
merged 7 commits into from
Jan 6, 2023
Merged

Add analytics module for telemetry #413

merged 7 commits into from
Jan 6, 2023

Conversation

jaychia
Copy link
Contributor

@jaychia jaychia commented Dec 31, 2022

  1. Add analytics module
  2. Analytics can be disabled with the environment variable DAFT_ANALYTICS_ENABLED=0
  3. Analytics is only enabled for non-dev builds. Builds are dev builds by default, and can be tagged using the environment variable DAFT_PKG_BUILD_TYPE={dev|debug|nightly|release}

Cargo.toml Outdated
@@ -19,5 +19,5 @@ git-fetch-with-cli = true

[package]
name = "daft"
version = "0.0.20"
version = "0.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this is always patched before we build and publish a new Daft release - @samster25 is this a safe way of determining whether this is a Daft release build vs a local/dev build? This PR currently uses Daft version 0.0.0 as a corner-case to disable analytics.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't go about it that way, it would be better to build a flag for a release build rather than relying on the version number.

@jaychia jaychia force-pushed the jay/telemetry branch 2 times, most recently from 0cc9231 to 805612c Compare January 5, 2023 03:19
@jaychia jaychia merged commit bdcd7b4 into main Jan 6, 2023
@jaychia jaychia deleted the jay/telemetry branch January 6, 2023 01:45
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.

None yet

2 participants