Skip to content

docs: add :members: to OTLP exporter submodule automodule directives#5124

Open
alliasgher wants to merge 1 commit intoopen-telemetry:mainfrom
alliasgher:docs/2786-otlp-exporter-api-docs
Open

docs: add :members: to OTLP exporter submodule automodule directives#5124
alliasgher wants to merge 1 commit intoopen-telemetry:mainfrom
alliasgher:docs/2786-otlp-exporter-api-docs

Conversation

@alliasgher
Copy link
Copy Markdown

Description

The trace_exporter, metric_exporter, and _log_exporter entries in docs/exporter/otlp/otlp.rst had no Sphinx autodoc options, so their classes were not included in the generated API documentation. The top-level proto.http and proto.grpc entries already have :members:, :undoc-members:, and :show-inheritance: — the fix applies the same directives to the six submodule entries.

Fixes #2786

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Docs-only change. Verified by inspecting the RST and comparing against sibling exporter docs (e.g. prometheus.rst) that correctly use :members: on each automodule directive.

Does This PR Require a Contrib Repo Change?

No.

Checklist

  • CHANGELOG entry added under ## Unreleased

The trace_exporter, metric_exporter, and _log_exporter entries in
docs/exporter/otlp/otlp.rst had no Sphinx autodoc options, so their
classes were not included in the generated API documentation.

Add :members:, :undoc-members:, and :show-inheritance: to each of the
six submodule automodule directives (three for proto.http, three for
proto.grpc) so the exporter classes appear on the rendered page.

Fixes open-telemetry#2786

Signed-off-by: Ali <alliasgher123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

OTLP Exporters API documentation page is missing the API section

1 participant