docs: add missing modules to sphinx documentation build#5017
docs: add missing modules to sphinx documentation build#5017raajheshkannaa wants to merge 6 commits intoopen-telemetry:mainfrom
Conversation
|
Thanks @raajheshkannaa . Please could you sign the CLA as per contributing guidelines. |
9ef33c3 to
20c26a9
Compare
|
Thanks! Next please run
|
4b5e95f to
67c8e08
Compare
|
Rebased on main and ran |
67c8e08 to
7e3617d
Compare
8587cf4 to
d93aa2b
Compare
d93aa2b to
e641f48
Compare
|
Thanks again @raajheshkannaa I should have realized this earlier with my previous comment: the Events API is deprecated and users should use Logging API with event naming instead. This PR does make documentation consistent across the board, but the Events API docs render doesn't include the deprecation information (below screenshot). What do other @open-telemetry/python-approvers think: include Events API in the docs index, or leave it out?
|
cb4a049 to
e523e0f
Compare
MikeGoldsmith
left a comment
There was a problem hiding this comment.
I feel we should leave out the events API. It's deprecated and we would not want someone to accidentally find / use it.
The other changes look good. Left a query and need to move the changelog entry.
| ([#5034](https://github.com/open-telemetry/opentelemetry-python/pull/5034)) | ||
| - Fix `BatchLogRecordProcessor` default `schedule_delay_millis` from 5000ms to 1000ms to comply with the OTel specification. Note: logs may be exported 5x more frequently by default (e.g. for users who don't explicitly set the `OTEL_BLRP_SCHEDULE_DELAY` env var). | ||
| ([#4998](https://github.com/open-telemetry/opentelemetry-python/pull/4998)) | ||
| - Add missing .rst files to Sphinx documentation build for SDK logs, propagators, and exporter submodules |
There was a problem hiding this comment.
Please move this up into Unreleased.
| "py:class", | ||
| "Event", | ||
| ), | ||
| ("py:func", "get_finished_logs"), |
There was a problem hiding this comment.
Why are we suppressing get_finished_logs here?
|
Thanks for the review, @MikeGoldsmith. Addressed in 4860bb3:
|
Add RST files and toctree entries for modules that were not included in the sphinx doc build: API: - opentelemetry._events (Events API) - opentelemetry.attributes (Attributes utilities) - opentelemetry.trace.propagation (Trace context propagation) SDK: - opentelemetry.sdk._events (Events SDK implementation) - opentelemetry.sdk._logs.export (Log export processors and exporters) Closes open-telemetry#2573 Signed-off-by: Raajhesh Kannaa Chidambaram <495042+raajheshkannaa@users.noreply.github.com>
Signed-off-by: Raajhesh Kannaa Chidambaram <495042+raajheshkannaa@users.noreply.github.com>
Add CHANGELOG entry for the docs PR and suppress the Sphinx cross-reference warning for get_finished_logs (referenced as :func: in a docstring we did not modify).
…hangelog - Remove docs/api/_events.rst and docs/sdk/_events.rst (events API is deprecated per MikeGoldsmith, avoid exposing it in docs). - Remove _events entries from api/index.rst and sdk/index.rst toctrees. - Drop Event class nitpick_ignore entry (no longer needed). - Fix docstring cross-reference on InMemoryLogRecordExporter from :func: to :meth: since get_finished_logs is a method, and drop its nitpick_ignore entry. - Move changelog entry from 1.41.0/0.62b0 to Unreleased.
4860bb3 to
c48e463
Compare
MikeGoldsmith
left a comment
There was a problem hiding this comment.
Thanks @raajheshkannaa 👍🏻

Closes #2573
Summary
Modules added
API:
opentelemetry._events- Events API (EventLogger, EventLoggerProvider)opentelemetry.attributes- Attribute validation and utility functionsopentelemetry.trace.propagation- Trace context propagation helpers (set/get span in context)SDK:
opentelemetry.sdk._events- Events SDK implementation (EventLogger, EventLoggerProvider)opentelemetry.sdk._logs.export- Log record export (BatchLogRecordProcessor, SimpleLogRecordProcessor, ConsoleLogExporter, InMemoryLogExporter)Notes
tox -e docsbuild has a pre-existing failure (Contextcross-reference ambiguity in_logs._internal.LogRecorddocstring) that is unrelated to this change and present onmaindocs/api/anddocs/sdk/Test plan
tox -e docslocally; all new modules are picked up by sphinx-build (visible in the "reading sources" and "highlighting module code" output)