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

Upgrade the dependencies to their latest stable versions #195

Merged
merged 1 commit into from
Jul 5, 2016

Conversation

trustin
Copy link
Member

@trustin trustin commented Jul 4, 2016

  • Brave 3.9.0
  • Jackson 2.7.5
  • Jetty 9.3.10
  • Jetty ALPN agent 2.0.3
  • Netty 4.1.2.Final
  • Netty TCNative (BoringSSL-static) 1.1.33.Fork18
  • Tomcat 8.0.36
  • Related changes:
    • Remove the references to the deprecated/removed APIs

@trustin trustin added the cleanup label Jul 4, 2016
@trustin trustin added this to the 0.20.1.Final milestone Jul 4, 2016
@trustin
Copy link
Member Author

trustin commented Jul 4, 2016

@inch772 PTAL
@synk Please review the changes related with the tracing client.

@@ -59,7 +60,8 @@ protected TracingRemoteInvoker(RemoteInvoker remoteInvoker, Brave brave) {
Method method, Object[] args) throws Exception {

// create new request adapter to catch generated spanId
final InternalClientRequestAdapter requestAdapter = new InternalClientRequestAdapter(method.getName());
final InternalClientRequestAdapter requestAdapter = new InternalClientRequestAdapter(
Endpoint.create(uri.toString(), 0, 0), method.getName());
Copy link
Member Author

@trustin trustin Jul 4, 2016

Choose a reason for hiding this comment

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

@synk It seems like ClientRequestAdapter now allows specifying the information about the endpoint. Because we do not know about the IP address and port number of the endpoint at this point, I just specified 0. As you see, I specified the full URI as a service name. Would this be OK?

By the way, I guess Endpoint API may change in the near future because it doesn't seem like a good idea to have no support for IPv6 addresses.

Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @adriancole FYI about lacking IPv6 support

Copy link
Contributor

Choose a reason for hiding this comment

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

service names should be low cardinality, as they end up in the UI as a drop-down. URI's usually aren't low cardinality.

There's a number of options people use, best is some sort of a platform id for the instance serving the request.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for an advice. Let me change it to URI.getAuthority() then.

Copy link
Contributor

Choose a reason for hiding this comment

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

ps on lacking ipv6 openzipkin/zipkin#306 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks a lot, @adriancole !

return TraceData.builder().build();
}

final HttpHeaders headers = ((HttpRequest) request).headers();
final HttpHeaders headers = ((HttpMessage) request).headers();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the above instanceof check be updated to match this cast?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes and no. Casting to HttpRequest is overly narrow downcast. I'm fine with either but I just wanted to make the IDEA inspector happy.

- Brave 3.9.0
- Jackson 2.7.5
- Jetty 9.3.10
- Jetty ALPN agent 2.0.3
- Netty 4.1.2.Final
- Netty TCNative (BoringSSL-static) 1.1.33.Fork18
- Tomcat 8.0.36
- Related changes:
  - Remove the references to the deprecated/removed APIs
@synk
Copy link
Contributor

synk commented Jul 4, 2016

@trustin The changes related with tracing looks good to me

@inch772
Copy link
Contributor

inch772 commented Jul 5, 2016

I also checked changes. LGTM!

@inch772 inch772 merged commit f28ab0a into line:master Jul 5, 2016
@trustin trustin deleted the dependencies branch July 5, 2016 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants