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

Clean copy of #115#127

Closed
bhs wants to merge 45 commits intoopentracing:masterfrom
bhs:bhs/pr_115_clean
Closed

Clean copy of #115#127
bhs wants to merge 45 commits intoopentracing:masterfrom
bhs:bhs/pr_115_clean

Conversation

@bhs
Copy link
Copy Markdown
Contributor

@bhs bhs commented Apr 29, 2017

REVIEWERS: Feel free to look only at #115; I will keep these in lock-step until #115 merges. ... but #115 is breaking Github, and this one hopefully won't :)

cc @cwe1ss who asked for this.

PS: I am planning to manually merge back interesting discussions into #115, btw. No need to keep track of this one unless you want to.

bhs added 30 commits April 16, 2017 15:20
This builds on opentracing#111
and makes some improvements and changes.

There are a few important changes from the approach in that previous PR
(which I will leave around for comparison):

1) There is no more activate()-time parameter about finish() behavior.
   Instead, ActiveSpanHolder.Continuation has internal refcounting. This
   leads to more fluent code and fewer bugs: either from forgetting to
   finish(), or from not-knowing what to pass to activate(), especially
   in Runnable/Callable wrappers (which was a real problem in my
   explorations with "real" codebases).
2) Per the above, ActiveSpanHolder and ActiveSpanHolder.Continuation are
   abstract classes rather than pure interfaces, and thus the
   refcounting is actually part of OT-Java rather than OT-Java impls.
3) I also addressed some naming and minor semantic concerns from PR opentracing#111
Per PR feedback, separate out the concepts here, rename for clarity, and
update examples and documentation.
Also, have ActiveSpan inherit from Span.

Deal with fallout.
... via an MDC implementation.
Also, have ActiveSpan inherit from Span.

Deal with fallout.
Also, update a lot of comments and README stuff.
This is now built on top of the branch that removes -impl and the
SpanContex:SpanBuilder coupling.
@devinsba
Copy link
Copy Markdown
Contributor

since the merge this probably should be closed up

@bhs bhs closed this May 11, 2017
@bhs bhs deleted the bhs/pr_115_clean branch May 11, 2017 16:58
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.

2 participants