Throughout the repository, there are generally two forms of import declarations for packages from the main otel repository (e.g. trace, metric, global)
with otel* prefix + package name (example: oteltrace "go.opentelemetry.io/otel/api/trace")
or "plainly" without any name
This can be tiresome to work with at times (e.g. in case of comprehensive changes across whole repository) and confusing when introducing new code, as developer cannot be sure which convention to follow.
The suggestion is to agree on one form of import declaration and to uphold it (perhaps via style guide or note in CONTRIBUTING.md).
Throughout the repository, there are generally two forms of
import
declarations for packages from the mainotel
repository (e.g.trace
,metric
,global
)otel*
prefix + package name (example:oteltrace "go.opentelemetry.io/otel/api/trace"
)This can be tiresome to work with at times (e.g. in case of comprehensive changes across whole repository) and confusing when introducing new code, as developer cannot be sure which convention to follow.
The suggestion is to agree on one form of import declaration and to uphold it (perhaps via style guide or note in
CONTRIBUTING.md
).