Skip to content

docs: document legacy metrics - #8683

Open
Rajkaran-122 wants to merge 3 commits into
open-telemetry:mainfrom
Rajkaran-122:issue-8370-document-legacy-metrics
Open

docs: document legacy metrics#8683
Rajkaran-122 wants to merge 3 commits into
open-telemetry:mainfrom
Rajkaran-122:issue-8370-document-legacy-metrics

Conversation

@Rajkaran-122

@Rajkaran-122 Rajkaran-122 commented Aug 2, 2026

Copy link
Copy Markdown

Fixes #8370

Summary

Document that the legacy OTLP JSON logging exporters are superseded by the corresponding OtlpStdout*Exporter implementations.

The updated Javadocs clarify that the legacy exporters use java.util.logging and direct users to the stdout exporters when they need to configure a custom logger (for example, SLF4J) or a custom output stream.

Changes

  • Updated OtlpJsonLoggingMetricExporter Javadoc
  • Updated OtlpJsonLoggingSpanExporter Javadoc
  • Updated OtlpJsonLoggingLogRecordExporter Javadoc

Notes

  • Documentation-only change
  • No behavioral or API changes

@Rajkaran-122
Rajkaran-122 requested a review from a team as a code owner August 2, 2026 12:10
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 2, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on maintainers · refreshed 2026-08-03 20:02 UTC

Merge when ready.

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.

@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.62%. Comparing base (f8bd413) to head (c3f603a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8683      +/-   ##
============================================
+ Coverage     91.48%   91.62%   +0.13%     
+ Complexity    10467    10327     -140     
============================================
  Files          1021     1003      -18     
  Lines         27694    27138     -556     
  Branches       3247     3187      -60     
============================================
- Hits          25337    24866     -471     
+ Misses         1615     1566      -49     
+ Partials        742      706      -36     

☔ 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.

* A {@link LogRecordExporter} which writes {@linkplain LogRecordData logs} to a {@link Logger} in
* OTLP JSON format. Each log line will include a single {@code ResourceLogs}.
*
* <p>Note: This class is superseded by {@code OtlpStdoutLogRecordExporter}, which allows

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.

Suggested change
* <p>Note: This class is superseded by {@code OtlpStdoutLogRecordExporter}, which allows
* <p>Note: This class is superseded by {@link OtlpStdoutLogRecordExporter}, which allows

Should add to the other locations as well

@Rajkaran-122

Copy link
Copy Markdown
Author

Thanks @jack-berg sir for the review! I've addressed the suggested changes by replacing the {@code ...} references with {@link ...} in all applicable Javadocs. Appreciate the feedback.

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.

OtlpJsonLoggingMetricExporter to accept a custom logger

2 participants