-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from appoptics/NH-2669-update-otel-dependency
NH2669: Dependencies: Upgrade Otel agent to 1.7.2
- Loading branch information
Showing
13 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 13 additions & 9 deletions
22
.../main/java/com/appoptics/opentelemetry/extensions/AppOpticsBootstrapPackagesProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
package com.appoptics.opentelemetry.extensions; | ||
|
||
import com.google.auto.service.AutoService; | ||
import io.opentelemetry.javaagent.spi.BootstrapPackagesProvider; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
@AutoService(BootstrapPackagesProvider.class) | ||
public class AppOpticsBootstrapPackagesProvider implements BootstrapPackagesProvider { | ||
import io.opentelemetry.instrumentation.api.config.Config; | ||
import io.opentelemetry.javaagent.extension.bootstrap.BootstrapPackagesBuilder; | ||
import io.opentelemetry.javaagent.extension.bootstrap.BootstrapPackagesConfigurer; | ||
|
||
/** | ||
* This adds the Joboe core classes to the list which would always be loaded by the bootstrap classloader, | ||
* no matter what classloader is used initially. | ||
* The Otel agent instruments all classloaders and checks the class named to be loaded. It will load the class | ||
* with the bootstrap classloader if the class mateches any of the prefix in the list above. | ||
*/ | ||
@AutoService(BootstrapPackagesConfigurer.class) | ||
public class AppOpticsBootstrapPackagesProvider implements BootstrapPackagesConfigurer { | ||
@Override | ||
public List<String> getPackagePrefixes() { | ||
return Arrays.asList("com.tracelytics"); | ||
public void configure(Config config, BootstrapPackagesBuilder builder) { | ||
builder.add("com.tracelytics"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsPropertySource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsSamplerProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters