Skip to content

Conversation

@otelbot
Copy link
Contributor

@otelbot otelbot bot commented Jul 11, 2025

Update the OpenTelemetry SDK version to 1.52.0.

@otelbot otelbot bot requested a review from a team as a code owner July 11, 2025 21:52
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Jul 11, 2025
@otelbot-java-instrumentation
Copy link
Contributor

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

Copy link
Member

@trask trask left a 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
Copy link
Member

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?

Copy link
Contributor

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

Copy link
Member

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

@trask trask merged commit 2e450ea into main Jul 15, 2025
172 of 174 checks passed
@trask trask deleted the otelbot/update-opentelemetry-sdk-to-1.52.0 branch July 15, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants