Skip to content

fix: demote log message for failing to query APM server version from 'error' to 'debug' - #794

Merged
kruskall merged 1 commit into
elastic:mainfrom
trentm:trentm-lower-info-request-error-log-level
Oct 1, 2026
Merged

kruskall merged 1 commit into
elastic:mainfrom
trentm:trentm-lower-info-request-error-log-level

Conversation

@trentm

@trentm trentm commented Sep 29, 2026

Copy link
Copy Markdown
Member

For fast Lambda functions and a comparatively slow APM server response time,
it is relatively common for a Lambda cold start to hit the
'Error querying version from the APM server' case: the Lambda function
starts, the APM agent sends a version info request to APM server,
the Lambda function completes, the Lambda instance is frozen,
the request to APM server times-out, the Lambda instance is unfrozen for
a subsequent invocation, the version info request fails.

It is misleading to the user to log at error level for this.
Typically the APM agent will fallback to reasonable handling if it
cannot determine the APM server version. And if not, it is up to
the APM agent, not the proxying APM Lambda extension, to log
at a higher level if necessary.

…'error' to 'debug'

For fast Lambda functions and a comparatively slow APM server response time,
it is relatively common for a Lambda cold start to hit the
'Error querying version from the APM server' case: the Lambda function
starts, the APM agent sends a version info request to APM server,
the Lambda function completes, the Lambda instance is frozen,
the request to APM server times-out, the Lambda instance is unfrozen for
a subsequent invocation, the version info request fails.

It is misleading to the user to log at *error* level for this.
Typically the APM agent will fallback to reasonable handling if it
cannot determine the APM server version. And if not, it is up to
the APM *agent*, not the proxying APM Lambda extension, to log
at a higher level if necessary.
@trentm trentm self-assigned this Sep 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions Bot added the aws-λ-extension AWS Lambda Extension label Sep 29, 2026
@kruskall
kruskall merged commit acb3e5c into elastic:main Oct 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-λ-extension AWS Lambda Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants