Registry / devops / o11y_schema

o11y_schema

JSON →
library264.70.0jsnpmunverified

Observability schema definitions and utilities for structured telemetry data. Current stable version is 264.70.0, released with high frequency (minor/patch updates daily). Provides JSON Schema and TypeScript types for logs, metrics, and traces. Differentiated by versioned, opinionated schemas for multi-vendor interoperability and strict validation. No official documentation available; primarily a dependency for observability toolchains.

npm install o11y_schema
INSTALL
IMPORT
SIG · O11Y_SCHEMA
O
o11y_schema
devopsjavascriptv264.70.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default export
import schema from 'o11y_schema'
const schema = require('o11y_schema')
ESM-only; no CommonJS export
SchemaType
import { SchemaType } from 'o11y_schema'
Named export for TypeScript types
Validator
import { Validator } from 'o11y_schema'
import { validate } from 'o11y_schema'
Exported class; function named validate not exported

Imports the default schema object and validates a log entry against the LogSchema.

import schema from 'o11y_schema'; const logSchema = schema.LogSchema; const data = { message: 'test', level: 'info' }; const valid = logSchema.validate(data); console.log('Valid:', valid);
Debug
Known issues
breakingRemoved support for Node.js < 18 in v250.0.0
fix
Upgrade Node.js to v18+
affects: >=250.0.0
breakingRenamed MetricSchema to MetricsSchema in v200.0.0
fix
Replace MetricSchema with MetricsSchema in imports
affects: >=200.0.0
deprecatedDeprecated 'TraceSchema' in favor of 'SpanSchema' in v260.0.0
fix
Use SpanSchema instead of TraceSchema
affects: >=260.0.0
gotchaNo default export of utility functions; must import from subpaths like 'o11y_schema/utils'
fix
Import specific submodules: import { mergeSchemas } from 'o11y_schema/utils'
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'o11y_schema'
Package not installed or missing from package.json
fix
Run npm install o11y_schema
TypeError: schema.LogSchema.validate is not a function
Incorrect import; LogSchema is a schema object, not a validator instance
fix
Use schema.LogSchema.validate(data) correctly or import Validator separately
Upgrade
Version history
264.70.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
o11y_schema — npm install o11y_schema · libregistry