-
Notifications
You must be signed in to change notification settings - Fork 247
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
Tempo: Include OpenTelemetry Resource Processor as an extra pipeline for trace configuration #454
Comments
👋 Are we talking about something for Flow mode-only, or both Flow and static mode? |
Heya! Hmm. Probably both atm, given that we support the Attributes processor in static mode and I assume we want to support both in Flow too? Happy to further discuss if that might be problematic though! |
A Flow component for this has been requested by @cyrille-leclerc. IMO we should consider this issue (#454) to only have the Flow component in scope, and we should only consider working on a Static mode feature for this if there is a strong need for it, via another GitHub issue. |
Access to the Resource Attributes (in the flow component) would also ease the "Configuration via attribute hints" for the Loki Exporter. I encountered that challenge when migrating from OTEL Collector configuration to Grafana Agent (Flow mode), as essential OTEL collector components are still missing in Grafana Agent. |
Although the Agent hasn't ported the Collector's resource processor, it did port over the transform processor in the form of otelcol.processor.transform. As this comment says, the transform processor is set to replace the resource processor over time. I believe the main advantage of the resource processor at the moment is that its stability is "beta" as opposed to transform processor's "alpha" stability. I believe this is mostly due to OTTL syntax changing a lot.
There is an open issue in the OTel-Contrib repo to relabel the transform processor as "beta". When that happens, I think we will be very unlikely to port over the resource processor to the Agent and we can safely close this issue. |
Thanks @ptodev . |
I would wait till the transform processor moves to beta |
As discussed with @mar4uk
|
I'm closing this issue because otelcol.processor.transform is considered "stable" in Alloy. |
How would you handle the case where you have an Alloy collector sitting behind an ALB or a proxy and you want to be able to add the I've figured a pretty hacky way of doing this with the attribute processor, followed by the transform processor. Step 1. add the XFF header as a span attribute using attribute processor. There must be a better way to do that, and I believe the resource processor would make my life easier. Unless there's something available in the transform processor already that lets me access the HTTP transport metadata? |
Hi, @etiennep! Your point about the resource processor having the Regarding your specific k8sattributes issue, I believe the "clean" way to do this is to add the
|
@etiennep I opened a new issue in the upstream Collector repo for the transform processor to have an equivalent to the resource processor's I do agree that using the XFF header + a |
Grafana Agent currently supports the OpenTelemetry Collector Attribute processor (https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/attributesprocessor/README.md) as a configurable part of it's span processing pipeline.
There is another processor that pertains to the Resource Attributes that would be useful in some circumstances (https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md). The Prometheus SD processor already has the ability to make extra resource attributes based upon resources already set, and users should be able to configure specific resource properties as well.
The text was updated successfully, but these errors were encountered: