PayloadChunking.EstimateValueBytes(Object) Method

Definition

Estimates the serialized byte size of a single attribute value in OTLP/HTTP JSON.

public static long EstimateValueBytes(object? value);
static member EstimateValueBytes : obj -> int64
Public Shared Function EstimateValueBytes (value As Object) As Long

Parameters

value
Object

The attribute value to estimate.

Returns

An over-estimate of the serialized size in bytes.

Applies to