Skip to content

Commit

Permalink
fix prometheus depguard issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Sep 23, 2024
1 parent 85a3e22 commit 5e80ecc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bridges/prometheus/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions bridges/prometheus/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions bridges/prometheus/producer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 5e80ecc

Please sign in to comment.