Hyperlinkv0.8.0-beta.28

Telemetry

Source src/Telemetry.ts:43712 lines
export const layer = <Self>(
  tag: TelemetryTag<Self>,
  options?: TelemetryOptions,
): Layer.Layer<
  Self | Hyperlink.Local<Self>,
  never,
  PeersId<Self> | SelfNodeId<Self>
> =>
  buildImpl(tag, options).pipe(
    Effect.map((impl) => resourceLayer(tag, impl)),
    Layer.unwrap,
  );