Schedule demo

Customize transaction names via .NET agent API


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.

  1. Install APM Insight .NET agent or APM Insight .NET Core agent based on your application environment.
  2. Download or reference the NuGet package from the NuGet package manager to your application project.

    Note: The API has a class named Site24x7.Agent.Api to track the performance of application code.

  3. Use the method SetTransactionName(string customTransactionName)  to set a custom name for a transaction.
     
    Parameter NameDescription
    customTransactionNameThe 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..
    }

     
    Note:
    • When a single transaction is called multiple times, the name used in the first call will be used as the transaction name.
    • Unique values such as session ID, page titles, or GUID  should not be used in naming transactions.
    • The maximum number of unique transactions allowed is 350, as the transaction storage limit is set to that number.

Before renaming:

APM Insight .NET agent Customize transaction names via .NET agent API: Before renaming

After renaming:

APM Insight .NET agent Customize transaction names via .NET agent API: After renaming

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

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

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by over 6000+ businesses globally