-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove experimental methods out of (to-be-public) TelemetryBuilder cl…
…asses (#12847)
- Loading branch information
Showing
23 changed files
with
519 additions
and
0 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
36 changes: 36 additions & 0 deletions
36
...in/java/io/opentelemetry/instrumentation/apachehttpclient/v4_3/internal/Experimental.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.apachehttpclient.v4_3.internal; | ||
|
||
import io.opentelemetry.instrumentation.apachehttpclient.v4_3.ApacheHttpClientTelemetryBuilder; | ||
import java.util.function.BiConsumer; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* This class is internal and experimental. Its APIs are unstable and can change at any time. Its | ||
* APIs (or a version of them) may be promoted to the public stable API in the future, but no | ||
* guarantees are made. | ||
*/ | ||
public final class Experimental { | ||
|
||
@Nullable | ||
private static volatile BiConsumer<ApacheHttpClientTelemetryBuilder, Boolean> | ||
setEmitExperimentalTelemetry; | ||
|
||
public static void setEmitExperimentalTelemetry( | ||
ApacheHttpClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) { | ||
if (setEmitExperimentalTelemetry != null) { | ||
setEmitExperimentalTelemetry.accept(builder, emitExperimentalTelemetry); | ||
} | ||
} | ||
|
||
public static void setSetEmitExperimentalTelemetry( | ||
BiConsumer<ApacheHttpClientTelemetryBuilder, Boolean> setEmitExperimentalTelemetry) { | ||
Experimental.setEmitExperimentalTelemetry = setEmitExperimentalTelemetry; | ||
} | ||
|
||
private Experimental() {} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...rary/src/main/java/io/opentelemetry/instrumentation/httpclient/internal/Experimental.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.httpclient.internal; | ||
|
||
import io.opentelemetry.instrumentation.httpclient.JavaHttpClientTelemetryBuilder; | ||
import java.util.function.BiConsumer; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* This class is internal and experimental. Its APIs are unstable and can change at any time. Its | ||
* APIs (or a version of them) may be promoted to the public stable API in the future, but no | ||
* guarantees are made. | ||
*/ | ||
public final class Experimental { | ||
|
||
@Nullable | ||
private static volatile BiConsumer<JavaHttpClientTelemetryBuilder, Boolean> | ||
setEmitExperimentalTelemetry; | ||
|
||
public static void setEmitExperimentalTelemetry( | ||
JavaHttpClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) { | ||
if (setEmitExperimentalTelemetry != null) { | ||
setEmitExperimentalTelemetry.accept(builder, emitExperimentalTelemetry); | ||
} | ||
} | ||
|
||
public static void setSetEmitExperimentalTelemetry( | ||
BiConsumer<JavaHttpClientTelemetryBuilder, Boolean> setEmitExperimentalTelemetry) { | ||
Experimental.setEmitExperimentalTelemetry = setEmitExperimentalTelemetry; | ||
} | ||
|
||
private Experimental() {} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...n/java/io/opentelemetry/instrumentation/jetty/httpclient/v12_0/internal/Experimental.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.jetty.httpclient.v12_0.internal; | ||
|
||
import io.opentelemetry.instrumentation.jetty.httpclient.v12_0.JettyClientTelemetryBuilder; | ||
import java.util.function.BiConsumer; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* This class is internal and experimental. Its APIs are unstable and can change at any time. Its | ||
* APIs (or a version of them) may be promoted to the public stable API in the future, but no | ||
* guarantees are made. | ||
*/ | ||
public final class Experimental { | ||
|
||
@Nullable | ||
private static volatile BiConsumer<JettyClientTelemetryBuilder, Boolean> | ||
setEmitExperimentalTelemetry; | ||
|
||
public static void setEmitExperimentalTelemetry( | ||
JettyClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) { | ||
if (setEmitExperimentalTelemetry != null) { | ||
setEmitExperimentalTelemetry.accept(builder, emitExperimentalTelemetry); | ||
} | ||
} | ||
|
||
public static void setSetEmitExperimentalTelemetry( | ||
BiConsumer<JettyClientTelemetryBuilder, Boolean> setEmitExperimentalTelemetry) { | ||
Experimental.setEmitExperimentalTelemetry = setEmitExperimentalTelemetry; | ||
} | ||
|
||
private Experimental() {} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...in/java/io/opentelemetry/instrumentation/jetty/httpclient/v9_2/internal/Experimental.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.jetty.httpclient.v9_2.internal; | ||
|
||
import io.opentelemetry.instrumentation.jetty.httpclient.v9_2.JettyClientTelemetryBuilder; | ||
import java.util.function.BiConsumer; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* This class is internal and experimental. Its APIs are unstable and can change at any time. Its | ||
* APIs (or a version of them) may be promoted to the public stable API in the future, but no | ||
* guarantees are made. | ||
*/ | ||
public final class Experimental { | ||
|
||
@Nullable | ||
private static volatile BiConsumer<JettyClientTelemetryBuilder, Boolean> | ||
setEmitExperimentalTelemetry; | ||
|
||
public static void setEmitExperimentalTelemetry( | ||
JettyClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) { | ||
if (setEmitExperimentalTelemetry != null) { | ||
setEmitExperimentalTelemetry.accept(builder, emitExperimentalTelemetry); | ||
} | ||
} | ||
|
||
public static void setSetEmitExperimentalTelemetry( | ||
BiConsumer<JettyClientTelemetryBuilder, Boolean> setEmitExperimentalTelemetry) { | ||
Experimental.setEmitExperimentalTelemetry = setEmitExperimentalTelemetry; | ||
} | ||
|
||
private Experimental() {} | ||
} |
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
Oops, something went wrong.