Continue Transaction

Correlates a custom business transaction with an upstream service.

Format

bool appdynamics_continue_transaction($correlation_header, $entry_point_type)

Description

Used by a downstream tier to correlate with a service that is not an entry point supported by the PHP Agent.

Parameters

$correlation_header: Correlation header of the upstream service with which to correlate.

It is the developer's responsibility to extract the correlation information from the service to provide the $correlation_header. See getCorrelationHeader().

$entry_point_type: Optional parameter that indicates the framework or protocol of the entry point for the continued transaction. By default, the value is automatically set to AD_CLI when the application is running in CLI mode, and AD_WEB otherwise.

Use this parameter to indicate a different originating PHP application type for continuing transactions that cross PHP types, such as for a transaction originating at a PHP web application that crosses to a PHP CLI leg of the transaction.

Valid entry point types are provided as PHP extension constants:

  • AD_WEB
  • AD_MVC
  • AD_DRUPAL
  • AD_WORDPRESS
  • AD_CLI
  • AD_WEBSERVICE

Entry point types are case sensitive.

Return

Returns true on success, false on failure.