import { IdGenerator } from "./IdGenerator.cjs"; import { Sampler } from "./Sampler.cjs"; import { SpanProcessor } from "./SpanProcessor.cjs"; import { SpanExporter } from "./export/SpanExporter.cjs"; import { MeterProvider } from "@opentelemetry/api"; import { Resource } from "@opentelemetry/resources"; //#region src/types.d.ts interface TracerProviderOptions { /** * Sampler determines if a span should be recorded or should be a NoopSpan. */ sampler?: Sampler; /** Span Limits */ spanLimits?: SpanLimits; /** Resource associated with trace telemetry */ resource?: Resource; /** * Generator of trace and span IDs * The default idGenerator generates random ids */ idGenerator?: IdGenerator; /** * List of SpanProcessor for the tracer */ spanProcessors?: SpanProcessor[]; /** * A meter provider to record trace SDK metrics to. * This defaults to a no-op meter provider. * @experimental This option is experimental and is subject to breaking changes in minor releases. */ meterProvider?: MeterProvider; } interface ForceFlushOptions { /** * How long the force flush can run before it is cancelled. * Defaults to 30000ms. */ timeoutMillis?: number; } /** Global configuration of trace service */ interface SpanLimits { /** attributeValueLengthLimit is maximum allowed attribute value size */ attributeValueLengthLimit?: number; /** attributeCountLimit is number of attributes per span */ attributeCountLimit?: number; /** linkCountLimit is number of links per span */ linkCountLimit?: number; /** eventCountLimit is number of message events per span */ eventCountLimit?: number; /** attributePerEventCountLimit is the maximum number of attributes allowed per span event */ attributePerEventCountLimit?: number; /** attributePerLinkCountLimit is the maximum number of attributes allowed per span link */ attributePerLinkCountLimit?: number; } /** * Common options for SDK span processors. * * @experimental This interface is experimental and is subject to breaking changes in minor releases. */ interface SpanProcessorOptions { /** * A meter provider to which to record self-observability span processor metrics. * @experimental This option is experimental and is subject to breaking changes in minor releases. */ selfObsMeterProvider?: MeterProvider; } interface SimpleSpanProcessorOptions extends SpanProcessorOptions { exporter: SpanExporter; } interface BatchSpanProcessorOptions extends SpanProcessorOptions { exporter: SpanExporter; /** The maximum batch size of every export. It must be smaller or equal to * maxQueueSize. The default value is 512. */ maxExportBatchSize?: number; /** The delay interval in milliseconds between two consecutive exports. * The default value is 5000ms. */ scheduledDelayMillis?: number; /** How long the export can run before it is cancelled. * The default value is 30000ms */ exportTimeoutMillis?: number; /** The maximum queue size. After the size is reached spans are dropped. * The default value is 2048. */ maxQueueSize?: number; /** Browser only: disable flush when a user navigates to a new page, closes the tab or the browser, or, * on mobile, switches to a different app. Auto flush is enabled by default. */ disableAutoFlushOnDocumentHide?: boolean; } /** @deprecated Use {@link BatchSpanProcessorOptions}, which includes the browser-only options. */ type BatchSpanProcessorBrowserOptions = BatchSpanProcessorOptions; //#endregion export { BatchSpanProcessorBrowserOptions, BatchSpanProcessorOptions, ForceFlushOptions, SimpleSpanProcessorOptions, SpanLimits, SpanProcessorOptions, TracerProviderOptions }; //# sourceMappingURL=types.d.cts.map