@nikic/utilities

1.0.5 • Public • Published

Set of Pivro utiliy functions

Environment Check (envCheck)

Used to check whether environment variables are defined during startup.

Throws an error if any of the specified environment variables are not defined.

Usage
envCheck([
  'REDIS_HOST',
  'MONGO_HOST',
  'MONGO_USER',
  'MONGO_PASS'
]);

Convert OpenTelemetry trace and span IDs to Datadog format

Converts OpenTelemetry representations of trace and span IDs (128bit unsigned int in hexadecimal representation) to Datadog (64bit unsigned int).

Usage
const {convertedTraceId, convertedSpanId} = otelToDatadog(traceId, spanId);

Readme

Keywords

none

Package Sidebar

Install

npm i @nikic/utilities

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

13.5 kB

Total Files

16

Last publish

Collaborators

  • nikic