Skip to content

Remove hostname and port from HttpClientDecorator#1316

Merged
tylerbenson merged 2 commits into
DataDog:masterfrom
aarya123:hostAndPort
Mar 13, 2020
Merged

Remove hostname and port from HttpClientDecorator#1316
tylerbenson merged 2 commits into
DataDog:masterfrom
aarya123:hostAndPort

Conversation

@aarya123
Copy link
Copy Markdown
Contributor

@aarya123 aarya123 commented Mar 13, 2020

Was talking to @tylerbenson and saw that our traces were doing a lot of parsing of URIs. I've found the culprit to be in the hostname(REQUEST request) and port(REQUEST request) methods. Since this data is already computed via the initial URI parse to build the url, I see no need to delegate the extra calls for tags.

@aarya123 aarya123 requested a review from a team as a code owner March 13, 2020 00:12
@aarya123
Copy link
Copy Markdown
Contributor Author

I don't know much of groovy, so I'm just gonna make random changes until it works. lmk if I'm on the wrong track

@aarya123
Copy link
Copy Markdown
Contributor Author

First try! ;)

@aarya123
Copy link
Copy Markdown
Contributor Author

woe is me...

Copy link
Copy Markdown
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

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

Two small changes requested, then we can figure out the build errors.

Thanks for the PR!

@tylerbenson
Copy link
Copy Markdown
Contributor

The java 7 failure is unrelated.

@tylerbenson tylerbenson added the tag: performance Performance related changes label Mar 13, 2020
@tylerbenson tylerbenson merged commit a1fdfa5 into DataDog:master Mar 13, 2020
@randomanderson randomanderson added this to the 0.47.0 milestone Mar 23, 2020
@tylerbenson tylerbenson added the tag: community Community contribution label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: community Community contribution tag: performance Performance related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants