Customize URL names using PHP agent API

Customize URL names using PHP agent API

With APM Insight PHP agent, you can customize URL names for your web transactions. 


Here's how you can do it:

  1. Open the PHP script of the transaction for which you want to customize the URL.
  2. Add the following snippet in any part of the PHP script

<?php 

...

zpa_transaction_name("<any url name>") 

...

                      ?>

Note:
  •  The string must be alpha numeric. Only '_' and '/' are allowed as special characters. Any other special character will be replaced by '_'. 
  • If the API is called after uninstalling the PHP agent, your application would throw error. So remove the API when uninstalling PHP agent. 



    • Related Articles

    • Reconfigure APM Insight PHP agent during PHP version upgrade

      If you have upgraded your PHP version and face problems in monitoring after the upgrade, here's how you can resolve it.  In general, APM Insight PHP agent registers with the PHP version present in the server at the time of installation.  So when you ...
    • Automatically restart APM Insight PHP agent during system reboots

      To automatically restart APM Insight PHP agent during system reboots, use the below given steps: For systemd servers:  From APM Insight PHP agent version 2.8, agent will automatically start during server reboots for systemd supported Linux flavors.  ...
    • Ignore transactions from monitoring

      To ignore or drop transactions from monitoring by the APM Insight PHP agent, follow the below-given steps. Install APM Insight PHP agent in your application and add a configuration file /opt/zpa/conf/transaction_drop_patterns.conf Add transaction ...
    • Methods to upgrade PHP agent (Linux/Windows)

      PHP agent can be upgraded in 2 ways: Auto upgrade Manual upgrade Auto upgrade: When this feature is enabled, the latest version of the agent is automatically downloaded and deployed when it is made available After the deployment process is complete, ...
    • How to add an instance which was deleted earlier?

      Follow the steps given below to add a deleted PHP instance. For Linux, Delete instance.out file in /opt/zpa/bin/ directory rm /opt/zpa/bin/instance.out Edit apminsight.conf file in /opt/zpa/conf/ directory and rename the app by editing this line ...