A JavaScript/TypeScript SDK for sending traces and metrics to SkyEye via gRPC. Version 1.4.25 is current, with weekly releases. It provides a type-safe, promise-based client for streaming observability data, supporting both Node.js and browser environments. Differentiators include direct gRPC transport (vs HTTP), native TypeScript types, and low-level control over payloads.
npm install skyeye-sdk-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a client, send a trace, handle errors, and close the connection using environment variables for configuration.
Use import syntax or upgrade to Node 14+ with 'type': 'module'.
Use import { sendMetric } from 'skyeye-sdk-js/client' instead.Multiply milliseconds by 1e6: Date.now() * 1e6.
Call client.close() in a finally block or use process.on('exit', ...).Use import { SkyEyeClient } from 'skyeye-sdk-js'Verify SKYEYE_ENDPOINT env var matches the SkyEye collector address
Ensure trace object includes name, traceId, spanId, startTime, endTime