Package 

Class OpenObserveGlideModule

  • All Implemented Interfaces:
    com.bumptech.glide.module.AppliesOptions , com.bumptech.glide.module.RegistersComponents

    
    public class OpenObserveGlideModule
    extends AppGlideModule
                        

    Provides 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 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

      • getClientBuilder

         OkHttpClient.Builder getClientBuilder()

        Creates the OkHttpClient.Builder. The default implementation returns a builder already setup with a OpenObserveInterceptor and OpenObserveEventListener.Factory.