Skip to content
Myr

workers-shim.ts

This file

Path

apps/platform/test/workers-shim.ts

39 lines · 788 bytes · TypeScript

Last changed by

Merge observability into mainoscabrielbefore adoption1985111

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–36why, one step back
1import { fakeEnv } from "./fake-env.ts";
23export class DurableObject<E = Env> {4 readonly ctx: DurableObjectState;56 readonly env: E;78 constructor(ctx: DurableObjectState, env: E) {9 this.ctx = ctx;10 this.env = env;11 }12}1314export class WorkflowEntrypoint<E = Env> {15 readonly ctx: ExecutionContext;1617 readonly env: E;1819 constructor(ctx: ExecutionContext, env: E) {20 this.ctx = ctx;21 this.env = env;22 }23}2425export class WorkerEntrypoint<E = Env> {26 readonly ctx: ExecutionContext;2728 readonly env: E;2930 constructor(ctx: ExecutionContext, env: E) {31 this.ctx = ctx;32 this.env = env;33 }34}3536export const env = fakeEnv();

Merge observability into mainoscabrielbefore adoption1985111

lines 37–39why, one step back
37
38// Outside workerd no invocation is traced: every span is a no-op.39export { untracedTracing as tracing } from "@repo/telemetry/spans/memory";