Skip to content

Conversation

bmorelli25
Copy link
Member

Backport

This will backport the following commits from main to 8.9:

Questions ?

Please refer to the Backport tool documentation

…nt release (elastic#402)

The "Monitoring AWS Lambda $lang Functions" doc pages use some
in-browser JS to interpolate the ARNs for the latest Lambda extension
release and the latest APM agent release. This changes that JS to use
the "latest release" GH API
    https://api.github.com/repos/elastic/${ghRepo}/releases/latest
rather than listing all (or the first page of GH releases):
    https://api.github.com/repos/elastic/${ghRepo}/releases
and picking the latest by `release.created_at`.

GH releases for a repo have a sense of the "latest" release
(see `--latest` flag to https://cli.github.com/manual/gh_release_create)
even if it isn't the latest tag or published release in time. The
Node.js APM agent will soon have 4.x releases and 3.x maintenance
releases. It is possible that a 3.x release is the latest in time, but
not marked as the "latest" release. This change ensures that the
Lambda doc page will pick the correct (4.x) one.

(cherry picked from commit 9899932)
@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Sep 7, 2023
@trentm trentm mentioned this pull request Sep 7, 2023
24 tasks
@bmorelli25 bmorelli25 merged commit f10041e into elastic:8.9 Sep 7, 2023
@bmorelli25 bmorelli25 deleted the backport/8.9/pr-402 branch September 7, 2023 17:25
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
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants