1.0.8 • Published 10 months ago

infrastack-interview-fs-bs v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

!WARNING

Use dynamic import if you are using ESM. Example:

import {  register } from "infrastack-interview-fs-bs";
register({
  endpoint: OTEL_COLLECTOR_URL,
  instruments: ["http", "express"],
  logLevel: DiagLogLevel.DEBUG,
  serviceName: "auth-service",
});
(async () => {
  const express = await import("express");

const app: Express = express.default(); const port = parseInt(process.env.PORT || "3000", 10);

app.listen(port, () => { console.log([server]: Server is running at http://localhost:${port}); }); })();