Package org.microproxy.otel
Enum Class Telemetry.Protocol
- All Implemented Interfaces:
Serializable,Comparable<Telemetry.Protocol>,Constable
- Enclosing class:
Telemetry
How OTLP is sent:
http/protobuf or http/json.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOTLP/HTTP withapplication/jsonbodies, ids in hex.OTLP/HTTP withapplication/x-protobufbodies. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content type of the requests.id()Returns the nameOTEL_EXPORTER_OTLP_PROTOCOLuses.static Telemetry.ProtocolThe protocol namedname.static Telemetry.ProtocolReturns the enum constant of this class with the specified name.static Telemetry.Protocol[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HTTP_PROTOBUF
OTLP/HTTP withapplication/x-protobufbodies. -
HTTP_JSON
OTLP/HTTP withapplication/jsonbodies, ids in hex.
-
-
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
-
id
Returns the nameOTEL_EXPORTER_OTLP_PROTOCOLuses.- Returns:
- the name
OTEL_EXPORTER_OTLP_PROTOCOLuses
-
contentType
Returns the content type of the requests.- Returns:
- the content type of the requests
-
of
The protocol namedname.- Parameters:
name-http/protobuforhttp/json- Returns:
- the protocol
- Throws:
IllegalArgumentException- for another name (grpcis not supported)
-