Skip to content

Add http.query.string tag when enabled#860

Merged
tylerbenson merged 6 commits intomasterfrom
tyler/http.query.string
May 31, 2019
Merged

Add http.query.string tag when enabled#860
tylerbenson merged 6 commits intomasterfrom
tyler/http.query.string

Conversation

@tylerbenson
Copy link
Contributor

Disabled by default.

Enable for http servers with:

  • System Property: dd.http.server.tag.query-string=true
  • Environment Variable: DD_HTTP_SERVER_TAG_QUERY_STRING=true

Enable for http clients with:

  • System Property: dd.http.client.tag.query-string=true
  • Environment Variable: DD_HTTP_CLIENT_TAG_QUERY_STRING=true

Also contains a big commit that refactors all the http client unit tests to extend from the base HttpTestClient. Eventually it would be nice to reduce the need for all the inconsistencies.

@tylerbenson tylerbenson requested a review from a team as a code owner May 29, 2019 01:32
Add flexibility to handle inconsistencies between client integrations.
Disabled by default.

Enable for http servers with:
* System Property: `dd.http.server.tag.query-string=true`
* Environment Variable: `DD_HTTP_SERVER_TAG_QUERY_STRING=true`

Enable for http clients with:
* System Property: `dd.http.client.tag.query-string=true`
* Environment Variable: `DD_HTTP_CLIENT_TAG_QUERY_STRING=true`
@tylerbenson tylerbenson force-pushed the tyler/http.query.string branch from ac0a3cb to fc9f1d1 Compare May 29, 2019 20:55
Notably added a transformer to make config easier to test with by making INSTANCE public static volatile.
@tylerbenson tylerbenson force-pushed the tyler/http.query.string branch from dc1d589 to ff9ee0d Compare May 30, 2019 15:14
@tylerbenson tylerbenson force-pushed the tyler/http.query.string branch from ff9ee0d to 9cdf049 Compare May 30, 2019 16:09
@tylerbenson tylerbenson added this to the 0.30.0 milestone May 30, 2019
Copy link
Member

@labbati labbati left a comment

Choose a reason for hiding this comment

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

Awesome PR, I was able to clearly understand the intent I was navigating through the code.
I added a few questions but most of them are optional.
I tried to check all test changes and I am pretty sure you nailed them! But this is the famous cross-your-fingers type of test refactoring 😄

Copy link
Member

@labbati labbati left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@tylerbenson tylerbenson merged commit a889c46 into master May 31, 2019
@tylerbenson tylerbenson deleted the tyler/http.query.string branch May 31, 2019 16:47
@tylerbenson tylerbenson added the comp: core Tracer core label Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants