-
Notifications
You must be signed in to change notification settings - Fork 201
Configure Dependecy Type in the Agent Configuration (2.x)
Trask Stalnaker edited this page Jan 20, 2021
·
1 revision
Configure Dependency Type in the Agent Configuration
When configuring classes to be instrumented in the AI-Agent.xml you can now set the 'Type' of class:
<Class name="full.path.to.TheClass" Type="Service">
<Method name="method"/>
</Class>
In this example the method "method" of class "full.path.to.TheClass" will be captured by the Agent. Every time it is called the Agent will send a Telemetry that measured the time it took to execute it, the Telemetry will also carry the Type as a DependencyType, which is 'Service' in this example. Doing this allows to filter or segment dependencies by the dependency type in Metrics Explorer or Search.
Note that by default the 'Type' will be set to 'Other'.