Expand description
OTLP receivers.
Two listeners, because OTLP is two protocols. 4317 is OTLP/gRPC and is served
by tonic. 4318 is OTLP/HTTP — a plain HTTP/1.1 POST of protobuf to
/v1/{traces,metrics,logs} — which tonic cannot serve; that one is axum,
already in the tree via tonic’s router feature, so it costs no dependency.
Structs§
- Receivers
- One write handle per signal. The type parameter is what keeps a metrics
request from being handed to the logs flusher;
Ingestis generic precisely so that the mistake is a compile error rather than a corrupt block.
Enums§
- Encoding 🔒
- Which body encoding the client sent.
Functions§
- encoding 🔒
- export 🔒
- Decode, submit, and answer. Generic over the signal because the three endpoints differ only in which types they name.
- fail 🔒
- An error in the encoding the client asked for.
- http_
router - OTLP/HTTP on 4318.
- inflate 🔒
- Undo
Content-Encodingbefore anything tries to parse the body. - status_
for 🔒 - Map a rejection onto a gRPC status.