Skip to content

Add Java to OpenTelemetry Logs API support page#36719

Merged
bm1549 merged 8 commits into
masterfrom
brian.marks/otel-logs-java-support
May 15, 2026
Merged

Add Java to OpenTelemetry Logs API support page#36719
bm1549 merged 8 commits into
masterfrom
brian.marks/otel-logs-java-support

Conversation

@bm1549
Copy link
Copy Markdown
Contributor

@bm1549 bm1549 commented May 14, 2026

What does this PR do? What is the motivation?

dd-trace-java 1.62.0 ships native OpenTelemetry Logs API support and OTLP/HTTP log export. This PR updates the OpenTelemetry API Support page so the Java + Logs filter combination no longer shows "not available."

Specifically, in content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md:

  • Removes the Java-logs "not available" alert.
  • Adds java to the includes() guards for the logs section and the native-implementation note.
  • Adds Java content to Prerequisites (dd-trace-java 1.62.0+, opentelemetry-api 1.27.0+, OTLP HTTP/protobuf only), Setup, Examples (emitting a log + trace/log correlation), Migrate from other setups, and Troubleshooting.
  • Adds a /opentelemetry/instrument/api_support/java/logs alias.

Requested in the SDK Capabilities fortnightly status thread.

Merge instructions

Merge readiness:

  • Ready for merge

For Datadog employees:

Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). Without this format, your pull request will not pass CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.

If your branch doesn't follow this format, rename it or create a new branch and PR.

[6/5/2025] Merge queue has been disabled on the documentation repo. If you have write access to the repo, the PR has been reviewed by a Documentation team member, and all of the required checks have passed, you can use the Squash and Merge button to merge the PR. If you don't have write access, or you need help, reach out in the #documentation channel in Slack.

AI assistance

Drafted with Claude Code. Java code examples verified against the OTel Logs API and the dd-trace-java 1.62.0 implementation; pre-push code review (two reviewer agents + Codex adversarial review) applied before pushing.

Additional notes

No DOCS Jira ticket filed for this one — happy to add one if the team prefers.

dd-trace-java 1.62.0 ships native OpenTelemetry Logs API support and
OTLP/HTTP log export. Update the API support page to remove the "not
available" warning for Java logs and add Prerequisites, Setup, Examples,
Migrate, and Troubleshooting content alongside the existing supported
languages.
@github-actions github-actions Bot added the cdocs label May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

Match the structure of the existing Java metrics content in the same file:
- Trim Prerequisites to the Datadog SDK + opentelemetry-api version bullets.
- Mirror Setup wording and indentation (3-space) used by Java metrics.
- Revert Migrate to mirror Setup, matching how Java metrics handles migration
  (dd-trace-java is an agent-based implementation, not a manual SDK setup, so
  there is no SdkLoggerProvider/exporter to remove).
- Trim Troubleshooting to the two most relevant bullets.
@bm1549 bm1549 marked this pull request as ready for review May 14, 2026 23:08
@bm1549 bm1549 requested review from a team as code owners May 14, 2026 23:08
@bm1549 bm1549 requested a review from mcculls May 14, 2026 23:08
Copy link
Copy Markdown
Contributor

@janine-c janine-c left a comment

Choose a reason for hiding this comment

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

Looks great, Brian! I have some really minor suggestions, but otherwise let's get this published 🚀

Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md
Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md Outdated
Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md Outdated
Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md Outdated
bm1549 and others added 4 commits May 14, 2026 19:52
The page already lists 'Verify DD_LOGS_OTEL_ENABLED is set to true' as a
shared bullet at the top of the Troubleshooting section, so repeating it
in the Java-specific block is redundant.
- Backtick `dd-trace-java` in the Java prerequisites for consistency
  with the other languages in the logs section.
- Reorder the opentelemetry-api version qualifier so 'or later' attaches
  directly to 1.27.0 rather than being split by the parenthetical.
- Drop the /opentelemetry/instrument/api_support/java/logs alias since
  no historical page existed at that URL to redirect from.
Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md
Comment thread content/en/opentelemetry/instrument/dd_sdks/api_support.mdoc.md Outdated
bm1549 and others added 2 commits May 15, 2026 09:52
…d fix prereq spacing

- Tighten Java troubleshooting bullets in Metrics and Logs sections to
  explain why the javaagent is required (replaces vague "automatic
  instrumentation" phrasing)
- Add blank line between Java logs prerequisite bullets for consistent
  rendering

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Duncan Hewett <duncanhewett@users.noreply.github.com>
@bm1549 bm1549 merged commit 54e29db into master May 15, 2026
18 checks passed
@bm1549 bm1549 deleted the brian.marks/otel-logs-java-support branch May 15, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants