@coding-club-iitg/ops-contract
v0.3.0
Published
Telemetry contracts shared by Coding Club IITG services
Readme
@coding-club-iitg/ops-contract
This package contains the dependency-free LogEventV1 and MetricEventV1
telemetry wire contracts.
npm install @coding-club-iitg/ops-contractimport {
parseLogEventV1,
parseMetricEventV1,
type LogEventV1,
type MetricEventV1,
} from "@coding-club-iitg/ops-contract";Projects and their services are registered in project-registry.ts.
Service IDs must be globally unique.
The fixtures/valid files are shared acceptance inputs.
Every producer must emit these shapes exactly, and every consumer must accept them.
The fixtures/invalid files document payloads that must be rejected or sent to
the ingestion dead-letter store.
V1 deliberately excludes bodies, raw URLs, query values, headers, cookies,
credentials, IP addresses, user agents, uploaded content, identity data, stack
traces, and arbitrary metadata.
attributes is restricted to the exported allowlist and scalar values.
Route parameters must be represented by framework template syntax.
