Package dev.dokimos.server.service
Class OtlpProtobufConverter
java.lang.Object
dev.dokimos.server.service.OtlpProtobufConverter
Translates the protobuf
ExportTraceServiceRequest into the same DTO tree Jackson produces for
the OTLP/HTTP JSON encoding, so both encodings share one parser and persistence path. Normalizes the
wire differences: ids to lowercase hex, uint64 nanos to decimal strings, enums to their symbolic names,
and unset defaults to null, matching what a JSON exporter sends.-
Method Summary
Modifier and TypeMethodDescriptiontoDto(io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest request) Converts a decoded protobuf request into the common OTLP request DTO.
-
Method Details
-
toDto
public static OtlpExportTraceServiceRequest toDto(io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest request) Converts a decoded protobuf request into the common OTLP request DTO.- Parameters:
request- the protobuf message parsed from the request body- Returns:
- the equivalent DTO, ready for the shared ingestion path
-