Skip to main content Link Search Menu Expand Document (external link)

Domain.ts overview

Since v1.0.0


Exports Grouped by Category


schemas

Counter

Signature

declare const Counter: any

Source

Since v1.0.0

ExternalSpan

Signature

declare const ExternalSpan: any

Source

Since v1.0.0

ExternalSpan (interface)

Signature

export interface ExternalSpan extends Schema.Schema.Type<typeof ExternalSpan> {}

Source

Since v1.0.0

ExternalSpanFrom (interface)

Signature

export interface ExternalSpanFrom extends Schema.Schema.Encoded<typeof ExternalSpan> {}

Source

Since v1.0.0

Frequency

Signature

declare const Frequency: any

Source

Since v1.0.0

Gauge

Signature

declare const Gauge: any

Source

Since v1.0.0

Histogram

Signature

declare const Histogram: any

Source

Since v1.0.0

Metric

Signature

declare const Metric: any

Source

Since v1.0.0

Metric (type alias)

Signature

type Metric = Schema.Schema.Type<typeof Metric>

Source

Since v1.0.0

MetricFrom (type alias)

Signature

type MetricFrom = Schema.Schema.Encoded<typeof Metric>

Source

Since v1.0.0

MetricLabel

Signature

declare const MetricLabel: any

Source

Since v1.0.0

MetricsRequest

Signature

declare const MetricsRequest: any

Source

Since v1.0.0

MetricsSnapshot

Signature

declare const MetricsSnapshot: any

Source

Since v1.0.0

MetricsSnapshot (type alias)

Signature

type MetricsSnapshot = Schema.Schema.Type<typeof MetricsSnapshot>

Source

Since v1.0.0

MetricsSnapshotFrom (type alias)

Signature

type MetricsSnapshotFrom = Schema.Schema.Encoded<typeof MetricsSnapshot>

Source

Since v1.0.0

ParentSpan

Signature

declare const ParentSpan: any

Source

Since v1.0.0

ParentSpan (type alias)

Signature

type ParentSpan = Span | ExternalSpan

Source

Since v1.0.0

ParentSpanFrom (type alias)

Signature

type ParentSpanFrom = SpanFrom | ExternalSpanFrom

Source

Since v1.0.0

Ping

Signature

declare const Ping: any

Source

Since v1.0.0

Pong

Signature

declare const Pong: any

Source

Since v1.0.0

Request

Signature

declare const Request: any

Source

Since v1.0.0

Request (type alias)

Signature

type Request = Schema.Schema.Type<typeof Request>

Source

Since v1.0.0

Request (namespace)

Source

Since v1.0.0

WithoutPing (type alias)

Signature

type WithoutPing = Exclude<Request, { readonly _tag: "Ping" }>

Source

Since v1.0.0

Response

Signature

declare const Response: any

Source

Since v1.0.0

Response (type alias)

Signature

type Response = Schema.Schema.Type<typeof Response>

Source

Since v1.0.0

Response (namespace)

Source

Since v1.0.0

WithoutPong (type alias)

Signature

type WithoutPong = Exclude<Response, { readonly _tag: "Pong" }>

Source

Since v1.0.0

Span

Signature

declare const Span: Schema.Schema<Span, SpanFrom>

Source

Since v1.0.0

Span (interface)

Signature

export interface Span {
  readonly _tag: "Span"
  readonly spanId: string
  readonly traceId: string
  readonly name: string
  readonly sampled: boolean
  readonly attributes: ReadonlyMap<string, unknown>
  readonly parent: Option<ParentSpan>
  readonly status:
    | {
        readonly _tag: "Started"
        readonly startTime: bigint
      }
    | {
        readonly _tag: "Ended"
        readonly startTime: bigint
        readonly endTime: bigint
      }
}

Source

Since v1.0.0

SpanEvent

Signature

declare const SpanEvent: Schema.Schema<
  SpanEvent,
  {
    readonly _tag: "SpanEvent"
    readonly spanId: string
    readonly traceId: string
    readonly name: string
    readonly attributes: { readonly [x: string]: unknown }
    readonly startTime: string
  }
>

Source

Since v1.0.0

SpanEvent (interface)

Signature

export interface SpanEvent {
  readonly _tag: "SpanEvent"
  readonly spanId: string
  readonly traceId: string
  readonly name: string
  readonly attributes: { readonly [x: string]: unknown }
  readonly startTime: bigint
}

Source

Since v1.0.0

SpanFrom (interface)

Signature

export interface SpanFrom {
  readonly _tag: "Span"
  readonly spanId: string
  readonly traceId: string
  readonly name: string
  readonly sampled: boolean
  readonly attributes: ReadonlyArray<readonly [string, unknown]>
  readonly parent: Schema.OptionEncoded<ParentSpanFrom>
  readonly status:
    | {
        readonly _tag: "Started"
        readonly startTime: string
      }
    | {
        readonly _tag: "Ended"
        readonly startTime: string
        readonly endTime: string
      }
}

Source

Since v1.0.0

SpanStatus

Signature

declare const SpanStatus: any

Source

Since v1.0.0

SpanStatusEnded

Signature

declare const SpanStatusEnded: any

Source

Since v1.0.0

SpanStatusStarted

Signature

declare const SpanStatusStarted: any

Source

Since v1.0.0

Summary

Signature

declare const Summary: any

Source

Since v1.0.0

metric

Signature

declare const metric: <Tag extends string, S, IS, R>(tag: Tag, state: Schema.Schema<S, IS, R>) => any

Source

Since v1.0.0