Skip to content

OtlpSerialization.ts

Serializes OTLP payloads into HTTP request bodies.

Signal exporters build trace, metric, and log data structures in memory. This module provides the service that turns those structures into JSON or protobuf HTTP bodies before they are posted to an OTLP collector.

Since v4.0.0



Provides OtlpSerialization using OTLP/HTTP JSON bodies.

Signature

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

Source

Since v4.0.0

Provides OtlpSerialization using protobuf-encoded OTLP bodies with the application/x-protobuf content type.

Signature

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

Source

Since v4.0.0

Service for serializing OTLP traces, metrics, and logs into HTTP request bodies.

Signature

declare class OtlpSerialization

Source

Since v4.0.0