{"_id":"@calebmer-airtable/lightstep-tracer","_rev":"2-92321d69c8ac082e57f6862aef0b53f2","name":"@calebmer-airtable/lightstep-tracer","dist-tags":{"latest":"0.24.0-no-protobuf-patch.1"},"versions":{"0.24.0-patch.1":{"name":"@calebmer-airtable/lightstep-tracer","version":"0.24.0-patch.1","main":"index.js","types":"index.d.ts","browser":"browser.js","engines":{"node":">=0.12.0"},"scripts":{"test":"rm -f test/results/*.json && node node_modules/mocha/bin/mocha -c test/unittest_node.js"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/lightstep/lightstep-tracer-javascript.git"},"dependencies":{"async":"1.5.0","eventemitter3":"1.1.1","google-protobuf":"3.6.1","hex2dec":"1.0.1","source-map-support":"0.3.3","thrift":"0.12.0"},"devDependencies":{"babel-cli":"6.14.0","babel-core":"^6.26.3","babel-loader":"7","babel-plugin-add-module-exports":"^1.0.0","babel-plugin-check-es2015-constants":"6.7.2","babel-plugin-transform-es2015-arrow-functions":"6.5.2","babel-plugin-transform-es2015-block-scoped-functions":"6.6.5","babel-plugin-transform-es2015-block-scoping":"^6.26.0","babel-plugin-transform-es2015-classes":"6.6.5","babel-plugin-transform-es2015-computed-properties":"6.6.5","babel-plugin-transform-es2015-destructuring":"6.6.5","babel-plugin-transform-es2015-duplicate-keys":"6.6.4","babel-plugin-transform-es2015-literals":"6.5.0","babel-plugin-transform-es2015-modules-commonjs":"6.7.4","babel-plugin-transform-es2015-object-super":"6.6.5","babel-plugin-transform-es2015-parameters":"6.7.0","babel-plugin-transform-es2015-spread":"6.6.5","babel-plugin-transform-es2015-sticky-regex":"6.5.0","babel-plugin-transform-es2015-template-literals":"6.6.5","babel-plugin-transform-es2015-unicode-regex":"6.5.0","babel-polyfill":"6.3.14","babel-preset-es2015":"6.3.13","chai":"3.4.1","clone":"1.0.2","colors":"1.1.2","eslint":"2.4.0","eslint-config-airbnb":"6.2.0","eslint-plugin-react":"4.2.3","express":"^4.16.3","istanbul":"^0.4.5","mocha":"^5.2.0","opentracing":"^0.14.4","protobufjs":"6.8.8","shelljs":"0.5.3","sprintf-js":"1.0.3","underscore":"1.8.3","watch-trigger":"0.0.5","webpack":"^4.25.1","webpack-cli":"^3.1.2"},"gitHead":"cbbb3b1da139b43b2f80d4eb80c839ce1d5d50a8","description":"[![npm version](https://badge.fury.io/js/lightstep-tracer.svg)](https://badge.fury.io/js/lightstep-tracer) [![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-javascript.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-ja","bugs":{"url":"https://github.com/lightstep/lightstep-tracer-javascript/issues"},"homepage":"https://github.com/lightstep/lightstep-tracer-javascript#readme","_id":"@calebmer-airtable/lightstep-tracer@0.24.0-patch.1","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"calebmer-airtable","email":"caleb.meredith@airtable.com"},"dist":{"integrity":"sha512-SSomdFsHQrQUVNpgE0EbeSNQXLnsWYRF7LRlRwPnfuP2dG4xnojIsjVS/vhMhn3U0/cAj8dpTDKmahE/M9UNYg==","shasum":"4dcc1cfa7215aeeb3aef189a3579a3658aa403c0","tarball":"https://registry.npmjs.org/@calebmer-airtable/lightstep-tracer/-/lightstep-tracer-0.24.0-patch.1.tgz","fileCount":198,"unpackedSize":5089507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1bsTCRA9TVsSAnZWagAA4TUP/irUn2V06ihBB29evACi\n0SVlTZZ5/6ODA0yskztoPFz5CI/9lvj2JL9/2O6RUzZzxBCSFTLCEK9mEoAN\nWPwXvtn02aGqRX9eKj1NMRVxsi7jDI35AfFRGn8YCDWaHo+1kRKp4uSxMPIy\n45DEFmOLnxNnNSuu1ALpWe/nxbi2QzmRA9lEjKd8sm6EYWFu2fFvwtLhjtRM\nnnvfuS6EhWgDhbaayv8km6ZjYqLGHX9Sj63MnMvXddIkEWBWBO/YVLUVLH8t\n99nrTxO1eQ1HsyQWNYqg91t8gqyXTloCEDyIkWSIAUkshM1DL4nMKBkcDsKQ\ng1QomqySCFosFpm3B3qLnXkHNNc9njbqxvArhwS7zck/ufkMV/YJB2qnnOA2\n/XqLptitY+FL+QkLmd+CsKNIQlAwcBxpVRzmF2Vcy1RtXkBS02koFxxtRekC\nP93A7PAgVTXDNb5FDeXCPNjEuGubptFjrkFUAP6fs5wAgm1fkH55HlbtJV0N\nS/ZphqmsDKOj9b3CpMUGjQN9L1YXBQxr0gvQ5prImwL/N3kM+/RLAM4NLMGy\nLTxJwuMbA7hqay4aTPgDmVj/61og2RejQjec9T7SE7tctuffLgsa5MOK2p5l\n/LnJWFeivyFBAj6CH3jSoy1qcDXvxX/Wvvyy0ar1GKr9bxlvhMPhJrbBpGKI\ngOKi\r\n=HaBQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLnsrzNVHmL89iW3xN4X/ps/vVPsUtgYaQSebq9Hq8uAIgZGl8rX3RIu8AKPBN41rhSx2Lnyz8ZANO6Q2aPy0lm6M="}]},"maintainers":[{"name":"calebmer-airtable","email":"caleb.meredith@airtable.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightstep-tracer_0.24.0-patch.1_1574288146952_0.9643653842742985"},"_hasShrinkwrap":false},"0.24.0-no-protobuf-patch.1":{"name":"@calebmer-airtable/lightstep-tracer","version":"0.24.0-no-protobuf-patch.1","main":"index.js","types":"index.d.ts","browser":"browser.js","engines":{"node":">=0.12.0"},"scripts":{"test":"rm -f test/results/*.json && node node_modules/mocha/bin/mocha -c test/unittest_node.js"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/lightstep/lightstep-tracer-javascript.git"},"dependencies":{"async":"1.5.0","eventemitter3":"1.1.1","hex2dec":"1.0.1","source-map-support":"0.3.3","thrift":"0.12.0"},"devDependencies":{"babel-cli":"6.14.0","babel-core":"^6.26.3","babel-loader":"7","babel-plugin-add-module-exports":"^1.0.0","babel-plugin-check-es2015-constants":"6.7.2","babel-plugin-transform-es2015-arrow-functions":"6.5.2","babel-plugin-transform-es2015-block-scoped-functions":"6.6.5","babel-plugin-transform-es2015-block-scoping":"^6.26.0","babel-plugin-transform-es2015-classes":"6.6.5","babel-plugin-transform-es2015-computed-properties":"6.6.5","babel-plugin-transform-es2015-destructuring":"6.6.5","babel-plugin-transform-es2015-duplicate-keys":"6.6.4","babel-plugin-transform-es2015-literals":"6.5.0","babel-plugin-transform-es2015-modules-commonjs":"6.7.4","babel-plugin-transform-es2015-object-super":"6.6.5","babel-plugin-transform-es2015-parameters":"6.7.0","babel-plugin-transform-es2015-spread":"6.6.5","babel-plugin-transform-es2015-sticky-regex":"6.5.0","babel-plugin-transform-es2015-template-literals":"6.6.5","babel-plugin-transform-es2015-unicode-regex":"6.5.0","babel-polyfill":"6.3.14","babel-preset-es2015":"6.3.13","chai":"3.4.1","clone":"1.0.2","colors":"1.1.2","eslint":"2.4.0","eslint-config-airbnb":"6.2.0","eslint-plugin-react":"4.2.3","express":"^4.16.3","istanbul":"^0.4.5","mocha":"^5.2.0","opentracing":"^0.14.4","shelljs":"0.5.3","sprintf-js":"1.0.3","underscore":"1.8.3","watch-trigger":"0.0.5","webpack":"^4.25.1","webpack-cli":"^3.1.2"},"gitHead":"15c4ec7915b1acfc0dbc21ef74998133f7f93c51","description":"[![npm version](https://badge.fury.io/js/lightstep-tracer.svg)](https://badge.fury.io/js/lightstep-tracer) [![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-javascript.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-ja","bugs":{"url":"https://github.com/lightstep/lightstep-tracer-javascript/issues"},"homepage":"https://github.com/lightstep/lightstep-tracer-javascript#readme","_id":"@calebmer-airtable/lightstep-tracer@0.24.0-no-protobuf-patch.1","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"calebmer-airtable","email":"caleb.meredith@airtable.com"},"dist":{"integrity":"sha512-pRhRtXVb8qvKCMeWQEcmLjE9NKgNBtWs5waC8p7LimjpDhnswAltYzZUzoBOqCtZCovodKmNL0IjaCyTC//SxQ==","shasum":"ce6bffff31451dd6caace47a58db060e83cc7d2f","tarball":"https://registry.npmjs.org/@calebmer-airtable/lightstep-tracer/-/lightstep-tracer-0.24.0-no-protobuf-patch.1.tgz","fileCount":194,"unpackedSize":3263918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1b+0CRA9TVsSAnZWagAA8c4QAJCQPm7mNt11+e/SaKKn\nLWeTv981ICOBKc/ati+5rcLVIXSNqiDfF3Oim4NRSyCxq2fLlkpOk2DxMMBj\nkoMi1e6+SH3CsRXcsZi5dSDLxKrHC3c+62vVozZ7k7HOqO0+Ru52EB2/R6mo\npeRqlh1Z9/IP5sz/N+vqR/a4mMNb1q2WGLrnXfL1WoJFDoFcj+b9AxT4yNWz\ncZFOPk8g4KDzrsq8h/3dxDIxNUVxV5JRfpmn7jpIPdhEk74tH1v2of+Ca8uT\nAdqpyAZhFxzBINtq09zFh1KvGOBX/vcrceqS5wRi8PJwwvlfwgEXuehln/hd\nJDUmquo5hc9O/gCtGscrFataq35RGRMfBd13N/PEXGSxYkpuRnixd3FaaA2N\nlCRv37haStTfxrvEdSrhQDEest1JhnwYrUc6oImQRImLBH60sR19gpClPbvC\n58hB+zaROpL7nufknlInlFqKjHtUQqHA9v3LqdZ5zc38vhfVPljtDA3u1Tll\nfTxS2ESCysA/rS/+BvT5ZHmtPK73x2v+pxn40py/+qCvud6YeJzT7fJm56Sd\ngGcrm2NqCQLWEypX1nFvFD7QGTBUPMIK0QvEVyq/nWg3vQ2MiF5Kn9SlDrM2\npMMKuUJBxu8ROSPfFO95Jfaumzjhp+Fy6PCilvjXhY405r+Z3wMiXv6yXpvl\noDAN\r\n=RlAg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEPUjyyrEZknIdCTI0bm6PZhiTEiY1U4wOuLudiUxwHAiAtjaymYRTiETTsZPxboKcyqyNufYeuSapTOqx9JFeeIg=="}]},"maintainers":[{"name":"calebmer-airtable","email":"caleb.meredith@airtable.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightstep-tracer_0.24.0-no-protobuf-patch.1_1574289331700_0.21557636816498582"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-20T22:15:46.724Z","0.24.0-patch.1":"2019-11-20T22:15:47.125Z","modified":"2022-04-04T21:31:55.439Z","0.24.0-no-protobuf-patch.1":"2019-11-20T22:35:31.840Z"},"maintainers":[{"name":"calebmer-airtable","email":"caleb.meredith@airtable.com"}],"description":"[![npm version](https://badge.fury.io/js/lightstep-tracer.svg)](https://badge.fury.io/js/lightstep-tracer) [![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-javascript.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-ja","homepage":"https://github.com/lightstep/lightstep-tracer-javascript#readme","repository":{"type":"git","url":"git+ssh://git@github.com/lightstep/lightstep-tracer-javascript.git"},"bugs":{"url":"https://github.com/lightstep/lightstep-tracer-javascript/issues"},"license":"MIT","readme":"# lightstep-tracer\n\n[![npm version](https://badge.fury.io/js/lightstep-tracer.svg)](https://badge.fury.io/js/lightstep-tracer)\n[![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-javascript.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-javascript)\n[![MIT license](http://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\nLightStep distributed tracing library for Node.js and the browser.\n\n## Installation\n\n```\nnpm install --save lightstep-tracer opentracing\n```\n\nAll modern browsers and Node versions >= 0.12 are supported.\n\n## Getting started\n\nTo use LightStep as the OpenTracing binding, initialize the global `Tracer` with the LightStep implementation:\n\n```javascript\nvar opentracing = require('opentracing');\nvar lightstep   = require('lightstep-tracer');\n\nopentracing.initGlobalTracer(new lightstep.Tracer({\n    access_token   : '{your_access_token}',\n    component_name : '{your_service_or_app_name}',\n}));\n```\n\nThe **[LightStep JavaScript Tracing Cookbook](doc/cookbook.md)** is a good next stop for information on how to quickly instrument your system.  If you want to try something out quickly in your browser code, see the **[browser quick start example](doc/cookbook.md#browser-quick-start)**.\n\n* For more information about using the OpenTracing API, see http://opentracing.io/\n* See [examples/browser](https://github.com/lightstep/lightstep-tracer-javascript/tree/master/examples/browser) for a complete JavaScript browser example\n* See [examples/node](https://github.com/lightstep/lightstep-tracer-javascript/tree/master/examples/node) for a complete Node.js server-side example\n\nThe browser version of the code can be explicitly included using the following, which can be helpful in some [`browserify`](https://github.com/substack/node-browserify) (or similar) setups:\n\n```javascript\nvar lightstep = require('lightstep-tracer/browser');\n```\n\n\n## LightStep-specific API\n\nThe OpenTracing standard JavaScript API is [documented here](https://doc.esdoc.org/github.com/opentracing/opentracing-javascript/). The following describes LightStep-specific options and methods.\n\n### LightStep\n\n---\n\n#### new Tracer(options)\n\n**Required options**\n\n* `access_token` `string` *required* - the project access token\n* `component_name` `string` *required* - the string identifier for the application, service, or process\n\n**Standard options**\n\n* `verbosity` `number` *optional, default=1* - controls the level of logging to the console\n    - `0` - the client library will *never* log to the console\n    - `1` - error reporting will be throttled to the first error per minute\n    - `2` - all errors are logged to the console\n    - `3` - all errors, warnings, and info statements are logged to the console\n    - `4` - all log statements, including debugging details\n* `collector_host` `string` *optional* - custom collector hostname\n* `collector_port` `number` *optional* - custom collector port\n* `collector_path` `string` *optional* - custom collector base path (if served behind a reverse proxy)\n* `collector_encryption` `string` *optional, default='tls'*\n    - `tls` - use HTTPS encrypted connections\n    - `none` - use HTTP plain-text connections\n\n**Browser-specific initialization options**\n\n* `instrument_page_load` `bool` - creates a long-lived single span for the entire page view and is recommended for short-page visits in a multi-page website. For a single-page web app, this behavior may be undesirable. Defaults to false. This must be set at initialization, changes after initialization will have no effect.\n\n* `xhr_instrumentation` `bool` - if false, disables automatic instrumentation of XMLHttpRequests (XHRs). This must be set at initialization; changes after initialization will have no effect. Defaults to false.\n\n* `xhr_url_inclusion_patterns` `RegExp[]` - an array of regular expressions used to whitelist URLs for `XMLHttpRequest` auto-instrumentation. The default value is wildcard matching all strings. For a given URL to be instrumented, it must match at least one regular expression in `xhr_url_inclusion_patterns` and not match any regular expressions in `xhr_url_exclusion_patterns`.\n\n* `xhr_url_exclusion_patterns` `RegExp[]` - an array of regular expressions used to exclude URLs from `XMLHttpRequest` auto-instrumentation. The default value is an empty array. For a given URL to be instrumented, it must match at least one regular expression in `xhr_url_inclusion_patterns` and not match any regular expressions in `xhr_url_exclusion_patterns`.\n\n* `fetch_instrumentation` `bool` - if false, disables automatic instrumentation of `window.fetch`. This must be set at initialization; changes after initialization will have no effect. Defaults to false.\n\n* `fetch_url_inclusion_patterns` `RegExp[]` - an array of regular expressions used to whitelist URLs for `window.fetch` auto-instrumentation. The default value is wildcard matching all strings. For a given URL to be instrumented, it must match at least one regular expression in `fetch_url_inclusion_patterns` and not match any regular expressions in `fetch_url_exclusion_patterns`.\n\n* `fetch_url_exclusion_patterns` `RegExp[]` - an array of regular expressions used to exclude URLs from `window.fetch` auto-instrumentation. The default value is an empty array. For a given URL to be instrumented, it must match at least one regular expression in `fetch_url_inclusion_patterns` and not match any regular expressions in `fetch_url_exclusion_patterns`.\n\n* `include_cookies` `bool` - if true, includes cookies in the span logs for both `window.fetch` and `XMLHttpRequest`. Defaults to true.\n\n**node-specific initialization options**\n\n* `nodejs_instrumentation` `bool` - if false, disables automatic instrumentation of node requests.\nThis must be set at initialization; changes after initialization will have no effect. Defaults to false.\n\n* `nodejs_url_inclusion_patterns` `RegExp[]` - an array of regular expressions used to whitelist\nURLs\nfor `XMLHttpRequest` auto-instrumentation. The default value is wildcard matching all strings.\nFor a given URL to be instrumented, it must match at least one regular expression in\n`nodejs_url_inclusion_patterns` and not match any regular expressions in\n`nodejs_url_exclusion_patterns`.\n\n* `nodejs_url_exclusion_patterns` `RegExp[]` - an array of regular expressions used to exclude URLs\nfrom `XMLHttpRequest` auto-instrumentation. The default value is an empty array. For a given URL\nto be instrumented, it must match at least one regular expression in\n`nodejs_url_inclusion_patterns`\nand not match any regular expressions in `nodejs_url_exclusion_patterns`.\n\n**Non-standard options**\n\n*NOTE: Future API compatibility on non-standard options is not guaranteed.*\n\n* `disable_reporting_loop` `bool` *optional*, *default=false* - if true, the timer that automatically sends reports to the collector will be disabled. This option is independent of `disable_report_on_exit`.\n* `disable_report_on_exit` `bool` *optional*, *default=false* - if true, the final report that is automatically sent at process exit in Node or page unload in the browser will not be sent.\n* `report_timeout_millis` `number` *optional*, *default=30000* - the default timeout value, in milliseconds, for reports to the LightStep collector\n* `gzip_json_requests` `bool` *optional*, *default=true* - if true, the reports will be gzipped before sent to the collector.\n* `default_span_tags` `string` *optional* - an associative array of tags to add to every span started by the tracer (e.g., the active user id in a browser client)\n* `delay_initial_report_millis` `int` *optional*, *default=1000* - maximum additional delay of the initial report in addition to the normal reporting interval. A value between zero and this maximum will be selected as the actual delay. This can be useful when concurrently launching a large number of new processes and there is a desire to distribute the initial reports over a window of time.\n* `error_throttle_millis` `int` *optional*, *default=60000* - when `verbosity` is set to `1`, this the minimum time between logged errors.\n* `transport` `string` *optional*, *default=proto* - when `transport` is set to `thrift`, the Tracer will use Thrift as its transport instead of Proto over HTTP.\n* `logger` `function(level: string, message: string, payload: any): void` *optional* - specify a custom logger function. Possible `level` values are `debug`, `info`, `warn` and `error`. By default messages will be logged to the console.\n* `disable_meta_event_reporting` `bool` *optional*, *default=false* - when `disable_meta_event_reporting` is set to `true`, the tracer will disable meta event reporting even if requested by the Satellite.\n* `propagator` `dictionary` *optional*, *defaults=*`{opentracing.FORMAT_HTTP: LightStepPropagator, opentracing.FORMAT_TEXT_MAP: LightStepPropagator, opentracing.FORMAT_BINARY: UnsupportedPropagator}`: Allows inject/extract to use custom propagators for different formats. This package includes a `B3Propagator` that supports B3 headers on text maps and http headers. `DDPropagator` supports DataDog trace headers.\n\n### SpanImp\n\n---\n\n#### generateTraceURL()\n\nReturns an absolute URL to the LightStep application for the trace containing this span. It is safe to call this method after `finish()`.\n\n```js\n...\nspan.finish();\n\nvar url = span.generateTraceURL())\nconsole.log('View the trace for this span at:', url);\n```\n\n## License\n\n[The MIT License](LICENSE).\n\nCopyright (c) 2016, LightStep\n","readmeFilename":"README.md"}