-
Notifications
You must be signed in to change notification settings - Fork 237
Improved getting started guide for AWS Lambda #2630
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
Conversation
This updates the Lambda getting started docs to use some shared widgets from the apm-aws-lambda repo docs with the goal of making setup faster and clearer. Closes: #2615
There is a docs preview build at the "docs: preview" badge link above: https://apm-agent-nodejs_2630.docs-preview.app.elstc.co/diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if you also want to update the doc build script in this PR? For example, the build command in this file will need to include the new --resource $WHATEVER/apm-aws-lambda/docs
that you used to build these docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving -- some small optional punctuation suggestions and then a few questions about the widget, but overall it looks sound and no objections to it going in.
@@ -0,0 +1,99 @@ | |||
++++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trentm @bmorelli25 First -- this widget looks super cool. I didn't realize this sort of thing was possible with ASCII Doc. 💯
Second -- A couple of questions about the widget (apologies if these are retreads of discussions had elsewhere) --
-
Is this using an authenticated or unauthenticated request to
api.github.com
? It looks like the later to me -- if so, do we have any concerns about hitting GitHub's API limits for public requests? Per the docs -- For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the person making requests.? -
If there anything special we need to do/maintain in order to make sure this continues to work with future releases? (It looks like all we need to do is make sure the full ARNs are posted to the releases tab in GitHub as part of the release body text -- is there more to it than that?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize this sort of thing was possible with ASCII Doc.
All credit to @AlexanderWert and Brandon.
do we have any concerns about hitting GitHub's API limits for public requests?
It'll be limited by the IP of the personal reading the docs... so not super concerned. However, yah, I think the templating could perhaps improve to have reasonable content for if/when that request fails. Currently it'll look a little confusing. I opened elastic/apm-aws-lambda#171 for this.
anything special we need to do/maintain in order to make sure this continues to work with future releases?
My understanding is just that: full ARNs in the releases content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All credit to @AlexanderWert and Brandon.
The ARN generator was all Alex—a really neat use of Asciidoc's HTML passthrough blocks.
…vars png to land in the apm-aws-lambda repo
I'm guessing the image hasn't been cherrypicked to 8.1 yet. Looking and fixing now. EDIT: Fixed in elastic/apm-aws-lambda#172. |
Ah, no it hasn't. Will you move the pointer/reference (where ever it is) over to point to the "main" branch of apm-aws-lambda at some point? |
@trentm Correct. As soon as all three APM Agent PRs are merged, I'll revert elastic/docs#2408. Without this mapping, |
@elasticmachine, run elasticsearch-ci/docs |
Colton warned about this. I need to re-learn what setting we changed that caused this. In this case it is my commits that are not signed (bad me for not having setup GPG with GitHub). However, in the general case, we can't require external contributors to be signing commits for us to merge their PRs. |
This updates the Lambda getting started docs to use some shared widgets
from the apm-aws-lambda repo docs with the goal of making setup faster
and clearer.
Closes: #2615
This is related to and depends on elastic/apm-aws-lambda#158
See also equivalent PRs for Python (elastic/apm-agent-python#1511) and Java (elastic/apm-agent-java#2556).
Getting this to build locally to sanity test it is a bit of a chore:
Checklist