-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add self signed ssl to test server and test netty client #2344
Conversation
401322a
to
ec2130c
Compare
Update netty client instrumentation to accurately capture if https.
ec2130c
to
0743bdc
Compare
@@ -39,13 +40,15 @@ public void write(final ChannelHandlerContext ctx, final Object msg, final Chann | |||
final HttpRequest request = (HttpRequest) msg; | |||
|
|||
ctx.channel().attr(AttributeKeys.CLIENT_PARENT_ATTRIBUTE_KEY).set(activeSpan()); | |||
boolean isSecure = ctx.pipeline().get("ssl") != null; | |||
NettyHttpClientDecorator decorate = isSecure ? DECORATE_SECURE : DECORATE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a noun not a verb? I've always found this convention a bit strange to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep it consistent for now. If we want to change it, that should be done everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, changing the names in one go is a cross cutting (i.e. disruptive) change. This is a new local variable name and doesn't need to be consistent with anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you let me know what you'd prefer, I'll' make a PR that changes it everywhere.
dd-java-agent/testing/src/main/resources/datadog/trace/agent/test/server/http/README.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Update netty client instrumentation to accurately capture if https.