Package io.opentelemetry.api.internal
Interface Obfuscated<T>
-
@ThreadSafe public interface Obfuscated<T>
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
unobfuscate()
Returns the unobfuscated provider.
-
-
-
Method Detail
-
unobfuscate
T unobfuscate()
Returns the unobfuscated provider.- Returns:
- the unobfuscated provider.
-
-