Skip to content

Commit

Permalink
Merge pull request #256 from solarwinds/cc/CUST-110209
Browse files Browse the repository at this point in the history
CUST-110209: remove joboe logging from SDK
  • Loading branch information
cleverchuk authored Aug 20, 2024
2 parents 2dacba9 + 5a747d3 commit 777b420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions gradle/shadow.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
ext.relocatePackages = { shadowJar ->
// Prevents conflict with other SLF4J instances. Important for premain.
shadowJar.relocate 'org.slf4j', 'io.opentelemetry.javaagent.slf4j'
// rewrite dependencies calling Logger.getLogger
shadowJar.relocate 'java.util.logging.Logger', 'io.opentelemetry.javaagent.bootstrap.PatchLogger'

// prevents conflict with library instrumentation, since these classes live in the bootstrap class loader
shadowJar.relocate("io.opentelemetry.instrumentation", "io.opentelemetry.javaagent.shaded.instrumentation") {
Expand Down
2 changes: 0 additions & 2 deletions solarwinds-otel-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ dependencies {
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-bootstrap:${versions.opentelemetryJavaagentAlpha}")

compileOnly("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api:${versions.opentelemetryJavaagent}")
implementation "com.solarwinds.joboe:logging:${versions.joboe}"

testImplementation project(path: ":bootstrap")
testImplementation 'org.mockito:mockito-core:5.3.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.3.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

package com.solarwinds.api.ext;

import com.solarwinds.joboe.logging.Logger;
import com.solarwinds.joboe.logging.LoggerFactory;
import com.solarwinds.opentelemetry.core.AgentState;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;

public class SolarwindsAgent {
private SolarwindsAgent() {}

private static final Logger logger = LoggerFactory.getLogger();
private static final Logger logger = Logger.getLogger(SolarwindsAgent.class.getName());

private static boolean agentAttached = false;

Expand All @@ -35,7 +34,7 @@ private SolarwindsAgent() {}
agentAttached = true;

} catch (ClassNotFoundException | NoClassDefFoundError | NoSuchMethodError e) {
logger.warn("The SolarWinds APM Agent is not available. The SDK will be no-op.");
logger.warning("The SolarWinds APM Agent is not available. The SDK will be no-op.");
}
}

Expand Down

0 comments on commit 777b420

Please sign in to comment.