PublishedProject_id: glassjs

glassjs

Structured logging and request tracing utility.

TypeScriptNode.js
01.

Overview

An observability helper for consistent logs and shared request context.

glassjs provides shared logging conventions and request-scoped trace helpers for Node.js services.

02.

Problem Solved

Service logs only become operationally useful when structure and context stay consistent across services.

03.

Install

install.sh
$ npm install @krazybean/glassjs
04.

Usage Example

Quick start

import { createLogger } from "@krazybean/glassjs";

const logger = createLogger({ service: "api" });
05.

Key Design Decisions

Key Design Decisions

Structured Logging

Event shape stays consistent so logs remain queryable across services.

Observability

Request Tracing

Trace helpers keep related request activity connected without custom glue.

Correlation

Context Propagation

Shared context moves through middleware with minimal ceremony.

Service Flow

06.

Links