Skip to content

Service Version per classloader #1725

Description

@tobiasstadler

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions