Skip to content

Commit

Permalink
[exporter/awsemf] Remove usage of deprecated Map.Delete (open-telemet…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed May 10, 2022
1 parent b607aa2 commit 6806165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/awsemfexporter/metric_translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ func TestTranslateOtToGroupedMetric(t *testing.T) {
ilm.Scope().SetName("cloudwatch-lib")

noNamespaceMetric := internaldata.OCToMetrics(oc.Node, oc.Resource, oc.Metrics).ResourceMetrics().At(0)
noNamespaceMetric.Resource().Attributes().Delete(conventions.AttributeServiceNamespace)
noNamespaceMetric.Resource().Attributes().Delete(conventions.AttributeServiceName)
noNamespaceMetric.Resource().Attributes().Remove(conventions.AttributeServiceNamespace)
noNamespaceMetric.Resource().Attributes().Remove(conventions.AttributeServiceName)

counterMetrics := map[string]*metricInfo{
"spanCounter": {
Expand Down

0 comments on commit 6806165

Please sign in to comment.