Class GrpcExporterUtil

java.lang.Object
io.opentelemetry.exporter.internal.grpc.GrpcExporterUtil

public final class GrpcExporterUtil extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Field Details

    • GRPC_STATUS_CANCELLED

      public static final int GRPC_STATUS_CANCELLED
      See Also:
    • GRPC_STATUS_UNKNOWN

      public static final int GRPC_STATUS_UNKNOWN
      See Also:
    • GRPC_STATUS_DEADLINE_EXCEEDED

      public static final int GRPC_STATUS_DEADLINE_EXCEEDED
      See Also:
    • GRPC_STATUS_RESOURCE_EXHAUSTED

      public static final int GRPC_STATUS_RESOURCE_EXHAUSTED
      See Also:
    • GRPC_STATUS_ABORTED

      public static final int GRPC_STATUS_ABORTED
      See Also:
    • GRPC_STATUS_OUT_OF_RANGE

      public static final int GRPC_STATUS_OUT_OF_RANGE
      See Also:
    • GRPC_STATUS_UNIMPLEMENTED

      public static final int GRPC_STATUS_UNIMPLEMENTED
      See Also:
    • GRPC_STATUS_UNAVAILABLE

      public static final int GRPC_STATUS_UNAVAILABLE
      See Also:
    • GRPC_STATUS_DATA_LOSS

      public static final int GRPC_STATUS_DATA_LOSS
      See Also:
  • Constructor Details

    • GrpcExporterUtil

      private GrpcExporterUtil()
  • Method Details

    • logUnimplemented

      static void logUnimplemented(Logger logger, String type, @Nullable String fullErrorMessage)
    • getStatusMessage

      public static String getStatusMessage(byte[] serializedStatus) throws IOException
      Parses the message out of a serialized gRPC Status.
      Throws:
      IOException