OtlpSerialization.ts
OtlpSerialization.ts overview
Section titled “OtlpSerialization.ts overview”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
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”layerJson
Section titled “layerJson”Provides OtlpSerialization using OTLP/HTTP JSON bodies.
Signature
declare const layerJson: Layer.Layer<OtlpSerialization, never, never>Since v4.0.0
layerProtobuf
Section titled “layerProtobuf”Provides OtlpSerialization using protobuf-encoded OTLP bodies with the
application/x-protobuf content type.
Signature
declare const layerProtobuf: Layer.Layer<OtlpSerialization, never, never>Since v4.0.0
services
Section titled “services”OtlpSerialization (class)
Section titled “OtlpSerialization (class)”Service for serializing OTLP traces, metrics, and logs into HTTP request bodies.
Signature
declare class OtlpSerializationSince v4.0.0