

appd.addAnalyticsData (key, value)Īttaches custom data to Analytics generated for the current transaction. Use appd.getTransaction() to access both custom and automatically detected business transactions. If no associated business transaction exists, returns false. Returns a handle to the business transaction associated with the specified request, if one exists. If an error is passed, the error is associated with the transaction and the transaction is flagged as an error transaction.
#Nodejs api code
When the code being instrumented crosses an async boundary. This re-associates the current execution context with the correct transaction and ensures any exit calls performed are charged to the right transaction.Įnds the transaction and reports transaction information to the Controller.When a long-running transaction needs to be kept alive beyond the default transaction timeout of five minutes. This prevents the agent from assuming the transaction has failed and then deleting the transaction.Re-joins a long-running or asynchronous transaction. See parseCorrelationInfo().Ĭreates and starts a custom business transaction and returns a transaction handle as a TimePromise instance, which is used for subsequent operations on this transaction. A CorrelationHeader object providing information to correlate with a transaction that is upstream to this one.Normal transaction matching and naming rules are applied, and any included RUM and/or transaction correlation information is picked up automatically. The following characters cannot be used in transaction names:, , |, &, and. A string specifying the name of the custom transaction.The transactionInfo parameter can be one of the following: transactionInfo string, HttpRequest or CorrelationHeader.CODE Basic Business Transaction Management appd.startTransaction(transactionInfo)
