AppDynamics Knowledge Base

How to Display Complete and Partial URLs in AppDynamics BT/Transaction Snapshots

How to Display Complete and Partial URLs in AppDynamics BT/Transaction Snapshots

Configuring URL Display in AppDynamics BT/Transaction Snapshots for .NET MVC Web Apps

Issue: The URLs shown in BT/Transaction Snapshots are incomplete.
Goal:Need full URL to differentiate slow search requests in the system caused by specific user input.
             Full URL example: https://host/Search/userInput
Tests: I tested the URL behavior on a .NET MVC web app.

Solutions:

  1. URL Display on URL Column:
  2. Complete URL Display on BT name Column:

Next Steps:

For Partial URL in URL column /Search/userInput:

  1. Add App Server Agent Configuration.
  2. Set the following .NET Agent Configuration properties to false:
    • aspdotnet-core-naming-controlleraction
    • aspdotnet-core-naming-controllerarea
       

      image.png
  3. Restart the AppDynamics.Agent.Coordinator_service and IIS in the same sequence. After that, apply loads and check the BT/Snapshot if necessary.

For Complete URL in BT name https://host/Search/userInput:

  1. Navigate to Configuration > Instrumentation > Transaction Detection in your Application.
  2. Add New Rules:
    • Choose Include, proper Agent type, and Current Entry Point.
    • Fill in the Name Field (it will be shown on your BT).
    • Set Priority higher than Default Automatic detection for prioritization.
       
      image.png

  3. Rule Configuration:
    • Matching condition: URL is not empty
    • Custom Expression:
      ${HttpRequest.Scheme}://${HttpRequest.Host}${HttpRequest.Path}${HttpRequest.QueryString}
    • image.png
  4. Restart the AppDynamics.Agent.Coordinator_service and  IIS in the same sequence. After that, apply loads and check the BT/Snapshot if necessary.

Final Result:

image.png

image.png

Additional Information:

  • You can also add the custom expression by modifying the default Auto detection rule instead off Add new one like how I did in the step above. Result from modifying the default auto detection below.
     
    image.png

Labels (1)
Version history
Last update:
‎07-30-2024 04:23 PM
Updated by: