Skip to content

The list of valid S3 storage classes is out of date in awss3exporter #46825

@Hexcles

Description

@Hexcles

Component(s)

exporter/awss3

What happened?

Description

https://github.com/open-telemetry/opentelemetry-collector-contrib/blame/main/exporter/awss3exporter/config.go#L107C2-L107C21 has a list of valid storage classes.

Steps to Reproduce

Try some newer storage classes like GLACIER_IR

Expected Result

Everything works

Actual Result

│ Error: invalid configuration: exporters::awss3: invalid StorageClass

Collector version

0.147.0

Environment information

No response

OpenTelemetry Collector configuration

Log output

Additional context

I'm not sure why we need a hard-coded list of valid storage classes in the first place. The AWS SDK should handle this: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3/types#StorageClass

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