/** * OtlpSerialization service for tree-shakable protobuf support. * * This module provides the `OtlpSerialization` service that abstracts the * encoding of OTLP telemetry data to HttpBody. * * @since 1.0.0 */ import * as HttpBody from "@effect/platform/HttpBody"; import * as Context from "effect/Context"; import * as Layer from "effect/Layer"; declare const OtlpSerialization_base: Context.TagClass HttpBody.HttpBody; /** * Encodes metrics data for transmission. */ readonly metrics: (data: unknown) => HttpBody.HttpBody; /** * Encodes logs data for transmission. */ readonly logs: (data: unknown) => HttpBody.HttpBody; }>; /** * @since 1.0.0 * @category Tags */ export declare class OtlpSerialization extends OtlpSerialization_base { } /** * JSON serializer layer for OTLP telemetry data. * * It encodes telemetry data as JSON with `application/json` content type. * * @since 1.0.0 * @category Layers */ export declare const layerJson: Layer.Layer; /** * 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. * * @since 1.0.0 * @category Layers */ export declare const layerProtobuf: Layer.Layer; export {}; //# sourceMappingURL=OtlpSerialization.d.ts.map