apm-agent-nodejs
apm-agent-nodejs copied to clipboard
Elastic APM Node.js Agent
See meta issue and spec for the description and details: - Meta issue: https://github.com/elastic/apm/issues/637 - Spec issue: https://github.com/elastic/apm/issues/638
Node v18.0.0 (https://nodejs.org/en/blog/announcements/v18-release-announce/) brings a global `fetch()` implementation (https://nodejs.org/api/all.html#all_globals_fetch). Can we instrument that? The node fetch() impl is, at least originally, based on undici, for which we have a separate...
The AWS Lambda Context object has an obscure setting, [`callbackWaitsForEmptyEventLoop`](https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/e5d62346eb08f1723348197df70d4f55f9c2ebcf/src/Runtime/CallbackContext.ts#L116). Per [the docs](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html#:~:text=callbackWaitsForEmptyEventLoop) > Set to false to send the response right away when the [callback](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html#nodejs-handler-sync) runs, instead of waiting...
We have https://github.com/elastic/kibana/pull/123241 open from @chrisronline which proposes adding some new machinery to kibana to collect per-plugin metrics (to then be collected by metricbeat and viewed in stack monitoring). I...
nodejs supports collecting `eventLoopUtilization(ELU)` metric [out of the box](https://nodejs.org/api/perf_hooks.html#performanceeventlooputilizationutilization1-utilization2). from the [introduction article](https://nodesource.com/blog/event-loop-utilization-nodejs): ``` The simplest definition of event loop utilization (or ELU) is the ratio of time the event...
https://www.elastic.co/guide/en/apm/agent/nodejs/current/metrics.html currently doesn't mention custom metrics at all. One has to *know* there is the `apm.registerMetrics(...)` API to go find it at https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-register-custom-metrics The metrics doc page should have a...
**Describe the bug** APM Data is not showing up / sent to APM Server in Elastic Cloud when running inside Kubernetes Container. **To Reproduce** Steps to reproduce the behavior: 1....
Is the `&& childOf._exitSpan` [here](https://github.com/elastic/apm-agent-nodejs/blob/main/lib/instrumentation/transaction.js#L153) a bug? I'm not sure the spec requires that children of exit spans need to be exit spans themselves to be kept. The context is...
For my On Week 2 work I started patches to add counters to internal agent stats for accumulated CPU time used. For example, these fields from `Agent#_getStats()`: ``` ... agentOverhead:...