opentracing-java icon indicating copy to clipboard operation
opentracing-java copied to clipboard

Cover span handof scenarios in a bit more detail

Open rbtcollins opened this issue 8 years ago • 7 comments

This came up because I had to ask in gitter.im about the details here, so I thought I'd capture it for everyone.

rbtcollins avatar Nov 07 '17 12:11 rbtcollins

Coverage Status

Coverage remained the same at 73.09% when pulling 9c94df0aa5dc89903a0ecb50c78b0bf85ab2672a on rbtcollins:patch-1 into e000eb0c62ee3149ae272c6c197bfc039d2c2749 on opentracing:master.

coveralls avatar Nov 07 '17 12:11 coveralls

@rbtcollins note that continuations are most likely going away in 0.31

yurishkuro avatar Nov 07 '17 15:11 yurishkuro

@yurishkuro sure, but doing both of these things has to remain possible right? So the merge of the Scopes or whatever should have the same, but updated docs in it. What do you think of the docs? Are they accurate? Can has merge? :)

rbtcollins avatar Nov 07 '17 19:11 rbtcollins

I think my point is that in 0.31 the Continuation is going away because it was demonstrated that most async scenarios can be handled without continuations and ref counting. The Scope in 0.31 is functionally equivalent to ActiveSpan in 0.30. That's why I questioned the value of writing examples that still utilize continuations rather than writing them using ActiveSpan only.

yurishkuro avatar Nov 07 '17 20:11 yurishkuro

Well, its not clear to me yet how we'll integrate that in in Xenon. We just merged 0.30.0 instrumentation, and when I went looking at the 0.31 branch there was no updated user docs; so I figured updating the current docs was reasonable to cover this use case, and then when the 0.31 docs are updated, whoever is doing that can update this as well.

rbtcollins avatar Nov 07 '17 21:11 rbtcollins

@rbtcollins I'm sure we'll do more copy editing, but the docs are updated: https://github.com/opentracing/opentracing-java/tree/v0.31.0

tedsuo avatar Nov 14 '17 00:11 tedsuo

Hey @rbtcollins

Sorry for the long delayed ping. Wondering if we should discard these changes, now that we don't use Continuations as part of the main API (we still have AutoFinishScopeManager, but that is part of opentracing-util and does extra things not covered by it ;) )

Let us know.

carlosalberto avatar Jun 20 '18 18:06 carlosalberto