Class ElasticApmTracerBuilder


  • public class ElasticApmTracerBuilder
    extends java.lang.Object
    • Constructor Detail

      • ElasticApmTracerBuilder

        public ElasticApmTracerBuilder()
        Constructs a new builder instance with default configuration sources
      • ElasticApmTracerBuilder

        public ElasticApmTracerBuilder​(java.util.List<org.stagemonitor.configuration.source.ConfigurationSource> configSources)
        Constructs a new builder instance
        Parameters:
        configSources - configuration sources, obtained from calling getConfigSources(String)
    • Method Detail

      • configurationRegistry

        public ElasticApmTracerBuilder configurationRegistry​(org.stagemonitor.configuration.ConfigurationRegistry configurationRegistry)
      • buildAndStart

        public ElasticApmTracer buildAndStart()
        NOTE: THIS IS A CONVENIENCE METHOD ONLY TO BE USED WITHIN TESTS
        Returns:
        the built and started tracer
      • getConfigSources

        public static java.util.List<org.stagemonitor.configuration.source.ConfigurationSource> getConfigSources​(@Nullable
                                                                                                                 java.lang.String agentArguments)
        Provides an ordered list of local configuration sources, sorted in decreasing priority (first wins)
        Parameters:
        agentArguments - agent arguments (if any)
        Returns:
        ordered list of configuration sources