diff --git a/core/src/tracing/index.ts b/core/src/tracing.ts similarity index 98% rename from core/src/tracing/index.ts rename to core/src/tracing.ts index 14ef7b4..5b8290f 100644 --- a/core/src/tracing/index.ts +++ b/core/src/tracing.ts @@ -8,7 +8,7 @@ // export { type Tracer, type Attributes, type Name, setTracer, trace, traceP, traceF, event }; -import type { Future } from "../future"; +import type { Future } from "./future"; // A flat bag of primitive values attached to a trace or event. type Attributes = Record; diff --git a/core/src/tracing/opentelemetry.ts b/core/src/tracing/opentelemetry.ts index 6855968..355adcc 100644 --- a/core/src/tracing/opentelemetry.ts +++ b/core/src/tracing/opentelemetry.ts @@ -15,7 +15,7 @@ // OTLP trace viewer such as https://tracekit.dev/tools/trace-visualizer. export { OpenTelemetryTracer, OtlpJsonStdoutProcessor }; -import { type Tracer, type Attributes } from "./index"; +import { type Tracer, type Attributes } from "../tracing"; import { Future } from "../future"; import { context, diff --git a/core/src/tracing/proxy.ts b/core/src/tracing/proxy.ts index 419a5c1..591e73a 100644 --- a/core/src/tracing/proxy.ts +++ b/core/src/tracing/proxy.ts @@ -16,7 +16,7 @@ // })); export { ProxyTracer, type Config }; -import { type Tracer, type Attributes } from "./index"; +import { type Tracer, type Attributes } from "../tracing"; import type { Future } from "../future"; import { fileURLToPath } from "node:url"; import { dirname, sep } from "node:path"; diff --git a/core/src/tracing/simple.ts b/core/src/tracing/simple.ts index b21f207..ee0f685 100644 --- a/core/src/tracing/simple.ts +++ b/core/src/tracing/simple.ts @@ -11,7 +11,7 @@ // $ docker logs event-sourcing-backend | grep "\"ph\"" | jq -s '.' >events.json export { SimpleTracer }; -import type { Tracer, Attributes } from "./index"; +import type { Tracer, Attributes } from "../tracing"; import { Future } from "../future"; import { AsyncLocalStorage } from "node:async_hooks";