Skip to content

Avoid shared internal code in sdk-common and api-incubator (#6970) - #8916

Open
rooks-ns wants to merge 1 commit into
open-telemetry:mainfrom
rooks-ns:fix/avoid-shared-internal-sdk-common
Open

rooks-ns wants to merge 1 commit into
open-telemetry:mainfrom
rooks-ns:fix/avoid-shared-internal-sdk-common

Conversation

@rooks-ns

@rooks-ns rooks-ns commented Oct 8, 2026 •

Copy link
Copy Markdown

Part of #6970.

Eliminates :sdk:common's dependencies on io.opentelemetry.api.internal.{Utils, StringUtils} via localized validation guards, enabling both opentelemetry-sdk-common and opentelemetry-api-incubator to be unexempted in NoSharedInternalCodeTest.

Changes

  • NoSharedInternalCodeTest: Removed opentelemetry-sdk-common and opentelemetry-api-incubator from exemptions.
  • RetryPolicy: Localized checkArgument in RetryPolicyBuilder.
  • AttributeCheckUtil: Inlined argument check and localized isPrintableString.
  • ResourceBuilder: Inlined null/empty schema URL check.
  • SdkEntityBuilder: Localized checkArgument.
  • ResourceTest: Added attribute key validation unit tests.

@rooks-ns
rooks-ns requested a review from a team as a code owner October 8, 2026 10:36
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-10-08 21:19 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@rooks-ns
rooks-ns marked this pull request as draft October 8, 2026 15:17
@rooks-ns
rooks-ns force-pushed the fix/avoid-shared-internal-sdk-common branch from 44cd646 to 3cb5e4e Compare October 8, 2026 15:53
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.64%. Comparing base (6e4eb27) to head (911d8ed).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8916      +/-   ##
============================================
- Coverage     90.65%   90.64%   -0.01%     
- Complexity    10856    10863       +7     
============================================
  Files          1014     1014              
  Lines         29643    29654      +11     
  Branches       3858     3860       +2     
============================================
+ Hits          26872    26881       +9     
- Misses         1859     1860       +1     
- Partials        912      913       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rooks-ns
rooks-ns force-pushed the fix/avoid-shared-internal-sdk-common branch 2 times, most recently from 56852e8 to a466245 Compare October 8, 2026 19:22
@rooks-ns
rooks-ns marked this pull request as ready for review October 8, 2026 19:53
@rooks-ns
rooks-ns force-pushed the fix/avoid-shared-internal-sdk-common branch from a466245 to 911d8ed Compare October 8, 2026 20:39

This branch has not been deployed

No deployments
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.

1 participant