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

api: simplify _put codepath #956

Merged
merged 1 commit into from May 31, 2019
Merged

api: simplify _put codepath #956

merged 1 commit into from May 31, 2019

Conversation

jd
Copy link
Contributor

@jd jd commented May 31, 2019

The length is always provided and should be included in every request, so make
it mandatory.

Move the header name variable to the local API class, making it overridable by
a subclass — you never know!

The length is always provided and should be included in every request, so make
it mandatory.

Move the header name variable to the local API class, making it overridable by
a subclass — you never know!
@jd jd requested a review from a team as a code owner May 31, 2019 13:19
@@ -169,14 +171,12 @@ def send_traces(self, traces):
def send_services(self, *args, **kwargs):
return

def _put(self, endpoint, data, count=0):
Copy link
Member

Choose a reason for hiding this comment

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

Context, count used to be optional since we used to use the same endpoint for sending services, which did not include the trace count header.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙇

@jd jd merged commit a61b6b8 into DataDog:master May 31, 2019
@jd jd deleted the simplify-api-count branch May 31, 2019 15:02
@majorgreys majorgreys added this to the 0.26.0 milestone Jun 3, 2019
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

3 participants