diff --git a/bridges/prometheus/example_test.go b/bridges/prometheus/example_test.go index 2f8dd5b48b4..92412c78d0b 100644 --- a/bridges/prometheus/example_test.go +++ b/bridges/prometheus/example_test.go @@ -5,7 +5,7 @@ package prometheus_test import ( "go.opentelemetry.io/contrib/bridges/prometheus" - "go.opentelemetry.io/otel/sdk/metric" + "go.opentelemetry.io/otel/sdk/metric" //nolint:depguard ) func ExampleNewMetricProducer() { diff --git a/bridges/prometheus/producer.go b/bridges/prometheus/producer.go index e94d07a6d46..3e58a81889d 100644 --- a/bridges/prometheus/producer.go +++ b/bridges/prometheus/producer.go @@ -16,9 +16,9 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" - "go.opentelemetry.io/otel/sdk/instrumentation" - "go.opentelemetry.io/otel/sdk/metric" - "go.opentelemetry.io/otel/sdk/metric/metricdata" + "go.opentelemetry.io/otel/sdk/instrumentation" //nolint:depguard + "go.opentelemetry.io/otel/sdk/metric" //nolint:depguard + "go.opentelemetry.io/otel/sdk/metric/metricdata" //nolint:depguard ) const ( diff --git a/bridges/prometheus/producer_test.go b/bridges/prometheus/producer_test.go index 801fe27dd23..664bf95e1a2 100644 --- a/bridges/prometheus/producer_test.go +++ b/bridges/prometheus/producer_test.go @@ -13,9 +13,9 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/attribute" - "go.opentelemetry.io/otel/sdk/instrumentation" - "go.opentelemetry.io/otel/sdk/metric/metricdata" - "go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest" + "go.opentelemetry.io/otel/sdk/instrumentation" //nolint:depguard + "go.opentelemetry.io/otel/sdk/metric/metricdata" //nolint:depguard + "go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest" //nolint:depguard ) const (