Skip to content

Conversation

@tylerbenson
Copy link
Contributor

Includes change to netty instrumentation so fireChannelRead is also called "in scope".

@tylerbenson tylerbenson requested a review from a team as a code owner July 23, 2019 20:51
@tylerbenson tylerbenson force-pushed the tyler/http-server-testing branch from 9a961ae to f77b4fa Compare July 24, 2019 21:31
@tylerbenson tylerbenson force-pushed the tyler/http-server-testing branch from f77b4fa to c1ec277 Compare July 24, 2019 22:54
Copy link
Contributor

@randomanderson randomanderson left a comment

Choose a reason for hiding this comment

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

This pull request is 3 changes:

  1. Extracting the common gradle dependecies. 👍 . Over time, or in a separate pull request, we can update the other .gradle files
  2. Changing fireChannelRead span to be in scope. Not knowledgeable enough about netty to comment
  3. The base server test. This is a great start. The methods that each server test needs to implement are minimal. One possible change might be to enforce the ServerAdvice instrumentation at compile time somehow. Not sure how possible it is, but I can definitely see myself forgetting to create the Instrumenter. The comment next to the failing test does help.

My biggest gripe is that so much code is duplicated between the two netty instrumentations. e.g. the two versions of HttpServerRequestTracingHandler are identical except they import a different version of AttributeKeys. Many changes here are the same exact +/- lines done twice. However, I would classify removing the duplication as "instrumentation cleanup" outside of the scope of this pull request.

@tylerbenson
Copy link
Contributor Author

Thanks for the summary. I didn't originally have #1 in here, but it was needed to have instrumentation in the tests.

@tylerbenson tylerbenson merged commit 023fb39 into master Jul 26, 2019
@tylerbenson tylerbenson deleted the tyler/http-server-testing branch July 26, 2019 19:59
@tylerbenson tylerbenson added this to the 0.32.0 milestone Aug 20, 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.

3 participants