apps 0.0.1-beta.130 → 0.0.1-beta.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  export { CurrentTelemetryConfig, TelemetryConfig, TelemetryTarget, telemetryConfig, } from "./config.js";
3
3
  export { telemetryLayer, telemetryFromConfig } from "./layer.js";
4
4
  export { captureTelemetry, traceHeaders, withRemoteSpan, invocationFetch, type InvocationTelemetry, } from "./context.js";
5
- export { collectTelemetry, forwardTelemetry, makeTelemetryForwarder, TelemetryDrainScope, TelemetryBatch, } from "./relay.js";
5
+ export { collectTelemetry, forwardTelemetry, makeTelemetryForwarder, TelemetryDrainScope, TelemetryWaitReport, type TelemetryWait, TelemetryBatch, } from "./relay.js";
6
6
  export { TraceContext, currentTraceContext, externalTrace, traceLinks } from "./trace-context.js";
7
7
  export { pendingSpan } from "./pending-span.js";
8
8
  export { makeOwnershipAccounting, measuredSpan, owned, ownedBy, ownerAttribute, type Owner, type SpanMeasure, } from "./ownership.js";
@@ -1,5 +1,12 @@
1
1
  /** Bounded OTLP return channel for credential-free app isolates. The parent owns export. */
2
2
  import { Context, Effect, Schema, Scope } from "effect";
3
+ /**
4
+ * A telemetry wait a request's close makes that reached its bound: the forwarder's drain, or the
5
+ * product analytics flush. A host that reports how its requests closed records it; the default
6
+ * records nothing.
7
+ */
8
+ export type TelemetryWait = "forwarder" | "analytics";
9
+ export declare const TelemetryWaitReport: Context.Reference<(wait: TelemetryWait) => Effect.Effect<void>>;
3
10
  /**
4
11
  * The scope a host gives telemetry it waits for when a request ends: the forwarder's queue and
5
12
  * its drain. A host that closes this scope after the request's other resources, such as its