Skip to content

fileexporter/rotation does not work with group_by enabled #43143

@bmiguel-teixeira

Description

@bmiguel-teixeira

Component(s)

exporter/file

What happened?

Description

The fileexporter rotation propery does not seems to work if group by resoruce attribute is enabled. The files are divided properly following the group by setting, but never rotated even after going beyond the max MB limits several times over.

Steps to Reproduce

      file/rotation_with_custom_settings:
        format: json
        group_by:
          enabled: true
          max_open_files: 1000
          resource_attribute: service.name
        path: /data/*
        rotation:
          localtime: true
          max_backups: 100
          max_days: 2

Expected Result

Invididual files are rotated.

Actual Result

Individua files just keep growing.

Collector version

opentelemetry-collector-contrib:0.136.0

Environment information

No response

OpenTelemetry Collector configuration

Log output

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions