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

Fix 'sa' annotation encoding and remove the ':service_port' configuration #139

Merged

Conversation

ykitamura-mdsol
Copy link
Contributor

@ykitamura-mdsol ykitamura-mdsol commented Feb 27, 2019

Changed the hardcoded value for 'sa' annotation to true:
openzipkin/zipkin#2414

Updated the ':service_port' configuration to be optional Removed the ':service_port' configuration: #137

@adriancole @jcarres-mdsol

@codefromthecrypt
Copy link
Member

thanks, we still need to check to make sure thrift encodes that boolean properly. because I am not that familiar with infrastructure, it took me a lot of manual work to verify the other pull request. Maybe you know a quick way to test this to ensure the remote endpoint ends up ok (ex by looking at result of https://github.com/openzipkin/zipkin-ruby-example with this patched version, but using thrift to send not json)

@codefromthecrypt
Copy link
Member

one way to test is to make a test before this one that compares the result of serializing a span with "sa" to thrift vs a hex encoded value. Then, just make sure that still passes after this one.

@jcarres-mdsol
Copy link
Collaborator

We deleted the thrift dependency some versions ago and noone has complained so I do not thing anyone was using it.
We are talking about Ruby here, performance is never the first consideration, I'd be shocked when someone opens an issue because they use thrift + ruby .

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Feb 27, 2019 via email

@codefromthecrypt
Copy link
Member

here looks like it still uses thrift https://github.com/openzipkin/zipkin-ruby/blob/master/lib/zipkin-tracer/zipkin_kafka_tracer.rb#L37

if we switch this to a json list all good..

@jcarres-mdsol
Copy link
Collaborator

Oh, forgot about these guys. Yes, if the thrift library is added to the project which also contains zipkin-ruby library, then this adaptor loads it dynamically and uses it. So I guess we will need to support it or change this. It is scary because I've not kafka around, difficult to adhoc this.

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Feb 27, 2019 via email

@ykitamura-mdsol
Copy link
Contributor Author

got this error when requiring 'finagle-thrift':

Failure/Error: require 'finagle-thrift'

TypeError:
  superclass mismatch for class NullTracer

seems we lose the compatibility with thrift now.

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Feb 28, 2019 via email

@jcarres-mdsol
Copy link
Collaborator

I think so, let's kill Thrift definitely, none of the maintainers have a decent setup to test it out and noone has stepped up to fill the role, I don't think it will be missed but if so, I'd gladly merge any PR related to it.

@ykitamura-mdsol
Copy link
Contributor Author

it sounds like a separate story. I don't have a JRuby project, cannot test properly.

@@ -16,7 +16,7 @@ def initialize(app, config_hash)
# The name of the current service
@service_name = config[:service_name]
# The port where the current service is running
@service_port = config[:service_port] || DEFAULTS[:service_port]
@service_port = config[:service_port]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont thing we need this at all. This is only there for local and we are not sending it now, right?

README.md Outdated
@@ -18,7 +18,7 @@ use ZipkinTracer::RackHandler, config # config is optional
where `Rails.config.zipkin_tracer` or `config` is a hash that can contain the following keys:

* `:service_name` **REQUIRED** - the name of the service being traced. There are two ways to configure this value. Either write the service name in the config file or set the "DOMAIN" environment variable (e.g. 'test-service.example.com' or 'test-service'). The environment variable takes precedence over the config file value.
* `:service_port` **REQUIRED** - the port of the service being traced (e.g. 80 or 443)
* `:service_port` - the port of the service being traced (e.g. 80 or 443)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't we just delete this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated in 29af492

@jcarres-mdsol
Copy link
Collaborator

Yes, let's finish this one and make the migration in some other story

Copy link
Member

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

thrift being broke is separate

@ykitamura-mdsol ykitamura-mdsol changed the title Fix 'sa' annotation encoding and update the ':service_port' configuration to be optional Fix 'sa' annotation encoding and remove the ':service_port' configuration Mar 1, 2019
@jcarres-mdsol jcarres-mdsol merged commit 76ea494 into openzipkin:master Mar 1, 2019
@ykitamura-mdsol ykitamura-mdsol deleted the feature/update_port_and_sa branch March 5, 2019 02:03
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