Class AgentTelConfigLoader

java.lang.Object
io.agenttel.extension.AgentTelConfigLoader

public final class AgentTelConfigLoader extends Object
Loads AgentTel configuration from external sources for the javaagent extension.

Configuration is resolved from (in priority order):

  1. Config file: -Dagenttel.config.file=agenttel.yml or AGENTTEL_CONFIG_FILE environment variable
  2. System properties: -Dagenttel.topology.team=payments
  3. Environment variables: AGENTTEL_TOPOLOGY_TEAM=payments

The config file uses the same YAML format as the Spring Boot starter:

 agenttel:
   topology:
     team: payments-platform
     tier: critical
   operations:
     "POST /api/payments":
       expected-latency-p50: "45ms"
       retryable: true
 
  • Method Details

    • load

      public static AgentTelConfig load()
      Loads configuration from config file, system properties, and environment variables.