-
Notifications
You must be signed in to change notification settings - Fork 35
Update docs describing the simplified onboarding for the extension. #122
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
…ding for the extension.
@trentm, @astorm, @basepi With this update I also removed the docs on requiring to set the following config options (as I think they rather belong to the individual agents, e.g. for Java they don't need to be set):
Question: Are the above config options set by the Node.js and Python agents anyways when the agents detect that they are running on Lambda? Or do we need to adapt the agent-specific lambda docs to include those config options there again? |
We set Adding the latter is easy if we are just setting it to localhost. If we're trying to automatically convert the value of Are we targeting that automatic conversion, or do we require the users to set |
We don't target that automatic conversion. We expect the users to set this env var for the extension. But in this case it would be less confusing for the users if we would set I guess we also need to update the lambda spec to include this. |
Just checked, |
@AlexanderWert You mean
The Node.js agent currently does not automatically set any of these when in a lambda environment. It could easily do so, and we could get a release out with them. Shall I open a ticket for this? We might want our Lambda docs to specifically mention a minimum APM agent version to use for each of the languages. Given we are still "experimental" we could perhaps get away without bothering at this point? |
Yes, you're right, this was a typo.
OK. But the default value for
I think this would simplify the onboarding experience for the users. And if it's a small change then let's do it as part of elastic/apm-agent-nodejs#2531.
Like that proposal! |
Co-authored-by: Trent Mick <[email protected]>
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.
just two very minor comments
Co-authored-by: Emily S <[email protected]>
Co-authored-by: Emily S <[email protected]>
Correct. |
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.
Looks great overall and the ARNs will greatly simplify things for users. Huzzah.
Two quick things that could this even better
-
If possible let's fix the docs build error so we're not scratching our heads come release time.
-
I notice that we've removed all mention of the installer -- this is mostly OK as the installer is documented in its own README.md. However, by removing the installer docs we also no longer have a section where we provide a list of the required/recommended env variables that a user could copy/paste. Also -- the installer smoothed over the whole "
ELASTIC_APM_SERVER_URL
doesn't point to APM Server, it points to the extension andELASTIC_APM_LAMBDA_APM_SERVER
is what points to the actual APM server" thing.
What do you think about adding a code section that lists the default/recommended env variables in one place? Something with a copy/pasteable code section that looks something like the following
ELASTIC_APM_CENTRAL_CONFIG=false
ELASTIC_APM_CLOUD_PROVIDER=none
ELASTIC_APM_DATA_RECEIVER_TIMEOUT_SECONDS=15
ELASTIC_APM_LAMBDA_APM_SERVER=https://your-apm-server-url:443 # this is your _real_ APM Server URL
ELASTIC_APM_SECRET_TOKEN=shhhhhhitsasecret
ELASTIC_APM_SERVER_URL=http://localhost:8200 # this points at the extension endpoint
Co-authored-by: Trent Mick <[email protected]>
The following three options will be set to meaningful defaults by the APM agents internally (when they detect an AWS Lambda environment):
So, to reduce confusion, I think we should not even mention them here. WDYT? This leaves us with the documented, extension-specific config options. Do you think having a code-block (like the one below) in the docs for these options in addition would provide additional value?
|
WITI: If that behavior can be successfully coordinated across the agents then yes, it doesn't seem like we'll need to mention these specific variables.
Good question -- thinking out loud, without one central place in the docs that shows the required lambda env. configuration how will a new user/customer know what values are required when setting up their new Lambda function? Or put another way, is is acceptable to presume that they'll read each individual env. var definition and extract a working configuration themselves? @bmorelli25 Do you have and advice/insight on how we tend to handle these sorts of configuration heavy situations across our docs? Is it better or worse to hand the user a full block of the default configuration values they'll need? All that said -- my opinions here aren't strong enough to be blocking. I just want to make sure we're being intentional. :) Approving as is and leaving the above in your hands. |
? |
At least in the APM Server docs, we do typically provide a copy/pastable code block of configs to show what a typical or basic setup might look like. For the settings with meaningful defaults, I think it's fine to omit them from the documentation for now. If an SDH or Discuss question comes in, we can reconsider.
When I think about it? Might be missing an "a". Fun game. |
Wordle Is Totally Intractable? |
…lastic#122) * Update aws-lambda-extension.asciidoc describing the simplified onboarding for the extension. * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Trent Mick <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Emily S <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Emily S <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Trent Mick <[email protected]> * Update aws-lambda-extension.asciidoc * added example configuration for the extension * fix reference Co-authored-by: Trent Mick <[email protected]> Co-authored-by: Emily S <[email protected]>
…122) (#134) * Update aws-lambda-extension.asciidoc describing the simplified onboarding for the extension. * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Trent Mick <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Emily S <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Emily S <[email protected]> * Update docs/aws-lambda-extension.asciidoc Co-authored-by: Trent Mick <[email protected]> * Update aws-lambda-extension.asciidoc * added example configuration for the extension * fix reference Co-authored-by: Trent Mick <[email protected]> Co-authored-by: Emily S <[email protected]> Co-authored-by: Alexander Wert <[email protected]> Co-authored-by: Trent Mick <[email protected]> Co-authored-by: Emily S <[email protected]>
Doc Preview