Skip to content

[processor/transform] OTTL aggregation function support for Logs #39699

Closed
@drewrelmas

Description

@drewrelmas

Component(s)

processor/transform

Describe the issue you're reporting

In reading up more on supported OTTL functions, I noticed that aggregate logic like aggregate_on_attributes are only compatible with metrics.

I didn't open this issue as a feature request as there could be background knowledge in OTEL I am lacking about why this isn't a good idea but was envisioning a case where a customer is only interested in collecting aggregated data about log events with the main goal of reducing event volume. This isn't the same as using filter processor to drop records on certain conditions, but more on condensing data without loss.

One example could be grouping related logs into a single exemplar record with key statistics (count, etc...). Another use case is conditional rate-limiting of exported data - sending all log records by default and only aggregating once a threshold limit is breached.

This type of information could be better represented by a metric signal in the original instrumentation, but it could be convenient for a customer to avoid refactoring and be able to manipulate log records to get the same result in the Collector.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions