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 global flag #715

Merged
merged 2 commits into from
Mar 14, 2019
Merged

Add analytics global flag #715

merged 2 commits into from
Mar 14, 2019

Conversation

delner
Copy link
Contributor

@delner delner commented Mar 11, 2019

This pull request adds the Datadog.configuration.analytics_enabled setting and DD_TRACE_ANALYTICS_ENABLED environment variable to globally enable and disable trace analytics.

If true, only integrations that aren't explicitly configured to false will activate analytics. If false, only integrations that have been explicitly configured with true will activate analytics. If unset (left as nil), only integrations that have been explicitly configured with true will activate analytics.

Basically this means the global flag can be used to turn on certain integrations which default as nil (e.g. Rack, Racecar, etc), but will not activate others (such as Excon, Sequel, etc.) Those other integrations will require explicit configuration to activate analytics. By default, all analytics are off.

@delner delner added core Involves Datadog core libraries feature Involves a product feature labels Mar 11, 2019
@delner delner added this to the 0.21.0 milestone Mar 11, 2019
@delner delner self-assigned this Mar 11, 2019
Copy link
Member

@brettlangdon brettlangdon left a comment

Choose a reason for hiding this comment

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

For v1 we want global config to only enable for web framework integrations.

@delner delner force-pushed the feature/add_event_sample_rate_to_all_integrations branch 2 times, most recently from 34ae074 to b7660eb Compare March 11, 2019 19:09
@delner delner force-pushed the feature/analytics_global_flag branch from 1898b1f to 112fe03 Compare March 11, 2019 19:26
@delner
Copy link
Contributor Author

delner commented Mar 11, 2019

@brettlangdon This should be fixed, and ready for another review.

Copy link
Member

@brettlangdon brettlangdon left a comment

Choose a reason for hiding this comment

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

Do we need to update grape with , ignore_global_flag: false? as well?

@delner delner force-pushed the feature/analytics_global_flag branch from 112fe03 to 61a5f3c Compare March 12, 2019 17:10
@delner delner changed the base branch from feature/add_event_sample_rate_to_all_integrations to 0.21-dev March 12, 2019 17:10
@delner delner merged commit c11e390 into 0.21-dev Mar 14, 2019
@delner delner deleted the feature/analytics_global_flag branch March 14, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries feature Involves a product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants