GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sdk builders extended with addProcessorFirst methods by onurkybsi · Pull Request #7243 · open-telemetry/opentelemetry-java

Conversation

@onurkybsi

@onurkybsi onurkybsi commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

Resolves the issue #6599.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@onurkybsi
onurkybsi requested a review from a team as a code owner April 2, 2025 20:29
@codecov

codecov Bot commented Apr 2, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.62%. Comparing base (04677f9) to head (e719247).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7243      +/-   ##
============================================
+ Coverage     89.60%   89.62%   +0.01%     
- Complexity     6859     6862       +3     
============================================
  Files           780      780              
  Lines         20728    20735       +7     
  Branches       2018     2018              
============================================
+ Hits          18574    18584      +10     
+ Misses         1514     1512       -2     
+ Partials        640      639       -1     

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@onurkybsi onurkybsi mentioned this pull request Apr 3, 2025
Potentially common error when registering log record processors via AutoConfigurationCustomizer? #6599
Closed
gavarava
gavarava approved these changes Apr 4, 2025
View reviewed changes
jack-berg
jack-berg reviewed Apr 10, 2025
View reviewed changes
Comment thread sdk/logs/src/main/java/io/opentelemetry/sdk/logs/LogRecordProcessor.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@onurkybsi
onurkybsi force-pushed the issue-6599 branch from 4ce3d8a to 20645f7 Compare April 15, 2025 07:47
@onurkybsi onurkybsi changed the title BatchLogRecordProcessor enforced to end of processor pipeline SdkLoggerProviderBuilder. addLogRecordProcessorFirst added Apr 16, 2025
jack-berg
jack-berg approved these changes Apr 17, 2025
View reviewed changes

@jack-berg jack-berg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Approving, but should also add the equivalent method to tracing

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java
* @param processor the log processor
* @return this
*/
public SdkLoggerProviderBuilder addLogRecordProcessorFirst(LogRecordProcessor processor) {

@jack-berg jack-berg Apr 17, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This name follows the naming convention of Deque#addFirst, albeit "LogRecordProcessor" inserted between "add" and "First".

While it initially seems like a verbose name, I think its probably the best we can do to balance consistency with the existing "addLogRecordProcessor" and the precedent in java with Deque#addFirst.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trask and onurkybsi reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
onurkybsi added 4 commits April 18, 2025 19:01
@onurkybsi
BatchLogRecordProcessor enforced to end of processor pipeline
b516f56
@onurkybsi
A minor refactoring
1f7c407
@onurkybsi
A minor Java doc addition
6f8a181
@onurkybsi
PR comments addressed
a493302
@onurkybsi
onurkybsi force-pushed the issue-6599 branch from ff11e58 to a493302 Compare April 18, 2025 17:02
onurkybsi added 2 commits April 18, 2025 19:33
@onurkybsi
SdkTracerProviderBuilder.addSpanProcessorFirst added
6460057
@onurkybsi
jApiCmp task executed
e719247
@onurkybsi onurkybsi changed the title SdkLoggerProviderBuilder. addLogRecordProcessorFirst added Sdk builders extended with addProcessorFirst methods Apr 18, 2025
trask
trask approved these changes Apr 18, 2025
View reviewed changes
@jack-berg
jack-berg merged commit 8fda429 into open-telemetry:main Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@trask trask trask approved these changes
@jack-berg jack-berg jack-berg approved these changes
+1 more reviewer
@gavarava gavarava gavarava approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@onurkybsi @trask @gavarava @jack-berg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.