-
Notifications
You must be signed in to change notification settings - Fork 74
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
Added netcore namespace #33
Added netcore namespace #33
Conversation
Does everything work as expected with the changes for dotnet 2.0 official from the thrift pull request? I had some trouble getting the cross tests running a netcore server, but the netcore client is passing against all other thrift language servers that have common transports and protocols. I was considering merging it into thrift as there have been no objections on the mailing list. By the way thrift already has "official" support for netcore but it is with dotnet 1.0 preview. |
@jeking3 yes I managed to get the cross tests working alright (although I did have to |
Okay, I am going to merge this in, and any help you can provide expanding the usability to other .net core levels or in getting the servers running in cross test would be great. |
@@ -24,6 +24,7 @@ include "jaeger.thrift" | |||
include "zipkincore.thrift" | |||
|
|||
namespace java com.uber.jaeger.agent.thrift | |||
namespace netcore Jaeger.Thrift.Agent |
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.
since which Thrift version is this instruction supported?
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.
netcore is supported for dotnet-1.0.0-preview in Thrift 0.10.0
As of today, I merged in dotnet 2.0.0 official support into the thrift master which will become 0.11.0.
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.
Thanks. In this case we shouldn't merge this since most of our client libs are using thrift 0.9.
We either need to strip this string during builds of other clients, or better have it added in dotnet project only.
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.
@yurishkuro I ran the thrift files against 0.9.2 and didn't get an issue. I did not alter the Makefile because of the version bump. At the moment I'm using the changes that just got merged to Master by @jeking3 so can't add a build file for that unless I use an unofficial thrift docker container for the build
The ubuntu-xenial Dockerfile in the thrift project includes almost all languages including dotnet-2.0 official and it is what we use to build most of the thrift jobs in Travis CI. |
@jeking3 the build uses the |
The docker image I described is the one we use to build thrift itself. I'm not sure what's in the thrift:0.92 image or where it came from. |
@jeking3 from what I can make from the Makefile we are using this image to build the |
That is not the official apache/thrift docker hub repository. It looks like it is maintained by someone else. The docker files that build it do not obtain files directly from the official github repo, but from a redistribution site or some kind. |
Ya I don't know how that thrift old version (0.9.2) works for Go since there are breaking changes in the client library. I tried using a local checkout of 0.9.2 and got errors. @gideonkorir thanks for link to image. |
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.
Thrift 0.9.2 logs a warning, but the build succeeds, so I think this is ok to add
[WARNING:/data/thrift/agent.thrift:20] No generator named 'netcore' could be found!
Added namespaces for netcore (C# with .netcore). Namespaces are:
Jaeger.Thrift
Jaeger.Thrift.Agent
Jaeger.Thrift.Agent.Zipkin
I did not modify the build script because at the moment I'm using an unofficial version of thrift that supports netcore