Skip to content

Commit

Permalink
feat: include caller logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Feb 26, 2024
1 parent f0a20b5 commit a1535cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"moment": "^2.29.4",
"node-fetch": "^3.3.2",
"pino": "^8.16.2",
"pino-caller": "^3.4.0",
"pino-pretty": "^10.2.3",
"query-string": "^8.1.0",
"reflect-metadata": "^0.2.1",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "reflect-metadata";
import { Cli } from "./cli/cli.ts";
import pinoCaller from "pino-caller";

import { RootConfig } from "./config/root.config";
import { ConfigLoader } from "./system/loader.ts";
Expand Down Expand Up @@ -28,7 +29,8 @@ const configLoader = new ConfigLoader(prefix, delimiter, paths, RootConfig);
const cfg = await configLoader.load();

const otel = new OtelService(cfg);
const logger = await otel.start();
const baseLogger = await otel.start();
const logger = pinoCaller(baseLogger);

// Start DI
const caches = loadRedis(cfg);
Expand Down

0 comments on commit a1535cc

Please sign in to comment.