A newer version is available. For the latest information, see the
current release documentation.
API Reference
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
API Reference
editThe API reference documentation is divided into three parts:
-
The
AgentAPI - All functions and properties on theAgentobject. An instance of theAgentobject is acquired by calling theinit methodthe agent either via script element on the page or require theelastic-apm-rummodule in Node.js. TheAgentinstance is usually referred to by the variableapmin this documentation. -
The
TransactionAPI - All functions and properties on theTransactionobject. An instance of theTransactionobject is acquired by callingapm.startTransaction(). -
The
SpanAPI - All functions and properties on theSpanobject. An instance of theSpanobject is acquired by callingapm.startSpan().