Skip to content

AI Agent.xml (2.x)

Trask Stalnaker edited this page Jan 20, 2021 · 1 revision

Application Insights SDK Agent Configuration

A work in-progress...

Configuration file with defaults

<ApplicationInsightsAgent>
  <!--
  <AgentLogger />
  -->
  
  <!-- To exclude certain classes from instrumentation, list them here.
  <ExcludedPrefixes>
    <Prefix enabled="true|false">skip/instrumentation/for/these/package/prefixes</Prefix>
  </ExcludedPrefixes>
  -->
  
  <!-- 
  <SelfMode enabled="true|false" sdkPath="path/to/applicationinsights-core.jar" />
  -->
  
  <Instrumentation>
    <BuiltIn enabled="false"> <!-- if it's missing, default is false; if enabled=true, the defaults of child elements apply -->
      <Jedis enabled="true" thresholdInMS="10000" />
      <HTTP enabled="true" W3C="false" enableW3CBackCompat="true" />
      <JDBC enabled="true" />
      <MaxStatementQueryLimitInMS>10000</MaxStatementQueryLimitInMS>
      <!-- TBD: find result of setSimpleBuiltInClasses -->
    </BuiltIn>

    <!-- TBD -->

  </Instrumentation>

</ApplicationInsightsAgent>