-
Notifications
You must be signed in to change notification settings - Fork 1k
make opentelemetry-* indy-ready #14695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make opentelemetry-* indy-ready #14695
Conversation
|
🔧 The result from spotlessApply was committed to the PR branch. |
…elemetry-java-instrumentation into indy-opentelemetry-api
| // 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 { |
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.
[for reviewer] using a different name here was required to pass checkstyle which complains about multiple AdviceScope classes in the same file.
…nstrumentation into indy-opentelemetry-api
...io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentation.java
Show resolved
Hide resolved
...emetry/javaagent/instrumentation/opentelemetryapi/ContextStorageWrappersInstrumentation.java
Outdated
Show resolved
Hide resolved
...io/opentelemetry/javaagent/instrumentation/extensionannotations/WithSpanInstrumentation.java
Outdated
Show resolved
Hide resolved
...opentelemetry/javaagent/instrumentation/extensionkotlin/ContextExtensionInstrumentation.java
Outdated
Show resolved
Hide resolved
…nstrumentation into indy-opentelemetry-api
…elemetry-java-instrumentation into indy-opentelemetry-api
| Span result = originalResult; | ||
|
|
||
| if (applicationSpan != null) { | ||
| result = applicationSpan; | ||
| } | ||
| return result; |
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.
could also convert to one liner
| Context result = originalResult; | ||
|
|
||
| if (newApplicationContext != null) { | ||
| result = newApplicationContext; | ||
| } | ||
| return result; |
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.
could also convert to one liner
Part of #13031 for all the
opentelemetry-*instrumentation modules.