Skip to content

Commit

Permalink
fix: start server in middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Gallas <Milan.Gallas@ibm.com>
  • Loading branch information
Milan Gallas authored and Milan Gallas committed Jan 27, 2025
1 parent 7cf0798 commit 8329365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/instrumentation/create-telemetry-metrics-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import { buildModuleUsageMetric, isMeasurementedInstance } from "./opentelemetry
import { GenerateCallbacks } from "@/llms/base.js";
import { createFullPath } from "@/emitter/utils.js";
import { metricReader } from "./sdk.js";
import { startMetricNodeSdkReader } from "@/instrumentation/sdk.js";

startMetricNodeSdkReader();

export const activeTracesMap = new Map<string, string>();

Expand Down
3 changes: 0 additions & 3 deletions src/internals/serializable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import * as R from "remeda";
import { extractClassName } from "@/serializer/utils.js";
import { SerializerError } from "@/serializer/error.js";
import { Cache } from "@/cache/decoratorCache.js";
import { startMetricNodeSdkReader } from "@/instrumentation/sdk.js";

startMetricNodeSdkReader();

export type SerializableClass<T> = ClassConstructor<Serializable<T>> &
Pick<typeof Serializable<T>, "fromSnapshot" | "fromSerialized">;
Expand Down

0 comments on commit 8329365

Please sign in to comment.