From 55269eb41df7a4915cd9e6db5f91262e733e26e0 Mon Sep 17 00:00:00 2001 From: Gemene Narcis Date: Fri, 4 Oct 2024 11:42:03 +0300 Subject: [PATCH] dockerstatsreceiver: migrate to newer semconv version --- receiver/dockerstatsreceiver/generated_package_test.go | 3 +-- receiver/dockerstatsreceiver/integration_test.go | 2 +- .../dockerstatsreceiver/internal/metadata/generated_metrics.go | 2 +- receiver/dockerstatsreceiver/metadata.yaml | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/receiver/dockerstatsreceiver/generated_package_test.go b/receiver/dockerstatsreceiver/generated_package_test.go index bb69d6534c4a..deee05e3f813 100644 --- a/receiver/dockerstatsreceiver/generated_package_test.go +++ b/receiver/dockerstatsreceiver/generated_package_test.go @@ -3,9 +3,8 @@ package dockerstatsreceiver import ( - "testing" - "go.uber.org/goleak" + "testing" ) func TestMain(m *testing.M) { diff --git a/receiver/dockerstatsreceiver/integration_test.go b/receiver/dockerstatsreceiver/integration_test.go index 36f9632e3e7b..9550537913fb 100644 --- a/receiver/dockerstatsreceiver/integration_test.go +++ b/receiver/dockerstatsreceiver/integration_test.go @@ -21,7 +21,7 @@ import ( "go.opentelemetry.io/collector/pipeline" rcvr "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/receivertest" - conventions "go.opentelemetry.io/collector/semconv/v1.6.1" + conventions "go.opentelemetry.io/collector/semconv/v1.27.0" "go.uber.org/zap" "go.uber.org/zap/zaptest" ) diff --git a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go index 5a65f5959a97..e4dbfda4e702 100644 --- a/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/dockerstatsreceiver/internal/metadata/generated_metrics.go @@ -10,7 +10,7 @@ import ( "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/pmetric" "go.opentelemetry.io/collector/receiver" - conventions "go.opentelemetry.io/collector/semconv/v1.6.1" + conventions "go.opentelemetry.io/collector/semconv/v1.27.0" ) type metricContainerBlockioIoMergedRecursive struct { diff --git a/receiver/dockerstatsreceiver/metadata.yaml b/receiver/dockerstatsreceiver/metadata.yaml index e721d4ba574a..e0a6bf8c7830 100644 --- a/receiver/dockerstatsreceiver/metadata.yaml +++ b/receiver/dockerstatsreceiver/metadata.yaml @@ -9,7 +9,7 @@ status: active: [rmfitzpatrick, jamesmoessis] unsupported_platforms: [darwin, windows] -sem_conv_version: 1.6.1 +sem_conv_version: 1.27.0 # Note: there are other, additional resource attributes that the user can configure through the yaml resource_attributes: