Skip to content

[OpenTelemetry] Add an experiment to enable the instrumentation agent in Java's portability harness#35227

Open
sjvanrossum wants to merge 34 commits intoapache:masterfrom
sjvanrossum:otel-add-javaagent
Open

[OpenTelemetry] Add an experiment to enable the instrumentation agent in Java's portability harness#35227
sjvanrossum wants to merge 34 commits intoapache:masterfrom
sjvanrossum:otel-add-javaagent

Conversation

@sjvanrossum
Copy link
Copy Markdown
Contributor

To support OpenTelemetry this change adds the Java instrumentation agent to the portability harness, guarded by an experiment. Acquiring a handle to an OpenTelemetry instance is enabled by a new SdkHarnessOptions property.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 10, 2025

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.77%. Comparing base (d0e48e2) to head (e122f21).
⚠️ Report is 1275 commits behind head on master.

Files with missing lines Patch % Lines
sdks/java/container/boot.go 0.00% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             master   #35227    +/-   ##
==========================================
  Coverage     56.76%   56.77%            
  Complexity     3384     3384            
==========================================
  Files          1220     1220            
  Lines        185448   185563   +115     
  Branches       3520     3520            
==========================================
+ Hits         105277   105351    +74     
- Misses        76843    76877    +34     
- Partials       3328     3335     +7     
Flag Coverage Δ
go 28.22% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@sjvanrossum
Copy link
Copy Markdown
Contributor Author

Run Java PreCommit

@sjvanrossum
Copy link
Copy Markdown
Contributor Author

Run Java_IOs_Direct PreCommit

@derrickaw
Copy link
Copy Markdown
Collaborator

waiting on author

@stankiewicz
Copy link
Copy Markdown
Contributor

Run Java PreCommit

@stankiewicz
Copy link
Copy Markdown
Contributor

Run Java_IOs_Direct PreCommit

@sjvanrossum
Copy link
Copy Markdown
Contributor Author

Run Java PreCommit

@sjvanrossum
Copy link
Copy Markdown
Contributor Author

Run Java_Amazon-Web-Services2_IO_Direct PreCommit

@sjvanrossum
Copy link
Copy Markdown
Contributor Author

Run Java_IOs_Direct PreCommit

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added stale and removed stale labels Nov 15, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added stale and removed stale labels Jan 15, 2026
@derrickaw
Copy link
Copy Markdown
Collaborator

waiting on author

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants