Skip to content

Conversation

@SylvainJuge
Copy link
Contributor

Part of #13031 for all the opentelemetry-* instrumentation modules.

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

// Every usage of @Advice.Origin Method is replaced with a call to Class.getMethod, copy it
// to local variable so that there would be only one call to Class.getMethod.
method = originMethod;
public static class WithSpanAdviceScope {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[for reviewer] using a different name here was required to pass checkstyle which complains about multiple AdviceScope classes in the same file.

@SylvainJuge SylvainJuge marked this pull request as ready for review September 18, 2025 09:40
@SylvainJuge SylvainJuge requested a review from a team as a code owner September 18, 2025 09:40
@SylvainJuge SylvainJuge self-assigned this Sep 18, 2025
Comment on lines 116 to 121
Span result = originalResult;

if (applicationSpan != null) {
result = applicationSpan;
}
return result;
Copy link
Contributor

Choose a reason for hiding this comment

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

could also convert to one liner

Comment on lines 78 to 83
Context result = originalResult;

if (newApplicationContext != null) {
result = newApplicationContext;
}
return result;
Copy link
Contributor

Choose a reason for hiding this comment

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

could also convert to one liner

@laurit laurit enabled auto-merge (squash) September 26, 2025 12:10
@laurit laurit merged commit c10ebeb into open-telemetry:main Sep 26, 2025
89 checks passed
@SylvainJuge SylvainJuge deleted the indy-opentelemetry-api branch September 26, 2025 13:58
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.

3 participants