/** * @since 1.0.0 */ import type { Option } from "effect/Option"; import * as Schema from "effect/Schema"; /** * @since 1.0.0 * @category schemas */ export declare const SpanStatusStarted: Schema.Struct<{ _tag: Schema.Literal<["Started"]>; startTime: typeof Schema.BigInt; }>; /** * @since 1.0.0 * @category schemas */ export declare const SpanStatusEnded: Schema.Struct<{ _tag: Schema.Literal<["Ended"]>; startTime: typeof Schema.BigInt; endTime: typeof Schema.BigInt; }>; /** * @since 1.0.0 * @category schemas */ export declare const SpanStatus: Schema.Union<[Schema.Struct<{ _tag: Schema.Literal<["Started"]>; startTime: typeof Schema.BigInt; }>, Schema.Struct<{ _tag: Schema.Literal<["Ended"]>; startTime: typeof Schema.BigInt; endTime: typeof Schema.BigInt; }>]>; /** * @since 1.0.0 * @category schemas */ export declare const ExternalSpan: Schema.Struct<{ _tag: Schema.Literal<["ExternalSpan"]>; spanId: typeof Schema.String; traceId: typeof Schema.String; sampled: typeof Schema.Boolean; }>; /** * @since 1.0.0 * @category schemas */ export interface ExternalSpanFrom extends Schema.Schema.Encoded { } /** * @since 1.0.0 * @category schemas */ export interface ExternalSpan extends Schema.Schema.Type { } /** * @since 1.0.0 * @category schemas */ export declare const Span: Schema.Schema; /** * @since 1.0.0 * @category schemas */ export declare const SpanEvent: Schema.Schema; /** * @since 1.0.0 * @category schemas */ export declare const ParentSpan: Schema.Union<[Schema.Schema, Schema.Struct<{ _tag: Schema.Literal<["ExternalSpan"]>; spanId: typeof Schema.String; traceId: typeof Schema.String; sampled: typeof Schema.Boolean; }>]>; /** * @since 1.0.0 * @category schemas */ export type ParentSpanFrom = SpanFrom | ExternalSpanFrom; /** * @since 1.0.0 * @category schemas */ export type ParentSpan = Span | ExternalSpan; /** * @since 1.0.0 * @category schemas */ export interface SpanFrom { readonly _tag: "Span"; readonly spanId: string; readonly traceId: string; readonly name: string; readonly sampled: boolean; readonly attributes: ReadonlyArray; readonly parent: Schema.OptionEncoded; readonly status: { readonly _tag: "Started"; readonly startTime: string; } | { readonly _tag: "Ended"; readonly startTime: string; readonly endTime: string; }; } /** * @since 1.0.0 * @category schemas */ export interface Span { readonly _tag: "Span"; readonly spanId: string; readonly traceId: string; readonly name: string; readonly sampled: boolean; readonly attributes: ReadonlyMap; readonly parent: Option; readonly status: { readonly _tag: "Started"; readonly startTime: bigint; } | { readonly _tag: "Ended"; readonly startTime: bigint; readonly endTime: bigint; }; } /** * @since 1.0.0 * @category schemas */ export interface SpanEvent { readonly _tag: "SpanEvent"; readonly spanId: string; readonly traceId: string; readonly name: string; readonly attributes: { readonly [x: string]: unknown; }; readonly startTime: bigint; } /** * @since 1.0.0 * @category schemas */ export declare const Ping: Schema.Struct<{ _tag: Schema.Literal<["Ping"]>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Pong: Schema.Struct<{ _tag: Schema.Literal<["Pong"]>; }>; /** * @since 1.0.0 * @category schemas */ export declare const MetricsRequest: Schema.Struct<{ _tag: Schema.Literal<["MetricsRequest"]>; }>; /** * @since 1.0.0 * @category schemas */ export declare const MetricLabel: Schema.Struct<{ key: typeof Schema.String; value: typeof Schema.String; }>; /** * @since 1.0.0 * @category schemas */ export declare const metric: (tag: Tag, state: Schema.Schema) => Schema.Struct<{ _tag: Schema.Literal<[Tag]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema; }>; /** * @since 1.0.0 * @category schemas */ export declare const Counter: Schema.Struct<{ _tag: Schema.Literal<["Counter"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number | bigint; }, { readonly count: string | number; }, never>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Frequency: Schema.Struct<{ _tag: Schema.Literal<["Frequency"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly occurrences: { readonly [x: string]: number; }; }, { readonly occurrences: { readonly [x: string]: number; }; }, never>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Gauge: Schema.Struct<{ _tag: Schema.Literal<["Gauge"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly value: number | bigint; }, { readonly value: string | number; }, never>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Histogram: Schema.Struct<{ _tag: Schema.Literal<["Histogram"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly buckets: readonly (readonly [number, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, { readonly count: number; readonly buckets: readonly (readonly [number | null, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, never>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Summary: Schema.Struct<{ _tag: Schema.Literal<["Summary"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, Option])[]; }, { readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, { readonly _tag: "None"; } | { readonly _tag: "Some"; readonly value: number; }])[]; }, never>; }>; /** * @since 1.0.0 * @category schemas */ export declare const Metric: Schema.Union<[Schema.Struct<{ _tag: Schema.Literal<["Counter"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number | bigint; }, { readonly count: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Frequency"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly occurrences: { readonly [x: string]: number; }; }, { readonly occurrences: { readonly [x: string]: number; }; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Gauge"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly value: number | bigint; }, { readonly value: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Histogram"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly buckets: readonly (readonly [number, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, { readonly count: number; readonly buckets: readonly (readonly [number | null, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Summary"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, Option])[]; }, { readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, { readonly _tag: "None"; } | { readonly _tag: "Some"; readonly value: number; }])[]; }, never>; }>]>; /** * @since 1.0.0 * @category schemas */ export type Metric = Schema.Schema.Type; /** * @since 1.0.0 * @category schemas */ export type MetricFrom = Schema.Schema.Encoded; /** * @since 1.0.0 * @category schemas */ export declare const MetricsSnapshot: Schema.Struct<{ _tag: Schema.Literal<["MetricsSnapshot"]>; metrics: Schema.Array$; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number | bigint; }, { readonly count: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Frequency"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly occurrences: { readonly [x: string]: number; }; }, { readonly occurrences: { readonly [x: string]: number; }; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Gauge"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly value: number | bigint; }, { readonly value: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Histogram"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly buckets: readonly (readonly [number, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, { readonly count: number; readonly buckets: readonly (readonly [number | null, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Summary"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, Option])[]; }, { readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, { readonly _tag: "None"; } | { readonly _tag: "Some"; readonly value: number; }])[]; }, never>; }>]>>; }>; /** * @since 1.0.0 * @category schemas */ export type MetricsSnapshot = Schema.Schema.Type; /** * @since 1.0.0 * @category schemas */ export type MetricsSnapshotFrom = Schema.Schema.Encoded; /** * @since 1.0.0 * @category schemas */ export declare const Request: Schema.Union<[Schema.Struct<{ _tag: Schema.Literal<["Ping"]>; }>, Schema.Schema, Schema.Schema, Schema.Struct<{ _tag: Schema.Literal<["MetricsSnapshot"]>; metrics: Schema.Array$; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number | bigint; }, { readonly count: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Frequency"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly occurrences: { readonly [x: string]: number; }; }, { readonly occurrences: { readonly [x: string]: number; }; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Gauge"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly value: number | bigint; }, { readonly value: string | number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Histogram"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly buckets: readonly (readonly [number, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, { readonly count: number; readonly buckets: readonly (readonly [number | null, number])[]; readonly min: number; readonly max: number; readonly sum: number; }, never>; }>, Schema.Struct<{ _tag: Schema.Literal<["Summary"]>; name: typeof Schema.String; description: Schema.optionalWith; tags: Schema.Array$>; state: Schema.Schema<{ readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, Option])[]; }, { readonly count: number; readonly min: number; readonly max: number; readonly sum: number; readonly error: number; readonly quantiles: readonly (readonly [number, { readonly _tag: "None"; } | { readonly _tag: "Some"; readonly value: number; }])[]; }, never>; }>]>>; }>]>; /** * @since 1.0.0 * @category schemas */ export type Request = Schema.Schema.Type; /** * @since 1.0.0 * @category schemas */ export declare namespace Request { /** * @since 1.0.0 * @category schemas */ type WithoutPing = Exclude; } /** * @since 1.0.0 * @category schemas */ export declare const Response: Schema.Union<[Schema.Struct<{ _tag: Schema.Literal<["Pong"]>; }>, Schema.Struct<{ _tag: Schema.Literal<["MetricsRequest"]>; }>]>; /** * @since 1.0.0 * @category schemas */ export type Response = Schema.Schema.Type; /** * @since 1.0.0 * @category schemas */ export declare namespace Response { /** * @since 1.0.0 * @category schemas */ type WithoutPong = Exclude; } //# sourceMappingURL=Domain.d.ts.map