diff --git a/sdk/all/src/main/java/io/opentelemetry/sdk/Obfuscated.java b/sdk/all/src/main/java/io/opentelemetry/sdk/Obfuscated.java deleted file mode 100644 index 4243762b70..0000000000 --- a/sdk/all/src/main/java/io/opentelemetry/sdk/Obfuscated.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * SPDX-License-Identifier: Apache-2.0 - */ - -package io.opentelemetry.sdk; - -import javax.annotation.concurrent.ThreadSafe; - -/** - * This interface allows the SDK to unobfuscate an obfuscated static global provider. - * - *
Static global providers are obfuscated when they are returned from the API to prevent users - * from casting them to their SDK specific implementation. - * - *
This is important for auto-instrumentation, because if users take the static global providers
- * that are returned from the API, and cast them to their SDK specific implementations, then those
- * casts will fail under auto-instrumentation, because auto-instrumentation takes over the static
- * global providers returned by the API and points them to it's embedded SDK.
- */
-@ThreadSafe
-interface Obfuscated Static global providers are obfuscated when they are returned from the API to prevent users
+ * from casting them to their SDK specific implementation. For example, we do not want users to
+ * use patterns like {@code (TracerSdkProvider) OpenTelemetry.getGlobalTracerProvider()}.
*/
@ThreadSafe
// Visible for testing
- static class ObfuscatedTracerProvider implements TracerProvider, Obfuscated