You can keep track of business-critical transactions and identify them easily by customizing transaction names using the .NET agent API. To do so, follow the below given instructions.
Note: The API has a class named Site24x7.Agent.Api to track the performance of application code.
| Parameter Name | Description |
|---|---|
| customTransactionName | The name of the transaction. Only the first 255 characters are retained. |
Example:
The following method illustrates how to set a transaction name via the API.
public int UserLogin(string email, string sessionKey, bool isExternal)
{
Site24x7.Agent.Api.SetTransactionName("MyLoginPage");
//Your application code goes here..
}
Before renaming:

After renaming:

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.
Reviewer Role: Research and Development