(
resource: HyperlinkLogKey | HyperlinkLogKeySource,
options?: LogReadOptions
): Effect.Effect<ReadonlyArray<LogEntry>>Read durable logs for a specific resource by full key (same string as
Hyperlink.logs(tag) / store registration / lineage segment).
Pass a scope tag (Process.Tag / QueueHyperlink.Tag / …) or its .key string.
Hyperlink kind is Hyperlink.kindOf on the tag — not a separate query argument.
Requires that resource's store registration (Process.store / QueueHyperlink.store, …) on the
ambient Store.Storage. Missing registration fails via Store.resolveOrDie
(StoreScopeNotRegistered) — empty success is not used as a silent signal for “wrong key.”
export const const byHyperlink: (
resource:
| HyperlinkLogKey
| HyperlinkLogKeySource,
options?: LogReadOptions
) => Effect.Effect<ReadonlyArray<LogEntry>>
Read durable logs for a specific resource by full key (same string as
Hyperlink.logs
(tag) / store registration / lineage segment).
Pass a scope tag (Process.Tag / QueueHyperlink.Tag / …) or its .key string.
Hyperlink kind is
Hyperlink.kindOf
on the tag — not a separate query argument.
Requires that resource's store registration (Process.store / QueueHyperlink.store, …) on the
ambient
Store.Storage
. Missing registration fails via
Store.resolveOrDie
(StoreScopeNotRegistered) — empty success is not used as a silent signal for “wrong key.”
byHyperlink = (
resource: HyperlinkLogKey | HyperlinkLogKeySourceresource: type HyperlinkLogKey = stringHyperlink key — identity of a queue, process, or tag (Hyperlink.Tag.key). Used in lineage,
byHyperlink, and
LogEntry.hasKey
.
HyperlinkLogKey | type HyperlinkLogKeySource = {
readonly key: HyperlinkLogKey
}
Source carrying a resource key (Hyperlink.Tag.key / store registration key).
HyperlinkLogKeySource,
options: LogReadOptionsoptions?: LogReadOptions,
): import EffectEffect.interface Effect<out A, out E = never, out R = never>The Effect interface defines a value that lazily describes a workflow or
job. The workflow requires some context R, and may fail with an error of
type E, or succeed with a value of type A.
When to use
Use when you need to represent a lazy, composable workflow that can require
services, fail with a typed error, or succeed with a typed value.
Details
Effect values model resourceful interaction with the outside world,
including synchronous, asynchronous, concurrent, and parallel interaction.
They use a fiber-based concurrency model, with built-in support for
scheduling, fine-grained interruption, structured concurrency, and high
scalability.
To run an Effect value, you need a Runtime, which is a type that is
capable of executing Effect values.
Effect<interface ReadonlyArray<T>ReadonlyArray<import LogEntryLogEntry>> =>
import queryDurableScopequeryDurableScope(const resolveHyperlinkLogKey: (
resource:
| HyperlinkLogKey
| HyperlinkLogKeySource
) => HyperlinkLogKey
resolveHyperlinkLogKey(resource: HyperlinkLogKey | HyperlinkLogKeySourceresource), {
limit: numberlimit: options: LogReadOptionsoptions?.LogReadOptions.limit?: number | undefinedlimit ?? const queryLimitDefault: 200queryLimitDefault,
});