Skip to content

Commit

Permalink
docs: Fix metadata/headers example on confighttp README [chore] (open…
Browse files Browse the repository at this point in the history
…-telemetry#11317)

#### Description

Documentation fix: The example for using attributesprocessor to add the
value of an incoming HTTP header missed the `metadata.` prefix and the
lowercasing of the header name.

Fix the example in config/confighttp/README.md.
  • Loading branch information
dubek authored Oct 9, 2024
1 parent 4c6a342 commit 623986c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/confighttp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ processors:
attributes:
actions:
- key: http.client_ip
from_context: X-Forwarded-For
from_context: metadata.x-forwarded-for
action: upsert
```

Expand Down

0 comments on commit 623986c

Please sign in to comment.