-
- All Implemented Interfaces:
-
com.bumptech.glide.module.AppliesOptions,com.bumptech.glide.module.RegistersComponents
public class OpenObserveGlideModule extends AppGlideModuleProvides a basic implementation of AppGlideModule already set up to send relevant information to OpenObserve.
This sets up an OkHttp based downloader that will send Traces and RUM Resource events. Also, any Glide related error (Disk cache, source transformation, …) will be sent as RUM Errors.
-
-
Constructor Summary
Constructors Constructor Description OpenObserveGlideModule(String sdkInstanceName, List<String> firstPartyHosts, Float sampleRate)OpenObserveGlideModule(String sdkInstanceName, List<String> firstPartyHosts)OpenObserveGlideModule(String sdkInstanceName)OpenObserveGlideModule()
-
Method Summary
Modifier and Type Method Description UnitregisterComponents(Context context, Glide glide, Registry registry)UnitapplyOptions(Context context, GlideBuilder builder)OkHttpClient.BuildergetClientBuilder()Creates the OkHttpClient.Builder. -
-
Constructor Detail
-
OpenObserveGlideModule
OpenObserveGlideModule(String sdkInstanceName, List<String> firstPartyHosts, Float sampleRate)
- Parameters:
sdkInstanceName- the SDK instance name to bind to, or null to check the default instance.firstPartyHosts- the list of first party hosts.sampleRate- the sample rate for APM traces created for auto-instrumented requests.
-
OpenObserveGlideModule
OpenObserveGlideModule(String sdkInstanceName, List<String> firstPartyHosts)
- Parameters:
sdkInstanceName- the SDK instance name to bind to, or null to check the default instance.firstPartyHosts- the list of first party hosts.
-
OpenObserveGlideModule
OpenObserveGlideModule(String sdkInstanceName)
- Parameters:
sdkInstanceName- the SDK instance name to bind to, or null to check the default instance.
-
OpenObserveGlideModule
OpenObserveGlideModule()
-
-
Method Detail
-
registerComponents
Unit registerComponents(Context context, Glide glide, Registry registry)
-
applyOptions
Unit applyOptions(Context context, GlideBuilder builder)
-
getClientBuilder
OkHttpClient.Builder getClientBuilder()
Creates the OkHttpClient.Builder. The default implementation returns a builder already setup with a OpenObserveInterceptor and OpenObserveEventListener.Factory.
-
-
-
-