- APM Node.js Agent: other versions:
- Introduction
- Set up the Agent
- Monitoring AWS Lambda Node.js Functions
- Monitoring Node.js Azure Functions
- Get started with Express
- Get started with Fastify
- Get started with hapi
- Get started with Koa
- Get started with Next.js
- Get started with Restify
- Get started with TypeScript
- Get started with a custom Node.js stack
- Starting the agent
- Supported technologies
- Configuration
- API Reference
- Metrics
- Logs
- OpenTelemetry bridge
- OpenTracing bridge
- Source map support
- ECMAScript module support
- Distributed tracing
- Message queues
- Performance Tuning
- Troubleshooting
- Upgrading
- Release notes
This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
API Reference
editAPI Reference
editThe API reference documentation is divided into three parts:
-
The
Agent
API - All functions and properties on theAgent
object. An instance of theAgent
object is acquired by requiring/importing the Node.js APM Agent module. TheAgent
is a singleton and the instance is usually referred to by the variableapm
in this documentation -
The
Transaction
API - All functions and properties on theTransaction
object. An instance of theTransaction
object is acquired by callingapm.startTransaction()
-
The
Span
API - All functions and properties on theSpan
object. An instance of theSpan
object is acquired by callingapm.startSpan()
Was this helpful?
Thank you for your feedback.