From 2f5b0bc52cd160886b4e1ee03461704d6c440a8d Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Thu, 1 Feb 2024 12:17:51 +0000 Subject: [PATCH] [chore][receiver/oracledb] Fix empty ID in test (#30991) **Description:** Similar to #30917 and #30925, the ID was empty before. **Link to tracking Issue:** This is needed to make contrib tests pass on https://github.com/open-telemetry/opentelemetry-collector/pull/9414 --- receiver/oracledbreceiver/factory_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/receiver/oracledbreceiver/factory_test.go b/receiver/oracledbreceiver/factory_test.go index ca6e2d6d6164..c8b1bbd48b3f 100644 --- a/receiver/oracledbreceiver/factory_test.go +++ b/receiver/oracledbreceiver/factory_test.go @@ -15,6 +15,8 @@ import ( "go.opentelemetry.io/collector/receiver" noopmetric "go.opentelemetry.io/otel/metric/noop" nooptrace "go.opentelemetry.io/otel/trace/noop" + + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver/internal/metadata" ) func TestNewFactory(t *testing.T) { @@ -22,6 +24,7 @@ func TestNewFactory(t *testing.T) { _, err := factory.CreateMetricsReceiver( context.Background(), receiver.CreateSettings{ + ID: component.NewID(metadata.Type), TelemetrySettings: component.TelemetrySettings{ TracerProvider: nooptrace.NewTracerProvider(), MeterProvider: noopmetric.NewMeterProvider(),