Skip to content

fromProtobuf

fromProtobuf(bytes, options?): DDSketch

Defined in: packages/distillate/src/ddsketch/protobuf/protobuf.ts:210

Decodes Datadog’s DDSketch protobuf message, as sketches-go, sketches-java and the Datadog agent write it.

The message carries no sum, min or max, so the decoded sketch derives them from its bins: each is within relativeAccuracy of the truth for min and max, and approximate for sum.

Uint8Array

The serialized message.

ProtobufOptions = {}

Optional store for the decoded bins.

DDSketch

The decoded sketch.

SerializationError when the message is malformed.