Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Define json models for SamplingStrategyResponse and use them #103

Merged
merged 3 commits into from
Dec 5, 2016

Conversation

vprithvi
Copy link
Contributor

@vprithvi vprithvi commented Dec 5, 2016

  • Use our own json models instead of depending on thrift generated classes.
    This will help up when we move to manual thrift generation
  • Use Google's gson instead of jackson-databind
  • Add tests for HttpSamplingManager

- Use our own json models instead of depending on thrift generated classes.
  This will help up when we move to manual thrift generation
- Use Google's gson instead of jackson-databind
- Add tests for HttpSamplingManager
*/
package com.uber.jaeger.samplers.http;

import lombok.Value;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@value automatically sets the class to final, and fields to be private final
See https://projectlombok.org/features/Value.html

@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

@coveralls
Copy link

coveralls commented Dec 5, 2016

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 0a9d455 on add_models into d16cb6d on master.

@black-adder
Copy link
Contributor

LGTM although I'm not a fan of "samplers/http/" as a directory name for json models.

@@ -16,6 +16,7 @@ ext.jerseyVersion = '2.22.2'
ext.slf4jVersion = '1.7.16'
ext.jacksonVersion = '2.7.4'
Copy link
Member

Choose a reason for hiding this comment

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

do we still need this then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's used by crossdock

Copy link
Member

Choose a reason for hiding this comment

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

if only by crossdock, let's move it there, so it's less confusing at the top level.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it seems crossdock has it's own version. It's also in use by jaeger-jaxrs2, but it seems that it's unused.
I deleted it.

@coveralls
Copy link

coveralls commented Dec 5, 2016

Coverage Status

Coverage remained the same at 78.704% when pulling 235d7a2 on add_models into d16cb6d on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.704% when pulling 235d7a2 on add_models into d16cb6d on master.

@yurishkuro
Copy link
Member

LGTM

@vprithvi vprithvi merged commit 8015525 into master Dec 5, 2016
@vprithvi vprithvi deleted the add_models branch December 5, 2016 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants