Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@servita/utilities

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@servita/utilities

A set of useful utilities

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Set of Servita 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([
  'PEP_SANDBOX_API_KEY_PKB',
  'ADMIN_API_KEY',
  'RECORDS_HOST',
  'ODS_HOST',
  'PKB_STATIC_MOCK_HOST',
  'GNCR_STATIC_MOCK_HOST',
  'ERS_STATIC_MOCK_HOST',
]);

#### 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);

FAQs

Package last updated on 31 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc