{"_id":"@bullhorn/bh-observability","_rev":"10-63321917d368446e7de680f2b982e73c","name":"@bullhorn/bh-observability","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@bullhorn/bh-observability","version":"0.1.0","keywords":["bullhorn","opentelemetry","log","stream","noop"],"author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"license":"MIT","_id":"@bullhorn/bh-observability@0.1.0","maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"akurtovic","email":"akurtovic@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"homepage":"https://bullhorn.com","dist":{"shasum":"0a6fb5a63e2f49ed06b491ae807cbac5a01be371","tarball":"https://registry.npmjs.org/@bullhorn/bh-observability/-/bh-observability-0.1.0.tgz","fileCount":6,"integrity":"sha512-qqZR48p5tou7WK0uzpGMYzJwtSc0VkE+izEAVxccVCL9gZEQitRjs2SiyY331w79hlQ5br5wNzR683HDdlpxqA==","signatures":[{"sig":"MEYCIQDDpskbIHmebMaI6cKSnhPy4F1tF19Tzf8vhHiIqSO1yQIhAIYB/ELOjyJ0UfzwqbLzPi1EX0d1f4bpkd/M2DWDQP8q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20992},"main":"index.js","engine":{"node":">=16.15"},"gitHead":"8366d62c341c06e7b0ca83d3fea9a1c838614a33","private":false,"scripts":{"ci:unit":"echo 'No test step'","ci:build":"echo 'No build step'","ci:package":"echo 'No package step'"},"_npmUser":{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"_npmVersion":"10.2.3","description":"Open Telemetry Utilities for usage with Bullhorn applications.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"xtend":"^4.0.2","ansicolors":"^0.3.2","ansistyles":"^0.1.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bh-observability_0.1.0_1746462991713_0.7354462053289081","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bullhorn/bh-observability","version":"0.1.1","keywords":["bullhorn","opentelemetry","log","stream","noop"],"author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"license":"MIT","_id":"@bullhorn/bh-observability@0.1.1","maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"akurtovic","email":"akurtovic@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"homepage":"https://bullhorn.com","dist":{"shasum":"417b84a0f88d4f4badd963c78593ff07187efc7d","tarball":"https://registry.npmjs.org/@bullhorn/bh-observability/-/bh-observability-0.1.1.tgz","fileCount":6,"integrity":"sha512-W53dOEPEkbJFXfT461i4tnrhafyw5pyjaG5uRj0lk3khsBB7IXGfaWCGtFc6RLEGLqpX+ltJWZAxrM1GjvAd3g==","signatures":[{"sig":"MEYCIQC39axOrevdI+s9pRLeCYyTlKJvp2pUSa8lwCFV4XspwQIhAM0tv6exdzqRJDD+3RguRS2B1UxkmaN5C6JCKaBpKX53","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21039},"main":"index.js","engine":{"node":">=16.15"},"gitHead":"c0bfe375fdb5c07b30a0670adffca13faabef132","private":false,"scripts":{"ci:unit":"echo 'No test step'","ci:build":"echo 'No build step'","ci:package":"echo 'No package step'"},"_npmUser":{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"_npmVersion":"10.2.3","description":"Open Telemetry Utilities for usage with Bullhorn applications.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"xtend":"^4.0.2","ansicolors":"^0.3.2","ansistyles":"^0.1.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bh-observability_0.1.1_1746467369543_0.5272824992191805","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bullhorn/bh-observability","version":"0.1.2","keywords":["bullhorn","opentelemetry","log","stream","noop"],"author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"license":"MIT","_id":"@bullhorn/bh-observability@0.1.2","maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"akurtovic","email":"akurtovic@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"homepage":"https://bullhorn.com","dist":{"shasum":"2db5bb13710b1180740c1ce3f17f4fec8828a86d","tarball":"https://registry.npmjs.org/@bullhorn/bh-observability/-/bh-observability-0.1.2.tgz","fileCount":7,"integrity":"sha512-3Xs0M7ew6vZOZRqvSBD8P7L+yP/7E8KNRQR3Q3M4P+q8SxdccDeWNWQROTJ7pxEmBNlqg9iIOd4/cqLv5/eSBQ==","signatures":[{"sig":"MEUCIQCXis31br8GbuD5ML2UgO/5tVFiGx1X9sD31DnPFF+u5QIgN3E4dOqFrhPGsZtulNaEdJ4ID1gsljVTj2QNkqsyrBQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22477},"main":"index.js","engine":{"node":">=16.15"},"gitHead":"e5e87015cd8c836d5a55bc842c21e0f644d0d825","private":false,"scripts":{"ci:unit":"echo 'No test step'","ci:build":"echo 'No build step'","ci:package":"echo 'No package step'"},"_npmUser":{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"_npmVersion":"10.2.3","description":"Open Telemetry Utilities for usage with Bullhorn applications.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"xtend":"^4.0.2","ansicolors":"^0.3.2","ansistyles":"^0.1.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bh-observability_0.1.2_1746556500955_0.3426905012799941","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bullhorn/bh-observability","version":"0.2.0","keywords":["bullhorn","opentelemetry","log","stream","noop"],"author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"license":"MIT","_id":"@bullhorn/bh-observability@0.2.0","maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"akurtovic","email":"akurtovic@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"homepage":"https://bullhorn.com","dist":{"shasum":"367f2e109d57ed6c4ebd0ce7e79b8a453247ea18","tarball":"https://registry.npmjs.org/@bullhorn/bh-observability/-/bh-observability-0.2.0.tgz","fileCount":7,"integrity":"sha512-wL7Dbr4y7mZ7ai6/uegaBmvssvo+xAH4IUZF1mJVFJlXwHCwiZNwKTQb2S/SuL9nW8kG5kcg2+s8rIjDco9U4g==","signatures":[{"sig":"MEYCIQDA8AJ2O2e+Ip+xu6LwX940qviUTqhPZLzZFS6dbxjY6AIhAN+VK7tu48msj0b64ZrLiTt+Hi78Lvr2pe0W9aWN046h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24340},"main":"index.js","engine":{"node":">=16.15"},"gitHead":"f54aea85a966bd24ce461ba3318ad14f0ae4ff97","private":false,"scripts":{"ci:unit":"echo 'No test step'","ci:build":"echo 'No build step'","ci:package":"echo 'No package step'"},"_npmUser":{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"_npmVersion":"10.2.3","description":"Open Telemetry Utilities for usage with Bullhorn applications.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"xtend":"^4.0.2","ansicolors":"^0.3.2","ansistyles":"^0.1.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bh-observability_0.2.0_1767899254100_0.7255750030658386","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"_id":"@bullhorn/bh-observability@0.2.1","dist":{"shasum":"4546dad160e0b8813419fde8d07dda08a592f82e","tarball":"https://registry.npmjs.org/@bullhorn/bh-observability/-/bh-observability-0.2.1.tgz","fileCount":291,"integrity":"sha512-xfjFyH3KgFgVq7tIttL5fd0c4c3fMJShxfMbbByvS2LSmSs5hcetWJ7Dt0xoOdr2Lz7slSuaFEWdetMRkJRUGQ==","signatures":[{"sig":"MEUCIQD0a7gD6b8dWdGXrYdaBy8uO6AUedXOla76azX9uW1IlgIgOSmD+CvBHSh1fB0NeBuvAIQCO/eG+blV+UWZ/K/Co4A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHbYkuv1clyQg8E8hE5csNqQ9Njt+MoAOlnFh2P8cA3BAiEAh8zcaHRcLWMJb1YKT3p+68fzIv63YnQ81kwJMgWlkCg="}],"unpackedSize":6897759},"main":"index.js","name":"@bullhorn/bh-observability","author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"engine":{"node":">=16.15"},"gitHead":"b5aab197acd47ebd4e4608ff0d464b2c4fc2d1ff","license":"MIT","private":false,"scripts":{"ci:unit":"echo 'No test step'","ci:build":"echo 'No build step'","ci:package":"echo 'No package step'"},"version":"0.2.1","_npmUser":{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},"homepage":"https://bullhorn.com","keywords":["bullhorn","opentelemetry","log","stream","noop"],"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"_npmVersion":"10.2.3","description":"Open Telemetry Utilities for usage with Bullhorn applications.","directories":{},"maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"bhav15h-bh","email":"bhavish.pulnah@bullhorn.com"},{"name":"ndickerson","email":"ndickerson@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"_nodeVersion":"20.10.0","dependencies":{"xtend":"^4.0.2","ansicolors":"^0.3.2","ansistyles":"^0.1.3","@opentelemetry/instrumentation-bunyan":"^0.66.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bh-observability_0.2.1_1789419277864_0.1584406339412241"}}},"time":{"created":"2025-05-05T17:49:29.127Z","modified":"2026-09-14T20:54:38.267Z","0.0.1":"2025-04-30T17:30:03.252Z","0.1.0":"2025-05-05T16:36:31.940Z","0.1.1":"2025-05-05T17:49:29.749Z","0.1.2":"2025-05-06T18:35:01.127Z","0.2.0":"2026-01-08T19:07:34.298Z","0.2.1":"2026-09-14T20:54:38.084Z"},"author":{"name":"Jeremy Dobler","email":"jeremy.dobler@bullhorn.com"},"license":"MIT","homepage":"https://bullhorn.com","keywords":["bullhorn","opentelemetry","log","stream","noop"],"repository":{"url":"git@bhsource.bullhorn.com:platform/nodejs/bh-observability.git","type":"git"},"description":"Open Telemetry Utilities for usage with Bullhorn applications.","maintainers":[{"name":"arajiv","email":"arajiv@bullhorn.com"},{"name":"bullhorn-dev","email":"devnpm@bullhorn.com"},{"name":"tgadre","email":"tgadre@bullhorn.com"},{"name":"hiqbal01","email":"haris.iqbal91@gmail.com"},{"name":"robslabarbera","email":"robslabarbera@gmail.com"},{"name":"trent-storch-bullhorn","email":"tstorch@bullhorn.com"},{"name":"adrian.ossi","email":"aossi@bullhorn.com"},{"name":"dvoegelin","email":"dvoegelin@bullhorn.com"},{"name":"bhav15h-bh","email":"bhavish.pulnah@bullhorn.com"},{"name":"ndickerson","email":"ndickerson@bullhorn.com"},{"name":"jdobler","email":"jeremy.dobler@bullhorn.com"}],"readme":"# BH Observability\n\n> Configurable writable stream that formats bunyan records that are piped into it.\n>\n> Includes formats optimized for Papertrail's JSON log support. Console logs can also be conditionally turned off for otel integrations.\n\n## Prerequisites\n\nThis project requires NodeJS (version 16 or later) and NPM.\n[Node](http://nodejs.org/) and [NPM](https://npmjs.org/) are really easy to install.\nTo make sure you have them available on your machine,\ntry running the following command.\n\n```sh\n$ npm -v && node -v\n8.5.5\nv16.15.0\n```\n\n## Installation\n\nTo install and set up the library, run:\n\n```sh\n$ npm install @bullhorn/bh-observability\n```\n\nOr if you prefer using Yarn:\n\n```sh\n$ yarn add @bullhorn/bh-observability\n```\n\n## Usage\n\n```js\nconst bunyan = require('bunyan');\nconst { configurableStream } = require('@bullhorn/bh-observability');\n\nconst configStream = configurableStream({outputMode: loggerMode || 'short'});\nconst log = bunyan.createLogger({ name: 'app', stream: configStream, level: 'debug' } );\n\nlog.info('starting up');\nlog.debug({ temperature: 80, status: { started: 'yes', overheated: 'no' } }, 'things are heating up');\nlog.warn({ temperature: 120 }, 'getting a bit hot');\nlog.error(new Error('temperature: 200'), 'OOOOHHH it burns!');\nlog.fatal('I died! Do you know what that means???');\n```\n\n## Configuration Options\n| Environment Variable        | Description                                                               | Example                                          |\n|-----------------------------|---------------------------------------------------------------------------|--------------------------------------------------|\n| DISABLE_CONSOLE_LOGS        | Disable console output. <br/>Otel integrations will still capture logs    | false                                            |\n| OTEL_SIMPLE_PROCESSOR       | Use simple processor for immediate export instead of delayed batch export | true                                             |                                                                   \n| OTEL_EXPORTER_OTLP_ENDPOINT | OTLP endpoint                                                             | http://localhost:4317                            |\n| OTEL_LOGS_EXPORTER          | Log Exporter Type                                                         | otlp                                             |\n| OTEL_METRICS_EXPORTER       | Metrics Exporter Type                                                     | otlp                                             |\n| OTEL_TRACES_EXPORTER        | Traces exporter Type                                                      | otlp                                             |\n| OTEL_RESOURCE_ATTRIBUTES    | System wide attributes to apply                                           | service.group=some_group,service.environment=las |\n| OTEL_SERVICE_NAME           | Application/Chart name                                                    | my-application                                   |\n\n## Contributing\n\nAll commits are published to the [private bullhorn artifactory registry](https://bosnexus.bullhorn.com/ui/repos/tree/General/npm-dev/@bullhorn/bh-observability). One can test these package versions by installing with:\n\n```shell\nnpm install --registry https://bosnexus.bullhorn.com/repository/bh-npm\n```\n\nSee gitlab build pipeline for more information about builds.\n\n## Versioning\n\nAny release tags that match [SemVer](http://semver.org/) versioning should be automatically published to the public npm registry.\n\n## License\n\n[MIT License](https://andreasonny.mit-license.org/2019) © Andrea SonnY\n","readmeFilename":"README.md"}