Skip to content

Commit

Permalink
[processor/transform] fix typo in resource example for logs (#31402)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Fixes a typo in the config example of resource context statements for
logs.

**Link to tracking Issue:** <Issue number if applicable>

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>
  • Loading branch information
johannaojeling authored Feb 25, 2024
1 parent 3652b44 commit 58f5fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/transformprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ transform:
log_statements:
- context: resource
statements:
- keep_keys(resource.attributes, ["service.name", "service.namespace", "cloud.region"])
- keep_keys(attributes, ["service.name", "service.namespace", "cloud.region"])
- context: log
statements:
- set(severity_text, "FAIL") where body == "request failed"
Expand Down

0 comments on commit 58f5fb7

Please sign in to comment.