[DOC] Improve docs on auto-instrumentation #2928
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Warn users the agent will only trace database queries if they're made within the context of a sampled transaction. Typically people use the agent with web applications, measuring the latency of requests, with details of operations such as database queries in those requests.
When not using a framework, the user needs to start a transaction using
apm.startTransaction
before making the query, and end the transaction after the query has completed.Ideally, it might be just a warning banner with a pointer to https://www.elastic.co/guide/en/apm/agent/nodejs/current/custom-transactions.html
From https://discuss.elastic.co/t/nodejs-apm-does-not-report-postgres-queries/208984/2
Please review the wording. This is just a doc improvement which I would like the docs team to review and backport
Checklist