-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(external docs): First batch of editorial edits for the Functions doc #18780
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,18 @@ remap: functions: for_each: { | |
Iterate over a collection. | ||
|
||
This function currently *does not* support recursive iteration. | ||
If you have a need for recursive iteration using `for_each`, | ||
which can't be solved using the `map_keys` or `map_values` | ||
enumeration functions (which *do* support recursion), then | ||
[please let us know](\(urls.new_feature_request))! | ||
Comment on lines
-9
to
-12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as previous, I removed this because I didn't know if we wanted to change it to contact Datadog support and link to https://docs.datadoghq.com/help/.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, we can drop. Ideally we'd have one link in the Vector docs and a different one in the Datadog docs. |
||
|
||
The function uses the "function closure syntax" to allow reading | ||
the key/value or index/value combination for each item in the | ||
collection. | ||
|
||
The same scoping rules apply to closure blocks as they do for | ||
regular blocks, meaning, any variable defined in parent scopes | ||
regular blocks. This means that any variable defined in parent scopes | ||
are accessible, and mutations to those variables are preserved, | ||
maycmlee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
but any new variables instantiated in the closure block are | ||
unavailable outside of the block. | ||
|
||
Check out the examples below to learn about the closure syntax. | ||
See the examples below to learn about the closure syntax. | ||
""" | ||
|
||
arguments: [ | ||
|
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 removed this because I didn't know if we wanted to change it to contact Datadog support and link to https://docs.datadoghq.com/help/. We would then need to have information for the support team so they know what to do when users reach about it. If we don't, we can still say something like:
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.
Gotcha, yeah, that seems fine to drop this block.