Skip to content
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

[processor/resource][processor/attributes] Option to read client address #34048

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Jul 11, 2024

We have options to extract headers and auth info from the client. This change adds an option to extract client address by specifying client.address value in the from_context field.

The code to extract address from the client info is taken from the k8sattributes receiver.

Fixes #34051

@github-actions github-actions bot added internal/core processor/attributes Attributes processor processor/k8sattributes k8s Attributes processor labels Jul 11, 2024
@dmitryax dmitryax force-pushed the attributes-pocessor-add-client-address branch from d307b78 to 0fc9fc4 Compare July 11, 2024 23:36
@dmitryax dmitryax marked this pull request as ready for review July 11, 2024 23:37
@dmitryax dmitryax requested a review from a team as a code owner July 11, 2024 23:37
@dmitryax dmitryax force-pushed the attributes-pocessor-add-client-address branch 3 times, most recently from ef5727f to c06adbb Compare July 12, 2024 00:01
.chloggen/attribute-from-client-address.yaml Outdated Show resolved Hide resolved
internal/coreinternal/clientutil/client.go Outdated Show resolved Hide resolved
processor/attributesprocessor/README.md Outdated Show resolved Hide resolved
internal/coreinternal/clientutil/client_test.go Outdated Show resolved Hide resolved
dmitryax and others added 5 commits July 12, 2024 12:58
Add an option to extract value from a client address by specifying `client.address` value in the `from_context` field.
@dmitryax dmitryax force-pushed the attributes-pocessor-add-client-address branch from 75ae2f5 to ab2326b Compare July 12, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal/core processor/attributes Attributes processor processor/k8sattributes k8s Attributes processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/attributes] [processor/resource] Add an option to extract an attribute from client address
3 participants