Socket
Book a DemoInstallSign in
Socket

@bullhorn/bh-observability

Package Overview
Dependencies
Maintainers
10
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bullhorn/bh-observability

Open Telemetry Utilities for usage with Bullhorn applications.

0.1.2
latest
npmnpm
Version published
Weekly downloads
23
76.92%
Maintainers
10
Weekly downloads
 
Created
Source

BH Observability

Configurable writable stream that formats bunyan records that are piped into it.

Includes formats optimized for Papertrail's JSON log support. Console logs can also be conditionally turned off for otel integrations.

Prerequisites

This project requires NodeJS (version 16 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
8.5.5
v16.15.0

Installation

To install and set up the library, run:

$ npm install @bullhorn/bh-observability

Or if you prefer using Yarn:

$ yarn add @bullhorn/bh-observability

Usage

const bunyan = require('bunyan');
const { configurableStream } = require('@bullhorn/bh-observability');

const configStream = configurableStream({outputMode: loggerMode || 'short'});
const log = bunyan.createLogger({ name: 'app', stream: configStream, level: 'debug' } );

log.info('starting up');
log.debug({ temperature: 80, status: { started: 'yes', overheated: 'no' } }, 'things are heating up');
log.warn({ temperature: 120 }, 'getting a bit hot');
log.error(new Error('temperature: 200'), 'OOOOHHH it burns!');
log.fatal('I died! Do you know what that means???');

Configuration Options

Environment VariableDescription
DISABLE_CONSOLE_LOGSDisable console output.
Otel integrations will still capture logs

Contributing

All commits are published to the private bullhorn artifactory registry. One can test these package versions by installing with:

npm install --registry https://artifactory.bullhorn.com/api/npm/bh-npm

See gitlab build pipeline for more information about builds.

Versioning

Any release tags that match SemVer versioning should be automatically published to the public npm registry.

License

MIT License © Andrea SonnY

Keywords

bullhorn

FAQs

Package last updated on 06 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.