Skip to content

Commit

Permalink
Update depguard rules
Browse files Browse the repository at this point in the history
Do not allow use of auto/sdk outside of global pkg.
  • Loading branch information
MrAlias committed Oct 28, 2024
1 parent fb171ae commit c39b4c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ linters-settings:
- pkg: "crypto/md5"
- pkg: "crypto/sha1"
- pkg: "crypto/**/pkix"
auto/sdk:
files:
- "!internal/global/trace.go"
- "~internal/global/trace_test.go"
deny:
- pkg: "go.opentelemetry.io/auto/sdk"
desc: Do not use SDK from automatic instrumentation.
- pkg: "go.opentelemetry.io/auto/sdk/telemetry"
desc: Do not use data-model from automatic instrumentation.
- pkg: "go.opentelemetry.io/auto/sdk/telemetry/test"
desc: Do not import data-model tests from automatic instrumentation.
otlp-internal:
files:
- "!**/exporters/otlp/internal/**/*.go"
Expand Down

0 comments on commit c39b4c1

Please sign in to comment.