Hyperlinkv0.8.0-beta.28

ApiMetrics

ApiMetrics.serveRemoteconstsrc/ApiMetrics.ts:225
<Self>(
  tag: ApiMetricsTag<Self>,
  options?: ApiMetricsTagOptions
): Layer.Layer<Handler<"metrics"> | Handler<"usage">, never, never>

Serve this metrics resource remotely (served-only) — the counterpart to Hyperlink.serveRemote. Mounts the metrics RPC handlers and registers into Hyperlink.servedHyperlinksLayer without granting the local instance. For a pure gateway/edge; use serve when the serving node also reads the metrics in-process.

layers & servingHyperlink.serveRemoteHyperlink.servedHyperlinksLayerserve
Source src/ApiMetrics.ts:2259 lines
export const serveRemote = <Self>(
  tag: ApiMetricsTag<Self>,
  options?: ApiMetricsTagOptions,
) =>
  Layer.unwrap(
    Effect.map(buildImpl(tag[clientIdSym], options), (impl) =>
      resourceServeRemote(tag, impl),
    ),
  );