-
Notifications
You must be signed in to change notification settings - Fork 1k
Update the OpenTelemetry SDK version to 1.52.0 #14231
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
Conversation
|
🔧 The result from spotlessApply was committed to the PR branch. |
trask
left a comment
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.
thanks @laurit
| import io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_27.logs.LogBridging; | ||
| import io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_50.incubator.logs.ApplicationLogger150Incubator; | ||
|
|
||
| @SuppressWarnings("deprecation") // isEnabled() in ExtendedLogger has been deprecated |
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.
I don't see the no-arg isEnabled() used here?
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.
It isn't used but errorprone produces the warning nevertheless
../opentelemetry-java-instrumentation/instrumentation/opentelemetry-api/opentelemetry-api-1.52/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/v1_52/incubator/logs/ApplicationLogger152Incubator.java:15: warning: [deprecation] isEnabled() in ExtendedLogger has been deprecated
class ApplicationLogger152Incubator extends ApplicationLogger150Incubator
^
1 error
1 warning
perhaps it sees that it is implemented in the super class? If we add
@Override
public boolean isEnabled() {
return agentLogger.isEnabled(io.opentelemetry.api.logs.Severity.UNDEFINED_SEVERITY_NUMBER);
}to this class then we could put the @SuppressWarnings("deprecation") only on that method
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.
ah, no worries, looks good as-is
Update the OpenTelemetry SDK version to
1.52.0.