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

Implement set_tag shortcut for Analytics #728

Merged
merged 3 commits into from
Mar 26, 2019

Conversation

delner
Copy link
Contributor

@delner delner commented Mar 25, 2019

This pull request refactors Analytics a bit, and adds support for set_tag(Datadog::Ext::Analytics::TAG_ENABLED, true) to set the analytics metric to 1.0 as a shortcut.

@delner delner added core Involves Datadog core libraries feature Involves a product feature labels Mar 25, 2019
@delner delner added this to the 0.22.0 milestone Mar 25, 2019
@delner delner self-assigned this Mar 25, 2019
@delner delner requested a review from palazzem March 25, 2019 22:53
@delner delner force-pushed the feature/change_analytics_to_tag branch 2 times, most recently from 5a2bd9b to 43638da Compare March 25, 2019 23:08
@delner delner force-pushed the feature/change_analytics_to_tag branch from 43638da to 8f38713 Compare March 25, 2019 23:12
@@ -252,3 +253,6 @@ def now_allocations
end
end
end

# Include extensions after Span (for Ruby 1.9 compatibility)
Datadog::Span.send(:include, Datadog::Analytics::Span)
Copy link
Contributor

Choose a reason for hiding this comment

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

That keeps the Span class way more clean, even though we still have an external dependency.

@delner delner changed the base branch from 0.22-dev to master March 26, 2019 15:03
@delner delner modified the milestones: 0.22.0, 0.21.1 Mar 26, 2019
@delner delner merged commit 874544c into master Mar 26, 2019
@delner delner deleted the feature/change_analytics_to_tag branch March 26, 2019 16:22
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.

2 participants