Skip to main content Link Search Menu Expand Document (external link)

OtlpSerialization.ts overview

OtlpSerialization service for tree-shakable protobuf support.

This module provides the OtlpSerialization service that abstracts the encoding of OTLP telemetry data to HttpBody.

Since v1.0.0


Exports Grouped by Category


Layers

layerJson

JSON serializer layer for OTLP telemetry data.

It encodes telemetry data as JSON with application/json content type.

Signature

declare const layerJson: Layer.Layer<OtlpSerialization, never, never>

Source

Since v1.0.0

layerProtobuf

Protobuf serializer layer for OTLP telemetry data.

This serializer encodes telemetry data using Protocol Buffers binary format with application/x-protobuf content type. It provides more efficient wire format compared to JSON.

Signature

declare const layerProtobuf: Layer.Layer<OtlpSerialization, never, never>

Source

Since v1.0.0

Tags

OtlpSerialization (class)

Signature

declare class OtlpSerialization

Source

Since v1.0.0