Skip to content

Commit 2e72cfe

Browse files
committed
Format code
1 parent 69d326e commit 2e72cfe

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

exporter/awsemfexporter/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
package awsemfexporter
1616

1717
import (
18-
"go.uber.org/zap"
1918
"go.opentelemetry.io/collector/config/configmodels"
19+
"go.uber.org/zap"
2020
)
2121

2222
// Config defines configuration for AWS EMF exporter.

exporter/awsemfexporter/metric_translator_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,26 +785,26 @@ func TestGetCWMetrics(t *testing.T) {
785785
})
786786
}
787787

788-
t.Run("Unhandled metric type", func (t *testing.T) {
788+
t.Run("Unhandled metric type", func(t *testing.T) {
789789
metric := pdata.NewMetric()
790790
metric.InitEmpty()
791791
metric.SetName("foo")
792792
metric.SetUnit("Count")
793793
metric.SetDataType(pdata.MetricDataTypeIntHistogram)
794794

795795
obs, logs := observer.New(zap.WarnLevel)
796-
config := &Config{
796+
obsConfig := &Config{
797797
DimensionRollupOption: "",
798-
logger: zap.New(obs),
798+
logger: zap.New(obs),
799799
}
800800

801-
cwMetrics := getCWMetrics(&metric, namespace, instrumentationLibName, config)
801+
cwMetrics := getCWMetrics(&metric, namespace, instrumentationLibName, obsConfig)
802802
assert.Nil(t, cwMetrics)
803803

804804
// Test output warning logs
805805
expectedLogs := []observer.LoggedEntry{
806806
{
807-
Entry: zapcore.Entry{Level: zap.WarnLevel, Message: "Unhandled metric data type."},
807+
Entry: zapcore.Entry{Level: zap.WarnLevel, Message: "Unhandled metric data type."},
808808
Context: []zapcore.Field{
809809
zap.String("DataType", "IntHistogram"),
810810
zap.String("Name", "foo"),
@@ -816,7 +816,7 @@ func TestGetCWMetrics(t *testing.T) {
816816
assert.Equal(t, expectedLogs, logs.AllUntimed())
817817
})
818818

819-
t.Run("Nil metric", func (t *testing.T) {
819+
t.Run("Nil metric", func(t *testing.T) {
820820
cwMetrics := getCWMetrics(nil, namespace, instrumentationLibName, config)
821821
assert.Nil(t, cwMetrics)
822822
})

0 commit comments

Comments
 (0)