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

[attributeprocessor] How to create a new span attribute from span's resource attribute #33279

Closed
bendanye opened this issue May 29, 2024 · 5 comments
Labels
processor/attributes Attributes processor processor/transform Transform processor

Comments

@bendanye
Copy link

Component(s)

processor/attributes

Describe the issue you're reporting

Hi there, i have a scenario where i need to create a new span attribute from a span's resource attribute. I understand that the from_attribute is only applicable only on span's attribute, not included span's resource attribute.

How can i create it?

@bendanye bendanye added the needs triage New item requiring triage label May 29, 2024
@github-actions github-actions bot added the processor/attributes Attributes processor label May 29, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Hello @bendanye, the transform processor should work here, using the span context.

@crobert-1 crobert-1 added processor/transform Transform processor and removed needs triage New item requiring triage labels May 29, 2024
Copy link
Contributor

Pinging code owners for processor/transform: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@bendanye
Copy link
Author

Hello @crobert-1 sorry i did not specify more details but my current use case is that using aws otel collector which does not support transform so i am not able to use transform

@crobert-1
Copy link
Member

Unfortunately the attributes processor can only work on attributes, and the resource processor can only work on resource attributes, as far as I understand. I'm not aware of any other processor that can accomplish this.

To be able to make progress, I'd suggest moving your request to the AWS distribution's repository for further discussion. I'm going to close as this repository provides the functionality you're looking for. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/attributes Attributes processor processor/transform Transform processor
Projects
None yet
Development

No branches or pull requests

2 participants