EdgeAIG's picture
download
raw
1.16 kB
import * as Duration from "../../Duration.ts";
import * as Effect from "../../Effect.ts";
import * as Scope from "../../Scope.ts";
import * as Headers from "../../unstable/http/Headers.ts";
import * as HttpClient from "../../unstable/http/HttpClient.ts";
import type { HttpBody } from "../http/HttpBody.ts";
/**
* Creates a scoped OTLP batch exporter.
*
* **Details**
*
* The exporter buffers pushed data, periodically posts encoded batches to the
* configured URL, retries transient failures, temporarily disables exporting
* after unhandled failures, and flushes during scope finalization up to
* `shutdownTimeout`.
*
* @category constructors
* @since 4.0.0
*/
export declare const make: (options: {
readonly url: string;
readonly headers: Headers.Input | undefined;
readonly label: string;
readonly exportInterval: Duration.Input;
readonly maxBatchSize: number | "disabled";
readonly body: (data: Array<any>) => HttpBody;
readonly shutdownTimeout: Duration.Input;
}) => Effect.Effect<{
readonly push: (data: unknown) => void;
}, never, HttpClient.HttpClient | Scope.Scope>;
//# sourceMappingURL=OtlpExporter.d.ts.map

Xet Storage Details

Size:
1.16 kB
·
Xet hash:
bb56dbd9ef0f09f4ff41b0293cb0ad8e3ac6e4434115443271826cc87a18a81c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.