Package codes.grow.packages.skywalking
Enum Class OtlpProtocol
- All Implemented Interfaces:
Serializable,Comparable<OtlpProtocol>,Constable
OTLP protocol of the trace exporter. OAP 10.4 serves OTLP over gRPC only;
HTTP_PROTOBUF
is for an OpenTelemetry Collector in front of OAP.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOTLP/gRPC (default, OAP port 11800).OTLP/HTTP with protobuf bodies (collector only). -
Method Summary
Modifier and TypeMethodDescriptionstatic OtlpProtocolParses a wire value (case-insensitive).The matchingTracingConfig.Protocol.static OtlpProtocolReturns the enum constant of this class with the specified name.static OtlpProtocol[]values()Returns an array containing the constants of this enum class, in the order they are declared.Wire value.
-
Enum Constant Details
-
GRPC
OTLP/gRPC (default, OAP port 11800). -
HTTP_PROTOBUF
OTLP/HTTP with protobuf bodies (collector only).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
wireValue
Wire value.- Returns:
grpcorhttp/protobuf
-
toTracingProtocol
The matchingTracingConfig.Protocol.- Returns:
- the tracing protocol
-
parse
Parses a wire value (case-insensitive).- Parameters:
text-grpcorhttp/protobufsource- variable or field name for the error message (never the value)- Returns:
- the protocol
- Throws:
ConfigException- for any other value
-