This works fine in case the incoming request already contains a “tag” (the X-dynaTrace header). However, when incoming web requests haven’t been previously tagged, the web requests aren’t registered by the OneAgent SDK.
We still create the IncomingWebRequestTracer object and call it’s start() method, but the requests do not show up within Dynatrace.
Is something else required to trace incoming web requests that do not contain the dynatrace header?
The tracing code is being called from a Singleton and we discovered there was a mismatch between the messages and tracer objects.
It caused tracing sessions to be ended to soon or not even at all. The PurePaths not showing up as described above was probably just a side-effect of this issue (can’t say for sure as we also updated OneAgent and switched from OneAgent SDK 1.6 to 1.7).
Not sure how we missed that, only one small difference between the example and our actual code. It was fixed and now matches with the OneAgent-SDK-for-Java documentation.