Skip to content

Commit

Permalink
move aws-sdk to open-telemetry#11552
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Jun 11, 2024
1 parent 25660bd commit ac0e649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer;
import io.opentelemetry.javaagent.extension.instrumentation.internal.ExperimentalInstrumentationModule;
import java.util.List;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.matcher.ElementMatcher;

// TODO: Copy & paste with only trivial adaptions from v2
abstract class AbstractAwsSdkInstrumentationModule extends InstrumentationModule
implements ExperimentalInstrumentationModule {
abstract class AbstractAwsSdkInstrumentationModule extends InstrumentationModule {

protected AbstractAwsSdkInstrumentationModule(String additionalInstrumentationName) {
super("aws-sdk", "aws-sdk-1.11", additionalInstrumentationName);
Expand All @@ -31,8 +29,8 @@ public boolean isHelperClass(String className) {
}

@Override
public String getModuleGroup() {
return "aws-sdk";
public boolean isIndyModule() {
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import io.opentelemetry.javaagent.extension.instrumentation.internal.ExperimentalInstrumentationModule;
import java.util.List;

@AutoService(InstrumentationModule.class)
public class AwsSdkInstrumentationModule extends InstrumentationModule
implements ExperimentalInstrumentationModule {
public class AwsSdkInstrumentationModule extends InstrumentationModule {
public AwsSdkInstrumentationModule() {
super("aws-sdk", "aws-sdk-1.11", "aws-sdk-1.11-core");
}
Expand All @@ -26,8 +24,8 @@ public boolean isHelperClass(String className) {
}

@Override
public String getModuleGroup() {
return "aws-sdk";
public boolean isIndyModule() {
return false;
}

@Override
Expand Down

0 comments on commit ac0e649

Please sign in to comment.