Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ linters:
- linters:
- forbidigo
path: connector/servicegraphconnector/
- linters:
- forbidigo
path: exporter/awsemfexporter/
- linters:
- forbidigo
path: exporter/awsxrayexporter/
Expand Down
13 changes: 13 additions & 0 deletions exporter/awsemfexporter/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[comment]: <> (Code generated by mdatagen. DO NOT EDIT.)

# awsemf

## Feature Gates

This component has the following feature gates:

| Feature Gate | Stage | Description | From Version | To Version | Reference |
| ------------ | ----- | ----------- | ------------ | ---------- | --------- |
| `awsemf.nodimrollupdefault` | alpha | Changes the default AWS EMF Exporter Dimension rollup option to NoDimensionRollup | v0.83.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23997) |

For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
8 changes: 1 addition & 7 deletions exporter/awsemfexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@ import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"
"go.opentelemetry.io/collector/featuregate"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter/internal/metadata"
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry"
)

var defaultNoRollupfg = featuregate.GlobalRegistry().MustRegister("awsemf.nodimrollupdefault", featuregate.StageAlpha,
featuregate.WithRegisterFromVersion("v0.83.0"),
featuregate.WithRegisterDescription("Changes the default AWS EMF Exporter Dimension rollup option to "+
"NoDimensionRollup"))

// NewFactory creates a factory for AWS EMF exporter.
func NewFactory() exporter.Factory {
return exporter.NewFactory(
Expand All @@ -33,7 +27,7 @@ func NewFactory() exporter.Factory {
// CreateDefaultConfig creates the default configuration for exporter.
func createDefaultConfig() component.Config {
var defaultDimensionRollupOption string
if defaultNoRollupfg.IsEnabled() {
if metadata.AwsemfNodimrollupdefaultFeatureGate.IsEnabled() {
defaultDimensionRollupOption = "NoDimensionRollup"
} else {
defaultDimensionRollupOption = "ZeroAndSingleDimensionRollup"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions exporter/awsemfexporter/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ status:
active: [Aneurysm9, mxiamxia]
emeritus: [shaochengwang, bryan-aguilar]

feature_gates:
- id: "awsemf.nodimrollupdefault"
description: Changes the default AWS EMF Exporter Dimension rollup option to NoDimensionRollup
stage: alpha
from_version: v0.83.0
reference_url: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23997

tests:
config:
region: 'us-west-2'
Expand Down
Loading