WebSetDiagnostics Function

Action

Sets appropriate HTTP headers for a diagnostics tool. A diagnostics tag is sent as an HTTP header along with each request, enabling linkage between client-side results and application diagnostics.

AppDynamics™ and dynaTrace Diagnostics™ each provide in-depth application performance diagnostics down to the code level. The WebSetDiagnostics function enables correlation of Web page and Web Service calls with both AppDynamics and dynaTrace PurePath™ results for root-cause analysis of performance bottlenecks.

Include file

WebAPI.bdh

Syntax

WebSetDiagnostics( in nOption : number );
Parameter Description
nOption Specify one of the following values:
  • WEB_DIAG_AppDynamics: Sends the appropriate HTTP headers for AppDynamics diagnostics

  • WEB_DIAG_dynaTraceDiagnostics: Sends the appropriate HTTP headers for dynaTrace Diagnostics

  • 0: Disables HTTP header tagging

Example

dcltrans
transaction TInit
  begin
    WebSetDiagnostics(WEB_DIAG_AppDynamics);
  end TInit;