Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Address two main sources of cruft in opentracing-java #121

Merged
merged 2 commits into from
Apr 16, 2017
Merged

Conversation

bhs
Copy link
Contributor

@bhs bhs commented Apr 15, 2017

This PR has two goals:

  • Remove the inheritance relationship between Tracer.SpanBuilder and SpanContext (which has baffled many people and frankly never made sense to me). Closes Why does Tracer.SpanBuilder extend SpanContext? #55.
  • Remove the opentracing-impl module entirely. The core opentracing-java github repo should be as lean as possible and exists to define the OpenTracing API contract for callers; it is not intended to be a source of helper code for Tracer implementations: such a thing might be valuable, but would be better place into a repo in the opentracing-contrib organization. Also, no known production Tracer implementations actually use opentracing-impl, nor does opentracing-mock. Closes Rename -impl and -impl-java8 modules to better reflect what they are #46. Closes Reorganize modules #44 (... or at least makes it obsolete).

cc @yurishkuro @pavolloffay @objectiser @wu-sheng @sjoerdtalsma who have expressed enthusiasm about various pieces of this in the past. I was thinking it would be nice to merge this before #115, as that PR would be simpler without the -impl stuff getting in the way.

Also cc @michaelsembwever who has been MIA for a while but probably won't like this. :-/ I would like to give you an opportunity to argue against it.

bhs added 2 commits April 15, 2017 15:30
It is not needed by callers and only exists as a convenience to Tracer
implementations; that said, no known Tracer implementation uses the
opentracing-impl module, and even if they did it could live in
opentracing-contrib somewhere.
Now that the opentracing-impl module has been removed, this is trivial
to address.
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

+1

@bhs
Copy link
Contributor Author

bhs commented Apr 16, 2017

I def won't merge this for at least a couple of days in case this angers anybody :)

Copy link
Contributor

@sjoerdtalsma sjoerdtalsma left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

Definitely +1 on this.

@bhs
Copy link
Contributor Author

bhs commented Apr 16, 2017

Given the apparent unanimity here, I am just going to merge this so that the #115 review will be easier to read.

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.

5 participants