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

Can we filter out the not needed resource attributes ? #1641

Closed
1 of 2 tasks
prajon84 opened this issue Apr 8, 2024 · 4 comments
Closed
1 of 2 tasks

Can we filter out the not needed resource attributes ? #1641

prajon84 opened this issue Apr 8, 2024 · 4 comments
Labels
comp:resources.aws Things related to OpenTelemetry.Resources.AWS

Comments

@prajon84
Copy link

prajon84 commented Apr 8, 2024

Issue with OpenTelemetry.ResourceDetectors.AWS

List of all OpenTelemetry NuGet
packages
and version that you are
using (e.g. OpenTelemetry 1.3.2):

  • TBD

Runtime version (e.g. net462, net48, net6.0, net7.0 etc. You can
find this information from the *.csproj file):

  • TBD

Is this a feature request or a bug?

  • Feature Request
  • Bug

What is the expected behavior?

What do you expect to see?

What is the actual behavior?

What did you see instead? If you are reporting a bug, create a self-contained
project using the template of your choice and apply the minimum required code to
result in the issue you're observing. We will close this issue if:

  • The repro project you share with us is complex. We can't investigate custom
    projects, so don't point us to such, please.
  • If we can not reproduce the behavior you're reporting.

Additional Context

Add any other context about the feature request here.

@Kielek

@prajon84 prajon84 added the comp:resources.aws Things related to OpenTelemetry.Resources.AWS label Apr 8, 2024
@prajon84
Copy link
Author

prajon84 commented Apr 8, 2024

For e.g. for AWSResourceDetector: If I need only account id and task arn and not others.
out of these

@Kielek
Copy link
Contributor

Kielek commented Apr 8, 2024

For now, there is no such possibility.
OpenTelemetry collector can be central point where you can process all data. It includes any manipulation of resources/attributes. Is it an option for you?

@prajon84
Copy link
Author

prajon84 commented Apr 8, 2024

Oh ok. I have to consult with my team then. I am not sure if we can manipulate resource attributes at collector level.

@martinjt
Copy link
Member

martinjt commented Jun 2, 2024

The Collector is the solution for this, take a look at the transform processor. I would suggest keeping at the resource attributes however, as these allow you to filter and graph later if they do become relevant.

I'm closing this as it's not something we would do at the SDK level.

@martinjt martinjt closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:resources.aws Things related to OpenTelemetry.Resources.AWS
Projects
None yet
Development

No branches or pull requests

3 participants