Skip to content

Commit

Permalink
Exclude google.golang.org/grpc/stats/opentelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama committed Dec 23, 2024
1 parent 32bdc98 commit 42c6a42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -572,3 +572,10 @@ replace (
github.com/redis/go-redis/v9 => github.com/gravitational/redis/v9 v9.6.1-teleport.1
github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1
)

// stats/opentelemetry is provided by grpc-go since v1.69.0, v1.68.2 and v1.67.3.
// Before that it was its own module. Until all of our dependencies use, at
// least, one of the grpc-go versions above we need to exclude
// stats/opentelemetry in order to avoid "ambiguous import" errors on build.
// TODO(codingllama): Remove once no dependencies import stats/opentelemetry.
exclude google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a
3 changes: 3 additions & 0 deletions integrations/event-handler/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,6 @@ replace (
// otherwise we get significant increase in size of the "teleport" binary.
sigs.k8s.io/kustomize/api => github.com/gravitational/kustomize/api v0.16.0-teleport.1
)

// TODO(codingllama): Remove once no dependencies import stats/opentelemetry.
exclude google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a
3 changes: 3 additions & 0 deletions integrations/terraform/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,6 @@ replace (
github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1
sigs.k8s.io/kustomize/api => github.com/gravitational/kustomize/api v0.16.0-teleport.1
)

// TODO(codingllama): Remove once no dependencies import stats/opentelemetry.
exclude google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a

0 comments on commit 42c6a42

Please sign in to comment.