From f8b168139dd2839d6d574c36e0667c94a76f2a45 Mon Sep 17 00:00:00 2001 From: Gemene Narcis Date: Fri, 4 Oct 2024 11:35:22 +0300 Subject: [PATCH] datadogreceiver: migrate to newer semconv version --- receiver/datadogreceiver/internal/translator/tags.go | 2 +- .../datadogreceiver/internal/translator/traces_translator.go | 2 +- .../internal/translator/traces_translator_test.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/receiver/datadogreceiver/internal/translator/tags.go b/receiver/datadogreceiver/internal/translator/tags.go index e2cfc3da4f80..0c4dafb16ede 100644 --- a/receiver/datadogreceiver/internal/translator/tags.go +++ b/receiver/datadogreceiver/internal/translator/tags.go @@ -9,7 +9,7 @@ import ( "sync" "go.opentelemetry.io/collector/pdata/pcommon" - semconv "go.opentelemetry.io/collector/semconv/v1.16.0" + semconv "go.opentelemetry.io/collector/semconv/v1.21.0" ) // See: diff --git a/receiver/datadogreceiver/internal/translator/traces_translator.go b/receiver/datadogreceiver/internal/translator/traces_translator.go index 59a70b012161..6605226ceff7 100644 --- a/receiver/datadogreceiver/internal/translator/traces_translator.go +++ b/receiver/datadogreceiver/internal/translator/traces_translator.go @@ -19,7 +19,7 @@ import ( pb "github.com/DataDog/datadog-agent/pkg/proto/pbgo/trace" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/ptrace" - semconv "go.opentelemetry.io/collector/semconv/v1.16.0" + semconv "go.opentelemetry.io/collector/semconv/v1.21.0" "google.golang.org/protobuf/proto" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/datadogreceiver/internal/translator/header" diff --git a/receiver/datadogreceiver/internal/translator/traces_translator_test.go b/receiver/datadogreceiver/internal/translator/traces_translator_test.go index f7cdd3d3a1f3..d62a876e2d1f 100644 --- a/receiver/datadogreceiver/internal/translator/traces_translator_test.go +++ b/receiver/datadogreceiver/internal/translator/traces_translator_test.go @@ -16,7 +16,7 @@ import ( "github.com/stretchr/testify/require" vmsgp "github.com/vmihailenco/msgpack/v5" "go.opentelemetry.io/collector/pdata/pcommon" - semconv "go.opentelemetry.io/collector/semconv/v1.16.0" + semconv "go.opentelemetry.io/collector/semconv/v1.21.0" "google.golang.org/protobuf/proto" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/datadogreceiver/internal/translator/header" @@ -75,7 +75,6 @@ func getTraces(t *testing.T) (traces pb.Traces) { t.Fatal(err) } return traces - } func TestTracePayloadV05Unmarshalling(t *testing.T) {