You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am pretty sure this is because of a race between the span being closed and the response being sent.
I think previously most (but not all) JAX-RS responses would close the span before sending the response, after my change all JAX-RS responses do not have the span closed until after the response has been successfully sent.
This means that when using a REST client it is now possible that there is a race between the response being sent and the span finishing where the client can mark its span finished before the service that it invoked has finished its span. As the ordering is based on completion time rather than start time this can screw up the tests.
I think there were already some circumstances where this could happen, namely async responses and responses that use OutputStream, however I have attempted to change this back to the old behaviour.
I just stumbled upon this test failure in the TCK run on CI:
@stuartwdouglas I wonder if it could be related to your changes or not?
The text was updated successfully, but these errors were encountered: