Skip to content

Commit

Permalink
Merge pull request #102 from appoptics/cc/nh-42064
Browse files Browse the repository at this point in the history
NH-42064: exclude prepared statements from trace context insertion
  • Loading branch information
cleverchuk authored May 30, 2023
2 parents e6d56df + 0581297 commit 29ca727
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;

import java.util.Collections;
import java.util.List;

import static java.util.Arrays.asList;

@AutoService(InstrumentationModule.class)
public class AoJdbcInstrumentationModule extends InstrumentationModule {
public AoJdbcInstrumentationModule() {
Expand All @@ -28,10 +27,8 @@ public AoJdbcInstrumentationModule() {

@Override
public List<TypeInstrumentation> typeInstrumentations() {
return asList(
new AoConnectionInstrumentation(),
new AoStatementInstrumentation(),
new AoPreparedStatementInstrumentation()
return Collections.singletonList(
new AoStatementInstrumentation()
);
}

Expand Down
1 change: 1 addition & 0 deletions mvnlocalPub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env zsh
# This script exist to enable conveniently building and publishing the artifacts to local maven repo
date
./gradlew clean build
./gradlew agent:publishToMavenLocal
./gradlew solarwinds-otel-sdk:publishToMavenLocal
Expand Down

0 comments on commit 29ca727

Please sign in to comment.