Closed ewsachse closed 1 year ago
I have good news for you: a new release of the OneAgent SDK for Java is already planned that will include support for this. While I can't promise anything, tentatively it is expected to happen in the next few weeks.
Thank you for the update. I will keep an eye out for the new release.
1.9 with support for TraceContextInfo is now out: https://github.com/Dynatrace/OneAgent-SDK-for-Java/releases/tag/v1.9.0
If you have any trouble with the feature, please go through Dynatrace support or open a new issue.
The main documentation shows the Trace Context functionality, but this is not available in the Java API. It looks like this is available in the Python and .NET APIs. Can you add this feature to the Java API?
https://github.com/Dynatrace/OneAgent-SDK#trace-context
Trace Context
An instance of the
OneAgentSDK
provides access toTraceContextInfo
which holds information about the Trace-Id and Span-Id of the current PurePath node. This information can then be used to provide e.g. additional context in log messages.Please note that
TraceContextInfo
is not intended for tagging or context-propagation use cases. Dedicated APIs (e.g. remote calls or web requests) as well as built-in OneAgent sensors take care of linking services correctly.