Skip to content

Commit

Permalink
Internal instrumentations should always be enabled by default (open-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored and robododge committed Jun 17, 2021
1 parent db4cdc1 commit 7e37126
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public ClassLoaderInstrumentationModule() {
super("internal-class-loader");
}

@Override
public boolean defaultEnabled() {
// internal instrumentations are always enabled by default
return true;
}

@Override
public boolean isHelperClass(String className) {
return className.equals("io.opentelemetry.javaagent.tooling.Constants");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public EclipseOsgiInstrumentationModule() {
super("internal-eclipse-osgi");
}

@Override
public boolean defaultEnabled() {
// internal instrumentations are always enabled by default
return true;
}

@Override
public List<TypeInstrumentation> typeInstrumentations() {
return singletonList(new EclipseOsgiInstrumentation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public ProxyInstrumentationModule() {
super("internal-proxy");
}

@Override
public boolean defaultEnabled() {
// internal instrumentations are always enabled by default
return true;
}

@Override
public List<TypeInstrumentation> typeInstrumentations() {
return singletonList(new ProxyInstrumentation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public UrlClassLoaderInstrumentationModule() {
super("internal-url-class-loader");
}

@Override
public boolean defaultEnabled() {
// internal instrumentations are always enabled by default
return true;
}

@Override
public List<TypeInstrumentation> typeInstrumentations() {
return singletonList(new UrlClassLoaderInstrumentation());
Expand Down

0 comments on commit 7e37126

Please sign in to comment.