Skip to content

Commit eacda3f

Browse files
committed
Complex OTelContext constructor must be public
1 parent 81df037 commit eacda3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ddprof-lib/src/main/java/com/datadoghq/profiler/OTelContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ private OTelContext() {
120120
* @param errorHandler custom error handler for library loading failures, or null
121121
* to print warnings to System.out
122122
*/
123-
// @VisibleForTesting
124-
OTelContext(String libLocation, String scratchDir, Consumer<Throwable> errorHandler) {
123+
public OTelContext(String libLocation, String scratchDir, Consumer<Throwable> errorHandler) {
125124
LibraryLoader.Result result = LibraryLoader.builder().withLibraryLocation(libLocation).withScratchDir(scratchDir).load();
126125
if (!result.succeeded && result.error != null) {
127126
if (errorHandler != null) {

0 commit comments

Comments
 (0)