/** * 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. * * @stability unstable * @since 4.0.0 */ import * as Context from "../Context.ts"; import * as HttpBody from "../http/HttpBody.ts"; import * as Layer from "../Layer.ts"; import type { LogsData } from "./OtlpLogger.ts"; import type { MetricsData } from "./OtlpMetrics.ts"; import type { TraceData } from "./OtlpTracer.ts"; declare const OtlpSerialization_base: Context.ServiceClass HttpBody.HttpBody; readonly metrics: (data: MetricsData) => HttpBody.HttpBody; readonly logs: (data: LogsData) => HttpBody.HttpBody; }>; /** * Service for serializing OTLP traces, metrics, and logs into HTTP request * bodies. * * @stability unstable * @category services * @since 4.0.0 */ export declare class OtlpSerialization extends OtlpSerialization_base { } /** * Provides `OtlpSerialization` using OTLP/HTTP JSON bodies. * * **Details** * * `NaN`, `Infinity` and `-Infinity` are written as the strings OTLP/JSON * expects, not as `null`. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerJson: Layer.Layer; /** * Provides `OtlpSerialization` using protobuf-encoded OTLP bodies with the * `application/x-protobuf` content type. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerProtobuf: Layer.Layer; export {}; //# sourceMappingURL=OtlpSerialization.d.ts.map