diff --git a/go.mod b/go.mod index cab776b5..2fafee30 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/elastic/apm-data go 1.22 require ( - github.com/elastic/opentelemetry-lib v0.8.1 + github.com/elastic/opentelemetry-lib v0.9.0 github.com/google/go-cmp v0.6.0 github.com/jaegertracing/jaeger v1.60.0 github.com/json-iterator/go v1.1.12 diff --git a/go.sum b/go.sum index a2c8e3e4..92b67296 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ github.com/elastic/go-sysinfo v1.7.1/go.mod h1:i1ZYdU10oLNfRzq4vq62BEwD2fH8KaWh6 github.com/elastic/go-windows v1.0.0/go.mod h1:TsU0Nrp7/y3+VwE82FoZF8gC/XFg/Elz6CcloAxnPgU= github.com/elastic/go-windows v1.0.1 h1:AlYZOldA+UJ0/2nBuqWdo90GFCgG9xuyw9SYzGUtJm0= github.com/elastic/go-windows v1.0.1/go.mod h1:FoVvqWSun28vaDQPbj2Elfc0JahhPB7WQEGa3c814Ss= -github.com/elastic/opentelemetry-lib v0.8.1 h1:1QnrlBsaDKKlTlTMajgQTYdOFg42rAZLU/CH9DKZ3vE= -github.com/elastic/opentelemetry-lib v0.8.1/go.mod h1:ttRzVFcQKjogveyhxDTRMD+s6Igi5XHqV7HcU933lR8= +github.com/elastic/opentelemetry-lib v0.9.0 h1:auMnq5zxqnB3eQNNdfz8+mtooy0D8+2ZEusU0sHeDj4= +github.com/elastic/opentelemetry-lib v0.9.0/go.mod h1:H4ECk7whGn41etgYL4zQWJ2BWN5xwP2A5HUIIwNrM9Y= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= diff --git a/input/otlp/metrics_test.go b/input/otlp/metrics_test.go index 4eecef94..24afbdb7 100644 --- a/input/otlp/metrics_test.go +++ b/input/otlp/metrics_test.go @@ -869,7 +869,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { metrics := pmetric.NewMetrics() sm := metrics.ResourceMetrics().AppendEmpty(). ScopeMetrics().AppendEmpty() - sm.Scope().SetName("otelcol/hostmetricsreceiver/load") + sm.Scope().SetName("github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper") metric := sm.Metrics().AppendEmpty() metric.SetName("system.cpu.load_average.1m") @@ -884,7 +884,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { Service: &modelpb.Service{ Name: "unknown", Language: &modelpb.Language{Name: "unknown"}, - Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/load"}, + Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper"}, }, Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"}, Timestamp: modelpb.FromTime(ts), @@ -903,7 +903,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { Service: &modelpb.Service{ Name: "unknown", Language: &modelpb.Language{Name: "unknown"}, - Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/load"}, + Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper"}, }, Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"}, Timestamp: modelpb.FromTime(ts), @@ -943,7 +943,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { rm.Resource().Attributes().PutStr("process.owner", "testowner") rm.Resource().Attributes().PutStr("process.command_line", "testcmdline") sm := rm.ScopeMetrics().AppendEmpty() - sm.Scope().SetName("otelcol/hostmetricsreceiver/process") + sm.Scope().SetName("github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper") metric := sm.Metrics().AppendEmpty() metric.SetName("process.memory.usage") @@ -959,7 +959,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { Service: &modelpb.Service{ Name: "unknown", Language: &modelpb.Language{Name: "unknown"}, - Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/process"}, + Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper"}, }, Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"}, Timestamp: modelpb.FromTime(ts), @@ -984,7 +984,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) { Service: &modelpb.Service{ Name: "unknown", Language: &modelpb.Language{Name: "unknown"}, - Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/process"}, + Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper"}, }, Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"}, Timestamp: modelpb.FromTime(ts),