Class GrpcExporterUtil
- java.lang.Object
-
- io.opentelemetry.exporter.internal.grpc.GrpcExporterUtil
-
public final class GrpcExporterUtil extends java.lang.ObjectThis class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description static intGRPC_STATUS_ABORTEDstatic intGRPC_STATUS_CANCELLEDstatic intGRPC_STATUS_DATA_LOSSstatic intGRPC_STATUS_DEADLINE_EXCEEDEDstatic intGRPC_STATUS_OUT_OF_RANGEstatic intGRPC_STATUS_RESOURCE_EXHAUSTEDstatic intGRPC_STATUS_UNAVAILABLEstatic intGRPC_STATUS_UNIMPLEMENTEDstatic intGRPC_STATUS_UNKNOWN
-
Constructor Summary
Constructors Modifier Constructor Description privateGrpcExporterUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetStatusMessage(byte[] serializedStatus)Parses the message out of a serialized gRPC Status.(package private) static voidlogUnimplemented(java.util.logging.Logger logger, java.lang.String type, java.lang.String fullErrorMessage)
-
-
-
Field Detail
-
GRPC_STATUS_CANCELLED
public static final int GRPC_STATUS_CANCELLED
- See Also:
- Constant Field Values
-
GRPC_STATUS_UNKNOWN
public static final int GRPC_STATUS_UNKNOWN
- See Also:
- Constant Field Values
-
GRPC_STATUS_DEADLINE_EXCEEDED
public static final int GRPC_STATUS_DEADLINE_EXCEEDED
- See Also:
- Constant Field Values
-
GRPC_STATUS_RESOURCE_EXHAUSTED
public static final int GRPC_STATUS_RESOURCE_EXHAUSTED
- See Also:
- Constant Field Values
-
GRPC_STATUS_ABORTED
public static final int GRPC_STATUS_ABORTED
- See Also:
- Constant Field Values
-
GRPC_STATUS_OUT_OF_RANGE
public static final int GRPC_STATUS_OUT_OF_RANGE
- See Also:
- Constant Field Values
-
GRPC_STATUS_UNIMPLEMENTED
public static final int GRPC_STATUS_UNIMPLEMENTED
- See Also:
- Constant Field Values
-
GRPC_STATUS_UNAVAILABLE
public static final int GRPC_STATUS_UNAVAILABLE
- See Also:
- Constant Field Values
-
GRPC_STATUS_DATA_LOSS
public static final int GRPC_STATUS_DATA_LOSS
- See Also:
- Constant Field Values
-
-
Method Detail
-
logUnimplemented
static void logUnimplemented(java.util.logging.Logger logger, java.lang.String type, @Nullable java.lang.String fullErrorMessage)
-
getStatusMessage
public static java.lang.String getStatusMessage(byte[] serializedStatus) throws java.io.IOExceptionParses the message out of a serialized gRPC Status.- Throws:
java.io.IOException
-
-