{"name":"@opentelemetry/context-base","version":"0.12.1-alpha.54","description":"OpenTelemetry Base Context Manager","main":"build/src/index.js","types":"build/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/open-telemetry/opentelemetry-js.git"},"scripts":{"test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","tdd":"npm run test -- --watch-extensions ts --watch","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","clean":"rimraf build/*","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix","precompile":"tsc --version","version:update":"node ../../scripts/version-update.js","compile":"npm run version:update && tsc -p .","prepare":"npm run compile","watch":"tsc -w"},"keywords":["opentelemetry","nodejs","browser","tracing","profiling","metrics","stats"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","engines":{"node":">=8.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@types/mocha":"8.0.2","@types/node":"14.0.27","codecov":"3.7.2","gts":"2.0.2","mocha":"7.2.0","nyc":"15.1.0","rimraf":"3.0.2","ts-mocha":"7.0.0","ts-node":"9.0.0","typescript":"3.9.7"},"gitHead":"3f72613a36b6f97555a0fa7481755cf8b6cce1a7","readme":"# OpenTelemetry Base Context Manager\n\n[![Gitter chat][gitter-image]][gitter-url]\n[![NPM Published Version][npm-img]][npm-url]\n[![dependencies][dependencies-image]][dependencies-url]\n[![devDependencies][devDependencies-image]][devDependencies-url]\n[![Apache License][license-image]][license-image]\n\nThis package provides the ContextManager interface (which is used by concrete implementations) and a no-op implementation (which is used internally when no context propagation is defined). It's intended for use both on the server and in the browser.\n\n## What is a Context Manager\n\nTo understand why they exists, we'll need to understand how Javascript works: when you make native function call (networks, setInterval etc) you generally call C++ code that will later callback your own code.\n\nA common issue when tracing a request in javascript is to link the function that have made the native call to the callback that the native code called when the response is there. Imagine you want to track for which user you made the request, you need some sort of \"context/context aware storage\".\n\nContextManager's aim to offer exactly that, it's API offer to store an object in the current context (`with()`) and if needed, `bind()` to a specific function call to find it back when the callback fire, which can later get retrieved using `active()`.\n\nThis package only include the interface and a Noop implementation, for more information please see the [async-hooks based ContextManager][ah-context-manager] for NodeJS.\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us on [gitter][gitter-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[gitter-image]: https://badges.gitter.im/open-telemetry/opentelemetry-js.svg\n[gitter-url]: https://gitter.im/open-telemetry/opentelemetry-node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/master/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/status.svg?path=packages/opentelemetry-context-base\n[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-context-base\n[devDependencies-image]: https://david-dm.org/open-telemetry/opentelemetry-js/dev-status.svg?path=packages/opentelemetry-context-base\n[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-context-base&type=dev\n[ah-context-manager]: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-context-async-hooks\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/context-base\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fcontext-base.svg\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","_id":"@opentelemetry/context-base@0.12.1-alpha.54","_nodeVersion":"14.13.1","_npmVersion":"lerna/3.22.1/node@v14.13.1+x64 (linux)","dist":{"integrity":"sha512-f+mzbaaFtFeaUvQaZ90rn+oeXCTGbpK8B3e4eY5Wakqs6OHFM0Ln5GmtrXoUN3Icn6ukvKPLjieL12/MaFUllg==","shasum":"ddbb29bcf2eae333927a89af41455e1f99ed64e6","tarball":"http://registry-npm.ywwl.com/@opentelemetry/context-base/download/@opentelemetry/context-base-0.12.1-alpha.54.tgz","fileCount":18,"unpackedSize":28748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjYtmCRA9TVsSAnZWagAAqwAQAIuvYoMkncW48UNWoJip\n0+cu8MhBPzRJRJtgZRXJhS/gaHBpJfYJZsKWn1TGoQSKg6WBvvY+VDdb+KjR\nwJOpaSqwFhrF0iGdZ7OHciExR6w/TWXlm5AjT7g4kfWvyG379BByQXMjjeM+\nVIcnCE9Z7h4aly3RwwYKt8pRSeTOoGddmxdk+PPhyeesIsYBm3pZWBOmcbAy\nnacMoi3IBMijf106/J10E9xl/yTLBHjB2oVrPtzW3ZcJ4GLqbEj07VJu+VvQ\nz2DzO6EgKq2uXT52JurIys6KeW84twH+FiXoHbi96XsYvE1RXPSHXQ6YDwUe\nfKdl48lmPOSGeH462SHnRKNg1YMDtq2tjUtw6eDez+/58ZUlaqRkUu13rGZ0\npiOs1AUtvMSfk0wdDwMdQu1MnxJnKc50eEfKdKHi1cNEa4ZqxmUuzapdUN40\nHIccbmw95VJMNqaZIPhXnH42nAOvEL0t1orteiMad3vbXZpSSRelvKuVW9KP\nWB7mxbTFnnzq+m/Iz76QTO7uAFtYZKv8nOJ4cp0D2QnfLHwNSwNHYSmEfqjy\nHZ4XIKw8pJ8QANnrpsNhSWedgc0dx8GW7M0bFmPApFZXJgLhA0OOHjr85GYw\n4PtH+rm1DOrt9g9+8xfiq3NmtjiLPYqT40tADAA2XPpFyGFnX/zvnzpJkm40\nvy3N\r\n=F2O7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLMTdiVGHeyTSGbUTJxlvX7RLh/r/TPuAIR0S2EtB+8AiEAuyw+0TEFc8bsUOOctV5RgR1iylBrovv8SkRQocDtEDI="}],"size":8504,"noattachment":false,"key":"/@opentelemetry/context-base/-/@opentelemetry/context-base-0.12.1-alpha.54.tgz"},"maintainers":[{"name":"obecny","email":"bobecny@gmail.com"},{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"mayurkale22","email":"mayurkale22@gmail.com"}],"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/context-base_0.12.1-alpha.54_1603111781684_0.22340519020978866"},"_hasShrinkwrap":false,"publish_time":1603111782004,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1603111782004,"dist-tags":{"canary":"0.17.1-alpha.21","latest":"0.17.0"}}