Class GcpObservability

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public final class GcpObservability
    extends java.lang.Object
    implements java.lang.AutoCloseable
    The main class for gRPC Google Cloud Platform Observability features.
    • Method Detail

      • grpcInit

        public static GcpObservability grpcInit()
                                         throws java.io.IOException
        Initialize grpc-observability.
        Throws:
        io.grpc.ManagedChannelProvider.ProviderNotFoundException - if no underlying channel/server provider is available.
        java.io.IOException
      • close

        public void close()
        Un-initialize/shutdown grpc-observability.
        Specified by:
        close in interface java.lang.AutoCloseable