Skip to content

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

Merged
jack-berg merged 1 commit into
open-telemetry:mainfrom
rooks-ns:fix/avoid-shared-internal-sdk-common
Oct 9, 2026
Merged

jack-berg merged 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
Contributor

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

Merged · refreshed 2026-10-09 16:22 UTC

Status above doesn't look right?
  • 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

@jack-berg jack-berg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jack-berg
jack-berg merged commit bcec768 into open-telemetry:main Oct 9, 2026
34 checks passed
@otelbot

otelbot Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @rooks-ns! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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