Skip to content

Processor needs to know the source of its data/signal like type and instance of receiver. #35596

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

Closed
mithunbelur opened this issue Oct 4, 2024 · 2 comments
Labels
closed as inactive enhancement New feature or request needs triage New item requiring triage Stale

Comments

@mithunbelur
Copy link

mithunbelur commented Oct 4, 2024

Component(s)

cmd/otelcontribcol

Is your feature request related to a problem? Please describe.

Lets say, I have multiple receiver instances of same receiver type in a single pipeline.
I need to add a processor which can add resource attribute like source-ip : 10.0.0.1. Is this possible today. I coudnt find a way in processor to figure out which receiver pushed the data/signals.

receivers:
  mysql/mysql1/10.0.0.1:
    endpoint: 10.0.0.1:3306 
    username: username
    password: password
  mysql/mysql2/10.0.0.2:
    endpoint: 10.0.0.2:3306 
    username: username
    password: password

This is not just for mysql, I need to do it for other receivers as well. So I do not want to change receiver config to take in extra details. Is there some generic way to do it?

Describe the solution you'd like

It would be good if we have exact receiver name(including type/name) to be in context/scope for further processing in pipeline.

Describe alternatives you've considered

The possible way I could think of is using multiple pipelines each having only one receiver and add a separate attributes processor to add that attribute and then export it. Is there a better approach?
I cannot use instrumentation_scope.name as mentioned in the other issue #21466

Additional context

No response

Copy link
Contributor

github-actions bot commented Dec 4, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Copy link
Contributor

github-actions bot commented Feb 2, 2025

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed as inactive enhancement New feature or request needs triage New item requiring triage Stale
Projects
None yet
Development

No branches or pull requests

1 participant