I'm currently setting transaction labels (e.g. user id and other transaction specific data) in my spring-boot based microservice, but that information doesn't get copied across to any subsequent child spans. Which means that when I view a collection of those child spans through Kibana I lose their context.
Ideally I'd like any labels I apply to a transaction to also be copied across to all child spans. Is this functionality already available in the APM agent?
At the moment I'm attempting to solve this problem with AspectJ, and trying to work out which methods in the agent I should be wrapping to detect when a new span has been created to allow me to set the labels on it. Unfortunately this is proving to be quite difficult.