Skip to main content

serialize_otlp_json

Function serialize_otlp_json 

Source
pub fn serialize_otlp_json(spans: &[SpanData], service_name: &str) -> String
Expand description

Serialize spans to OTLP JSON Protobuf encoding.

Format: https://opentelemetry.io/docs/specs/otlp/#json-protobuf-encoding