-
Notifications
You must be signed in to change notification settings - Fork 4
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
Scope of the Span not working as expected with Ratpack Promises #21
Comments
@llinder @adriancole @beckje01 Can you guys take a look at the modified sample app |
taking a look |
not exactly sure what this example app is trying to do. It took some time to figure out how to run it, which is kindof time lost. curl -X POST http://localhost:5050 -H'Content-Type: application/json' -d '{}' if possible, please instead add a test case to this as what you are mentioning doesn't seem to require a standalone app to vet https://github.com/openzipkin-contrib/brave-ratpack/blob/master/src/test/java/brave/http/ITServerTracingModule.java#L44 |
possibly related if coroutines are somehow at play here. openzipkin/brave#820 (comment) |
@adriancole This is a simple ratpack-kotlin app which has a chain that has a |
@adriancole So At what scenarios does the scope of a span closes unless we specify it explicitly. |
This app is just trying to prove that the scope of span fails on promises. |
@adriancole <https://github.com/adriancole> So At what scenarios does the
scope of a span closes unless we specify it explicitly.
Does the scope automatically closes on encountering a promise?
Unit tests are far easier to use for this type of question.
What took time was to understand a lot of why's in your example,
distracting for example, what impact is there with kotlin? Why is there a
json body and why are the attributes there? How does that relate to the
problem discussed.
If this is about promises, please isolate as there is limited time to serve
many people. It can be answered in a unit test, or an IT like in our
existing code.
|
Making a request:
Output:
Ultimately it looks like Also, a new trace context holder ends up in the execution registry in the |
I think this issue is also unique to parsing request bodies. |
ensure the same span is available after parsing requests, closes #21
Scope of the Span not working as expected with Ratpack Promises
newScope
function inRatpackCurrentTraceContext
has thereturn()
which gets executed when scope of span closes when a promise is expected. But is scope is still not over.The text was updated successfully, but these errors were encountered: