apps 0.0.1-beta.59 → 0.0.1-beta.60

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.
@@ -6,7 +6,7 @@ import { Effect, Schema } from "effect";
6
6
  * shutdown loss are reported through the normal safe export-failure signal.
7
7
  * Scope release drains for the same three-second budget as the other exporters.
8
8
  */
9
- export declare const makeTelemetryForwarder: Effect.Effect<(batch: TelemetryBatch, traceId: string, build?: string) => Effect.Effect<void, never, never>, never, import("effect/Scope").Scope>;
9
+ export declare const makeTelemetryForwarder: Effect.Effect<(batch: TelemetryBatch, traceId: string, source: TelemetrySource) => Effect.Effect<void, never, never>, never, import("effect/Scope").Scope>;
10
10
  /** Untrusted isolate batches are bounded before decoding; no endpoint or credential crosses back. */
11
11
  export declare const TelemetryBatch: Schema.Struct<{
12
12
  readonly traces: Schema.$Array<Schema.String>;
@@ -24,5 +24,13 @@ export declare const collectTelemetry: <A, E, R>(effect: Effect.Effect<A, E, R>)
24
24
  dropped: number;
25
25
  };
26
26
  }, E, Exclude<Exclude<R, import("effect/observability/OtlpExporter").Flusher>, never>>;
27
+ /**
28
+ * What the host knows about the records' source, from its own invocation rather than the records:
29
+ * the build that ran and, for an app isolate, the app's opaque ID. Both become resource attributes.
30
+ */
31
+ export interface TelemetrySource {
32
+ readonly build?: string | undefined;
33
+ readonly app?: string | undefined;
34
+ }
27
35
  /** Validate isolated records and export only this call's trace, using parent-owned credentials/identity. */
28
- export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, build: string | undefined, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/http/HttpClientError").HttpClientError | import("effect/Cause").TimeoutError, never>;
36
+ export declare const forwardTelemetry: (batch: TelemetryBatch, traceId: string | undefined, { build, app }: TelemetrySource, service?: "executor-app" | "executor-web") => Effect.Effect<void, Schema.SchemaError | import("effect/http/HttpClientError").HttpClientError | import("effect/Cause").TimeoutError, never>;