Skip to main content

Crate detritus_protocol

Crate detritus_protocol 

Source
Expand description

Wire protocol types for Detritus telemetry and crash ingestion.

detritus-protocol owns the schema shared by detritus-client and detritus-server: source identity, crash envelopes, and the curated OTLP log facade used by the client and receiver. Version 0.1.0 supports OTLP logs only; traces and metrics are intentionally outside the published compatibility surface.

PROTOCOL_VERSION is carried in HTTP and gRPC metadata so clients and servers can reject payloads encoded for an incompatible schema.

use detritus_protocol::PROTOCOL_VERSION;

assert_eq!(PROTOCOL_VERSION, 1);

Re-exports§

pub use crash::AttachmentManifest;
pub use crash::BuildInfo;
pub use crash::CrashAttachment;
pub use crash::CrashEnvelope;
pub use crash::CrashKind;
pub use crash::CrashMetadata;
pub use crash::ProtocolError;
pub use source::SourceId;

Modules§

crash
Crash-report schema types and protocol errors. JSON crash-report schema and multipart envelope description.
multipart
Multipart encoding and parsing helpers for crash envelopes. Feature-gated multipart helpers for crash envelopes.
otlp
Curated OpenTelemetry Protocol log-service bindings. Curated facade over generated OTLP log protobuf modules.
schema
Per-tenant JSON Schema descriptors for payload validation. Per-tenant JSON Schema descriptors for crash and log payload validation.
source
Source identity attached to Detritus payloads. Source identity for observability payloads.

Constants§

GRPC_VERSION_KEY
gRPC metadata key carrying PROTOCOL_VERSION.
HTTP_VERSION_HEADER
HTTP header carrying PROTOCOL_VERSION.
PROTOCOL_VERSION
Current observability ingestion schema version.