Is your feature request related to a problem?
We deploy multiple wars with different version to a JBoss EAP. Currently we can only set the service version globally for all deployments, but we would like to set the version for each deployment individualy (similar to the service name).
Describe the solution you'd like
Can we please add overrideServiceVersionForClassLoader(ClassLoader classLoader, String serviceVersion) to the Tracer class, so we can use e.g.
@WebListener
public class ElasticAPMServiceNameAndVersionContextListener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent sce) {
Tracer tracer = GlobalTracer.get();
tracer.overrideServiceVersionForClassLoader(getClass().getClassLoader(), "...");
}
to set the service version.
Is your feature request related to a problem?
We deploy multiple wars with different version to a JBoss EAP. Currently we can only set the service version globally for all deployments, but we would like to set the version for each deployment individualy (similar to the service name).
Describe the solution you'd like
Can we please add
overrideServiceVersionForClassLoader(ClassLoader classLoader, String serviceVersion)to the Tracer class, so we can use e.g.to set the service version.