Module Resource_signal.Encode

Encode signals to protobuf or JSON encoded strings, ready to be sent over the wire

val logs : ?encoder:Pbrt.Encoder.t -> ?protocol:protocol -> Opentelemetry_proto.Logs.resource_logs list -> string

logs ls is an encoded string of the logs ls.

  • parameter encoder

    provide an encoder state to reuse (protobuf only)

  • parameter protocol

    encoding protocol to use (default: Http_protobuf)

val metrics : ?encoder:Pbrt.Encoder.t -> ?protocol:protocol -> Opentelemetry_proto.Metrics.resource_metrics list -> string

metrics ms is an encoded string of the metrics ms.

  • parameter encoder

    provide an encoder state to reuse (protobuf only)

  • parameter protocol

    encoding protocol to use (default: Http_protobuf)

val traces : ?encoder:Pbrt.Encoder.t -> ?protocol:protocol -> Opentelemetry_proto.Trace.resource_spans list -> string

traces ts is an encoded string of the traces ts.

  • parameter encoder

    provide an encoder state to reuse (protobuf only)

  • parameter protocol

    encoding protocol to use (default: Http_protobuf)

val any : ?encoder:Pbrt.Encoder.t -> ?protocol:protocol -> t -> string