Skip to content

docs: add sphinx docs for opentelemetry.sdk.util module#5204

Closed
07Kaustubh wants to merge 3 commits into
open-telemetry:mainfrom
07Kaustubh:docs/2573-add-sdk-util-sphinx-docs
Closed

docs: add sphinx docs for opentelemetry.sdk.util module#5204
07Kaustubh wants to merge 3 commits into
open-telemetry:mainfrom
07Kaustubh:docs/2573-add-sdk-util-sphinx-docs

Conversation

@07Kaustubh
Copy link
Copy Markdown

Summary

Add Sphinx documentation for the opentelemetry.sdk.util package.

Problem

The opentelemetry.sdk.util module exposes public utilities (BoundedList, BoundedDict, ns_to_iso_str, get_dict_as_key) used internally by the SDK, but they don't appear in the generated docs on ReadTheDocs. Only the submodule opentelemetry.sdk.util.instrumentation is currently documented.
Relates to #2573

Changes

  • docs/sdk/util.rst — New RST file with automodule:: opentelemetry.sdk.util with :members:, :undoc-members:, :show-inheritance:
  • docs/sdk/index.rst — Added util and util.instrumentation to the SDK toctree
  • .changelog/XXXX.added — Changelog fragment (will rename to PR number after opening)

Testing

  • Verified RST syntax
  • Expected to pass tox -e docs

The opentelemetry.sdk.util package exposes BoundedList, BoundedDict,
ns_to_iso_str, and get_dict_as_key but was not included in the
generated Sphinx documentation. Add util.rst and register it in
the SDK docs toctree.

Relates to open-telemetry#2573
Copilot AI review requested due to automatic review settings May 13, 2026 11:52
@07Kaustubh 07Kaustubh requested a review from a team as a code owner May 13, 2026 11:52
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 13, 2026

CLA Not Signed

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds missing Sphinx API documentation pages so opentelemetry.sdk.util (and its existing util.instrumentation doc) appear in the generated SDK docs, addressing the gap described in #2573.

Changes:

  • Added a new docs/sdk/util.rst page using automodule to expose opentelemetry.sdk.util public utilities in the rendered docs.
  • Updated docs/sdk/index.rst to include util and util.instrumentation in the SDK toctree.
  • Added a towncrier changelog fragment describing the documentation addition.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
docs/sdk/util.rst New Sphinx automodule page for opentelemetry.sdk.util.
docs/sdk/index.rst Adds util and util.instrumentation to the SDK docs navigation.
.changelog/XXXX.added Adds a changelog fragment for the documentation addition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/sdk/util.rst Outdated
Comment on lines +1 to +2
opentelemetry.sdk.util
======================
@tammy-baylis-swi
Copy link
Copy Markdown
Contributor

Thanks for contributing, however this duplicates #5186 and the CLA auth is missing.

@aabmass
Copy link
Copy Markdown
Member

aabmass commented May 14, 2026

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants