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

update analytics config with a simpler API that also fixes plugin config #573

Merged
merged 2 commits into from
May 29, 2019

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented May 22, 2019

This PR updates the Trace Analytics client configuration with a simpler API which no longer supports configuring individual operations. The previous API was confusing, difficult to use and had issues caused by its unnecessary complexity. We will revisit operation level configuration later with a more idiomatic API.

@rochdev rochdev added bug Something isn't working enhancement New feature or request core integrations labels May 22, 2019
@rochdev rochdev added this to the 0.12.0 milestone May 22, 2019
@rochdev rochdev requested a review from rishabh May 22, 2019 15:02
@@ -92,8 +92,6 @@ const web = {
[RESOURCE_NAME]: middleware._name || middleware.name || '<anonymous>'
})

analyticsSampler.sample(span, req._datadog.config.analytics)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we not sampling this anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

Without the per span name configuration this would never be sampled, so it was simply removed.

@rochdev rochdev merged commit 1f6f2f1 into v0.12.0 May 29, 2019
@rochdev rochdev deleted the simpler-analytics-config branch May 29, 2019 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core enhancement New feature or request integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants