aws-otel-collector icon indicating copy to clipboard operation
aws-otel-collector copied to clipboard

Support for the transform processor

Open bmbferreira opened this issue 1 year ago • 18 comments

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

I'm using fluentbit to forward the logs to the opentelemetry collector and I want to parse the json from the logs and then transform some of the fields to attributes using the transform procesor. However that processor doesn't seem to be supported by the AWS otel collector.

Describe the solution you'd like

I would like to have support for the transform processor to be able to do advanced transformations using the Opentelemetry Transformation Language.

Describe alternatives you've considered

Use the docker image from opentelemetry instead of using this one from AWS.

Additional context N/A

bmbferreira avatar Aug 28 '23 14:08 bmbferreira

Thanks for creating this feature request, certainly something we consider @bmbferreira. Please do note that at the moment we do not support logs GA in ADOT (see https://github.com/aws-observability/aws-otel-community/issues/11 for details).

mhausenblas avatar Aug 28 '23 14:08 mhausenblas

I would like to have transform processor for my trace processing - I would like to rename service.name attribute if it is not in allowed set, e.g.:

transform:
  error_mode: ignore
  trace_statements:
    - context: resource
      statements:
        - set(attributes["service.name"], "not-whitelisted-service") where isMatch(["service-a","service-b"], attributes["service.name"])

jangaraj avatar Oct 03 '23 11:10 jangaraj

Thank you, @jangaraj

mhausenblas avatar Oct 03 '23 11:10 mhausenblas

+1 to getting this processor added to ADOT. We are working with a customer for whom the lack of this processor is causing heartburn.

puckpuck avatar Oct 25 '23 14:10 puckpuck

FWIW, I think this is a dupe of #1869. Very much hope it is picked up soon!

bpholt avatar Nov 08 '23 21:11 bpholt

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jan 14 '24 20:01 github-actions[bot]

is there any update on this? it will be very very useful to have it.

MaGaudin avatar Jan 24 '24 10:01 MaGaudin

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Mar 31 '24 20:03 github-actions[bot]

+1 for this processor, in the context of transforming histogram metrics for Dynatrace

hodgiwabi avatar Apr 09 '24 21:04 hodgiwabi

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jun 16 '24 20:06 github-actions[bot]

Bumping this issue again.

I'd like to use this processor to extract attributes from a log's Scope, which doesn't seem to be possible with the processors currently included in the ADOT collector, but seems like it would be trivial with this processor:

transform/datadog/logs:
  error_mode: ignore
  log_statements:
    - context: log
      statements:
        - set(attributes["logger.name"], instrumentation_scope.name)

schmidt-galen-heb avatar Jun 21 '24 14:06 schmidt-galen-heb

bump, this matters because the opentelemetry-shim adds links to every span and Honeycomb treats a link as an extra span in searches.

will-sargent-eero avatar Jun 26 '24 22:06 will-sargent-eero

This feature is essential for efficiently processing message content towards CloudWatch. Having the transform processor would enable us to parse and filter logs effectively, allowing for better data management and more accurate insights. This capability is critical for creating efficient log filters and improving overall system observability. Thank you for considering this request.

RafaelGBAccenture avatar Jun 28 '24 11:06 RafaelGBAccenture

+1 for this. Transform processor is useful not only for logs but also for traces. It provides functionality for traces that no other processor provides. Kindly consider this request to have transform processor support as a part of ADOT.

pankdhnd avatar Jul 23 '24 06:07 pankdhnd

+100 This would be a very welcome feature.

Another use case is to manage attributes in metrics data points. For example, taking Resource attributes and adding them as attributes in either Spans or Metrics data points.

pcesara avatar Aug 02 '24 08:08 pcesara