-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for explicitly disabling sending to APM server #2101
Comments
Ideas for the configuration var for this:
Ideas welcome. |
As a quick PoC hack one could configure the Node.js APM agent to do the same via |
Eyal and Felix pointed out that
This sounds like (almost?) exactly what we want here. If so, then we should use the equivalent config name. |
Some related comments at elastic/kibana#101587 (comment) |
Use case: Use the Node.js APM agent for async context tracking (via its transactions), but explicitly not have an APM server setup/configured to which to send trace data. Some things that the user can get out of this (even though transactions/spans/metrics/errors are not being sent to APM server) are:
The latter is a possible use case for Kibana (from elastic/kibana#97934) to be able to track the source of a Kibana action (called "execution context" on that issue; examples are Kibana front-end calls to the Kibana back-end API, other non-Kibana calls to the API, internal Kibana background tasks) through to an Elasticsearch slowlogs entry.
This would be a third run mode for the agent, separate from:
active: false
- which means the agent is not running at all, packages have not been instrumented, async context tracking is not being donerecording: false
- which means the agent is minimally running, packages have been instrumented, async context tracking is not being done, central config is being polled to allow recording to be turned back on. Note that the Node.js APM agent currently doesn't yet support therecording
mode. (Java agent docs, Python agent docs)Since v3.14.0, an active agent will work without an APM server. However, not nicely:
log.error
every 30s or so (depends on events being generated and a backoff time strategy) that it cannot contact APM server.maxQueueSize
events in memory.The goal of this mode is to make the state explicit (no
log.error
ing) and limit overhead to a minimum.The text was updated successfully, but these errors were encountered: