Skip to content

[chore] Add doc comments to exported internal symbols (4/N) - #8926

Open
om7057 wants to merge 1 commit into
open-telemetry:mainfrom
om7057:doc-comments-internal-root-semconv-xxhash-errorhandler
Open

[chore] Add doc comments to exported internal symbols (4/N)#8926
om7057 wants to merge 1 commit into
open-telemetry:mainfrom
om7057:doc-comments-internal-root-semconv-xxhash-errorhandler

Conversation

@om7057

@om7057 om7057 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Continuation of #8752, #8762, and #8869, the fourth scoped slice toward eventually removing the internal-packages exclusion on the revive exported rule in .golangci.yml.

This clears every remaining violation in the root module (go.opentelemetry.io/otel):

  • semconv/internal/{v2,v3,v4}/net.go: NetConv.Transport, NetConv.HostName, NetConv.HostPort, NetConv.PeerName, NetConv.PeerPort, NetConv.SockPeerAddr, NetConv.SockPeerPort (7 each). These three files are byte-identical copies across semconv versions, so I applied the same wording to all three and verified with diff that they remain identical afterward.
  • attribute/internal/xxhash/xxhash.go: Hash.Uint64, Hash.Float64, Hash.Int64. Hash.Bool and Hash.String in the same file aren't flagged by the linter (the former has an explicit nolint:revive), so I left those alone to keep the diff to only what's required.
  • internal/errorhandler/errorhandler.go: the ErrDelegator type and its Handle method.

Test plan

  • go build ./..., go vet ./..., go test ./... pass for the root module.
  • golangci-lint run (pinned internal/tools version) returns 0 issues for the whole root module, including with the internal-packages exclusion temporarily removed.

No CHANGELOG.md entry, comment-only change with no behavior impact.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 4, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: om7057 / name: om7057 (5c0170d)

@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.5%. Comparing base (771b193) to head (5c0170d).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #8926   +/-   ##
=====================================
  Coverage   88.5%   88.5%           
=====================================
  Files        331     331           
  Lines      21013   21013           
=====================================
  Hits       18602   18602           
  Misses      2411    2411           
Files with missing lines Coverage Δ
attribute/internal/xxhash/xxhash.go 88.8% <ø> (ø)
internal/errorhandler/errorhandler.go 100.0% <ø> (ø)
semconv/internal/v2/net.go 100.0% <ø> (ø)
semconv/internal/v3/net.go 100.0% <ø> (ø)
semconv/internal/v4/net.go 100.0% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Continues the internal-package doc comment cleanup started in
open-telemetry#8752, open-telemetry#8762, and open-telemetry#8869, this time covering the root module:
attribute/internal/xxhash, internal/errorhandler, and
semconv/internal/{v2,v3,v4}/net.go. This clears the last
remaining violations in the root module.
@om7057
om7057 force-pushed the doc-comments-internal-root-semconv-xxhash-errorhandler branch from 9e0b8d4 to 5c0170d Compare September 4, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants