Skip to content

Remove test modules #7444

@pellared

Description

@pellared

Follows #6763

What is interesting if the dependency is used only used in tests then it does not come up as an indirect dependency for modules using go.opentelemetry.io/otel/sdk/log 🎉

It looks like the Go module graph pruning has been improved at some point.

I think that it means that we could get rid of test modules 😉

Originally posted by @pellared in open-telemetry/opentelemetry-go#6286 (comment)

Also see https://seankhliao.com/blog/12025-04-07-pruned-module-graph/ that the test dependencies are being pruned.

We already have a golang-ci lint rule no-sdk-instrumentation to make sure that production code does not use the SDK

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions