{"_id":"@aspecto/opentelemetry","_rev":"227-13161a737bdc4e350f7c5b27c33f4b11","name":"@aspecto/opentelemetry","dist-tags":{"latest":"0.2.0","alpha":"0.0.0-2024-05-21--09-06","dev":"0.0.115-dev.0","canary":"0.0.114-alpha.4"},"versions":{"0.0.38":{"name":"@aspecto/opentelemetry","version":"0.0.38","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.38","@aspecto/opentelemetry-exporter-live":"^0.0.38","@aspecto/opentelemetry-plugin-express":"^0.0.38","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.38","@aspecto/opentelemetry-plugin-mongoose":"^0.0.38","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"^0.0.28","opentelemetry-plugin-aws-sdk":"^0.0.5","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/jest":"^25.2.1","@types/node":"^13.9.3","@types/socket.io-client":"^1.4.32","husky":"^4.2.3","jest":"^25.3.0","ts-node-dev":"^1.0.0-pre.44","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"dbb68593b9ccb525eca15b4b3fd158acaadc1717","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.38","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.0/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-UoTKNGdxWQNR+C+7C4ozFVJhAR0BOes7bGWF7w8HPp03DvArOAo7oLDt3mSrexg26GWt6A9Q17joEweuH5hi8w==","shasum":"75c2d29199c5fce0b237c2bb35fd51187ce94947","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.38.tgz","fileCount":51,"unpackedSize":67702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8ghyCRA9TVsSAnZWagAASM4P/RWBs7W2SsTSeYOoUvf7\nYxvOkWVIX5kqeFFpNuFVvmmRb8t/kuT6x7AIi304FQonIoV5HW7plC6hid6i\ngrmneRTzu0of5bKhPWDwhosZSbkExvIDFS7AahhMa2R9BapSVGOf+c0zmZG1\nVWT4pSbDmZI88ygLgdLn2sML/+bhZdfgbXAYEtJOspUdSLCF87iyJlyC6zLx\nrR9pwX0Yu6tYgrboiFEtTfb0Myz7RwHOsUCkITy3S94v5kd+BGj+EEZYyDfN\nYKWHOGzevkdgU3cX9bU1yY464ZkvUu/FIcG9OD8ibCpxoAaAWB2jP9J+K7hw\nAAHr6MIDqrhNi4w1KOvcb8+kS2CcKu7EhIN54eNj3AnwiRDQqDL7g6jvnhIg\n9CpLlHCitKvbiBc7eUXYewSttRIE29mG3QQnHD6jJisaPVO6TgY8zQWq+Ubh\nggrOPuqv/Ytqvy8DPaup0AyflXFPgmccPaeaj1DUueAtuMPja9PLaxYJ3sVF\nliQe4xIJwKMILcqhKiAX+Lmz5MbkgVs6w9G+8Q2VbEJgp2EJxpRsPkeHkdYz\nNcfi4ORphGHmxHaxAbP5ewk+bsvu7lvgcJDmYvCHw4Oj+4uFkIlef1hCoKW4\ndipfa9jwcKMIAS6oMZQvXeBZtjXk51naHLj/ActEHLF/ZFgMTwB0doBoVluA\nS6al\r\n=HN+e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhrY0wcKRguqWClFPHT0SPcgeHqH1srngaOUm4iETLJAIgRziQXde/jRQoFN+8YWLA9PO34ayYSPDtFPC+CR04mO0="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.38_1592920178557_0.5849338687790422"},"_hasShrinkwrap":false},"0.0.40":{"name":"@aspecto/opentelemetry","version":"0.0.40","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.40","@aspecto/opentelemetry-exporter-live":"^0.0.40","@aspecto/opentelemetry-plugin-express":"^0.0.40","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.40","@aspecto/opentelemetry-plugin-mongoose":"^0.0.40","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.5","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/jest":"26.0.1","@types/node":"13.13.12","@types/socket.io-client":"1.4.33","husky":"4.2.5","jest":"26.1.0","ts-node-dev":"1.0.0-pre.44","typescript":"3.9.5"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"366d7812a4e135bc1b0e00fec3d5abb5028617f7","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.40","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-BWhnm2rTNRbAKZlfa+5bmzYV+nJ94ix3PpK+M94Ze6YolFuWQckAAbcUW7ryLp7/WfFpi0ZHP1OZsh1pu4PgWA==","shasum":"c9700b65b97d704563dc6853e47694ae86bed59c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.40.tgz","fileCount":51,"unpackedSize":67073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe81GXCRA9TVsSAnZWagAARhAP/2jNGzpV0hdi+XQhsKxL\nK8wv6++L6HbB4QBLwzAp7U+KikF3Dis2+qlz40oTBhZt1ELPTjLHwyb8qmmV\nH0PCcMaZGf82W1taDfUK1GHgqzH7d2gD7thpAXGAVhpOWrEmMJU7oYjbUWwg\ngpEvo8mFqPjATt66xe998mhdqt7oeXvlYGDxHontxn+YN2/dLUGsjkEzlKfy\nLhKlhYwOGlIfIc38q+1T64nWvtfzUsoeOxTgL8BjWvHIeCm5SDcFFvPC5EKU\nsdlKoUiNj9X6cDyim5ZjafOAgGtbwQgM9UTFzXRpALwfCDNaWb3ARDeLVt4v\nmwvZ5pEMlEj7CpiVlbxv2FMDSS9fvpMUuVCTV0ofzYA+M6ropronjMrmqkQV\n5P5vT80seTTvZWMgwNkOfiQiEWuENUg/mBXDFX/fumaHeoWti/VkeFswr3Kj\ncz5+MgglvHfxTTNi6esSY83wb3tBaR4PGBuqe+4dP5M+Issm0d9AY+v9QKvD\n9P2bvTDqYunAfzFcyIi0Nn55XfdphkTkw5JyHdaJqQb1qGpxDdcHqYFGC6js\nFA9vP4VJxYrQbIvNxkTkRRiFTPzzDNgk5B6ujeJ+pDZJn6P5AJ97n6/PxQ50\nY9/imnOovjZ1ZlhOg12sAKOCWt4sij1M1gAxQxWdvgzv/Xa91nhgYMU0Dw6o\nHBMA\r\n=zgKm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1ULZRnartYJZSHQ1pF6x2UwXpCEka0VxkMLEZS55alQIgDWGoM7DaavQNpVNK4TFVoyUlBhdgeVUUagztpX+xVL4="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.40_1593004438776_0.9824495643300273"},"_hasShrinkwrap":false},"0.0.41":{"name":"@aspecto/opentelemetry","version":"0.0.41","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.41","@aspecto/opentelemetry-exporter-live":"^0.0.41","@aspecto/opentelemetry-plugin-express":"^0.0.41","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.41","@aspecto/opentelemetry-plugin-mongoose":"^0.0.41","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.5","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/jest":"26.0.1","@types/node":"13.13.12","@types/socket.io-client":"1.4.33","husky":"4.2.5","jest":"26.1.0","ts-node-dev":"1.0.0-pre.44","typescript":"3.9.5"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"be2e2ce1bde02c6d221efcab070c96a4d126ba5d","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.41","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-wkaPdMKVLRiUjVYHHbVyP+nQBQUndn5O/ig9jZp55gFB6Sg/Itqcg+ydGOV3RpvXZKNRzop/Xym0eQv28J3d3Q==","shasum":"cb7a84e98568e0e4e1a31cabf139bfdbb37f9c0a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.41.tgz","fileCount":51,"unpackedSize":68413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9FY+CRA9TVsSAnZWagAAjUYP+QHa75j1Y1UO+3aALUFz\nU3wGQdJIEeQAwdQDKaL4yyoAaiTuM8UAWhD+20tw7Wfm3msCY36GKq1xkjNj\nt5dAF7pWIDerBoh+vcaDcOrf3CE/Q+or0/oraGB2iLND+CD/dlxQsJtLrZdK\nR6Ysa7ncBH0JsA/48zeMR7TgKtqRCdjkkaKJvnA3d9UND+UBMUDfMuTOO5ld\nEGxzEi1ys9YnXn56N8LZ7HZKhquMvJrXLJY3Ioj59382LkGZouS9+wNUHneB\nS3YNI9h4R1bMIv9/baW/l7XeAysiNQvGzxDU/QbJUoFEpx6sFVtakpg4a0Bb\n+L6ZwGibrFBBtK3EDDXC63RpCkWsblN/zIik5YnYIADoU4v0niDaKm5D/LY3\n2w9gZvVTYP7NkFfYZbfm2aM1G8n/I/sukz9BgGcw99ychWhSeL98aL8P14Sr\nBYe0qXJeY2bpqTW4A0JmJjtbSDzLOQhZcQpscAFFBdeRVyKrVjuEVU+/8IOU\nHrncAdA9ttMkgQi/ppGOb8LSqCVZhEV0lqmM77RmNSKJXJ0F/3XhItIi8Wk2\nT3hg5HvsV9uVO7rgalZLB7IZIN/97fUe7gw0xZDihli7jJJlIpmlIP1h0Z9/\ndAkN4u4wjxwP8CzUHZxUcPBE/p2Qxn6rnd4evsoju9b9rub03hUvUj0I1b7s\n7NKl\r\n=PHrO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMbFT7uqoqddJCFdbX4LI3kLQVZzhe/BzAOz0ByJVuuwIhAMlCpsK/PPGE9GtfXvZ7Q3Fn18BgzbdgiPFhaKAQM8gi"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.41_1593071166478_0.2734505876148827"},"_hasShrinkwrap":false},"0.0.42":{"name":"@aspecto/opentelemetry","version":"0.0.42","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.42","@aspecto/opentelemetry-exporter-live":"^0.0.42","@aspecto/opentelemetry-plugin-express":"^0.0.42","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.42","@aspecto/opentelemetry-plugin-mongoose":"^0.0.42","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.6","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/jest":"26.0.1","@types/node":"13.13.12","@types/socket.io-client":"1.4.33","husky":"4.2.5","jest":"26.1.0","ts-node-dev":"1.0.0-pre.44","typescript":"3.9.5"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"af4197762031401420e7caabd7cc7fd0cdaa6073","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.42","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-AwBbffTqnHzSknrwv6MvOBuDtDax4o/0wGVOwRJHiqXYhI7F3xsk+sdkplal/BBI4GfOTnCCA/onpsylo2ZzwA==","shasum":"82ae7b403949d3fc7c427500a60d098c1ff7c3f5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.42.tgz","fileCount":51,"unpackedSize":69242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/ctlCRA9TVsSAnZWagAAQ0gP/jyg7KU5+syLpmgvijCb\nK01DrxbbeNKgioJffKf/cGlU4ioIh6LBVprjikSDZrN4FG6IPKIW4KF56zD/\nRPZNK57jJGlcitbxHTVFxvMmuKOAAVdl6EXfGC6vqmdfOAzCVUHl4S/z8TZi\nC9EOfV4iY7TLSPIzQXgMwtlvel31D2I47Bq6it/oCCkKD/g7xsKLq9BOJEVu\nlWcz1/Ukb1uXWy0eaX0JY8n8FWIZhWHMgr+tFPSMpZv58b1eZljOnqQm7EtE\nt8tYjsh21JB0f/TBSAuvrlhnAadyLTG+cv7jYPmWE0fwJ3KHvJdr/VG8XvEh\nuF5IT2d3+mmaCM4jVBZLyp+KM1Rh1gdrNu6abIrSzkIlC/jJK7dMffhJNv12\nA1eAq9oywA6EuUM+2rE2ZJ+HdYNY1hGcsxKUn/yQvB4ltVPerWO6hRfacqpG\nWCCoFti/SWtrJK7zNsSUvUu4nug5JJ29jID2IeunUkvvE09lWUtWfSXKfEw/\nSFWAw6wdB4DcvG1mhIV9DxFLvRPfC2xT+d5O8PP9NJ+rlhobFZyVZ9d66RHc\nHOymZsT4fo6dsG12Nz+uJUM276RI2yC4Uwss3zWGTlHFVpfeIUxW5UwqFAfF\nbyc1VN2gjDjXT4hD3QvHb+1Yz2CrP2oT+fF9bM8lo+g8GrTN2B0ZJtP2+3Xr\nmfZL\r\n=9mBh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY4rgVGTFfc6dF678+6J7tHs23egFDb1vOQCrk/SFsMAiEAtPFc+vfa2tIcamqovee7I0FTq++TbqQLtpJILL54WMM="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.42_1593690981009_0.9030774794653909"},"_hasShrinkwrap":false},"0.0.43-alpha.26":{"name":"@aspecto/opentelemetry","version":"0.0.43-alpha.26","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.43-alpha.26+940aade","@aspecto/opentelemetry-exporter-live":"^0.0.43-alpha.26+940aade","@aspecto/opentelemetry-plugin-express":"^0.0.43-alpha.26+940aade","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.43-alpha.26+940aade","@aspecto/opentelemetry-plugin-mongoose":"^0.0.43-alpha.26+940aade","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.6","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/node":"13.13.14","@types/socket.io-client":"1.4.33","typescript":"3.9.6"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"940aade14aa66fc73735b72015dca664105790f3","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry-js`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`.\n\nOnce the process starts it will output the following link:\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nIn the link, you will find all local flows that were created when working on the service.\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\n\nIn order for live flows to work when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.43-alpha.26","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-91i8IWb5U9YXkOpWLmCQwLum+yMSCwlkgue+wPdjMtxzcfBoOM3gSp4RhwEYw8/3cMrys9s52Ccvk7fHUIU+CQ==","shasum":"1dbfb49c9f8125cd3643a43e5879ac45ee1216db","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.43-alpha.26.tgz","fileCount":51,"unpackedSize":71416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEFF6CRA9TVsSAnZWagAAf2sP/07PANdLlx+8srBJiDyO\nT8yNBTlcIU1hvFGTsQPOfqgDGP2+ajNyNqa89AY5TkQ/4hNTsjyTbrjI4it4\njEhc9hsWw4DjhsdvYVP3CrqOdbWLgzboCyR3yh2rxsw1h5mjiCsOeQe4Vmqu\nkAgVTroHrXa+bXLRMnvXhmWGTsXOh7ytU8euaCDpYwDu0Jev+bUVr5jH9fVH\nxYQ2wdY95L2yFS4VJM5EsyZJp9pFPNOT7yNVLFNYS2/wStncWF6HWY240aCa\nMNgWSAupWKy4TjMB3ymZCxDjyHhEfPzoE47XXR2l7iG9Y9BHdh0nxEqJ0xbf\nDokoSMbn7cyfLbRrAtB0WOdPJETRQ60Fzsv2iLPHvcJqB6Zqb97WCM5B3l0t\nhtRdwqj246oOU2Zqm4MrMh2XXxyODPTWbT0wkjxBxeuj3xKymdzdmF+2q8AG\nuUz3PjMsG8gK8JK8JL3T0BlSX7XOk8wyBhWaoe8Ut7prK+nSr3OOKH+0eWe3\ngnlRsw5cmMARIwgkKAgTdPN3BAEPDMtfHx48XQvhg39WKV/CsZjrrDXbWM4x\ne8O9gxZsPcQR5wqFCSX1Bh4OGJ3QNIlO7eh3BbVMs+J6MXx0DzFIEp24zOgD\nd4CHJPAGWio7FeZKQOygV3at/4maGtSlt6cYoaIggzlsiYuLj8SIyBiyix1G\nIdKt\r\n=W99z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDImTPcp1kLJ1Ufe38XozdgBuxpNcHbiMJsma0H4m9kIQIgTwIBedpnnnDcKqUoATekQ0SVL2fyadwyhYwE+VS9iIg="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.43-alpha.26_1594904953670_0.0657745300033532"},"_hasShrinkwrap":false},"0.0.43-alpha.13":{"name":"@aspecto/opentelemetry","version":"0.0.43-alpha.13","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.43-alpha.13+6f588cb","@aspecto/opentelemetry-exporter-live":"^0.0.43-alpha.13+6f588cb","@aspecto/opentelemetry-plugin-express":"^0.0.43-alpha.13+6f588cb","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.43-alpha.13+6f588cb","@aspecto/opentelemetry-plugin-mongoose":"^0.0.43-alpha.13+6f588cb","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.6","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/node":"13.13.14","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"6f588cbdf37f6669ef82b88a855ccd74b68233d7","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry-js`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.43-alpha.13","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-oSH1Bebaoefk9DN8Jjm1b2q931AayGeixvtyR++9TcYHWUPxtXei4ep2qBTG1FTsyNm5foQRY7JazaMhwbWpEQ==","shasum":"258e1c0de443d9d1f08bd48f5180998e3c92b52e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.43-alpha.13.tgz","fileCount":51,"unpackedSize":73194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFb/nCRA9TVsSAnZWagAAwrYQAJULY+ScCHGNmyaQJvXF\n6R6SJ3lsMOgQoCvY7d5OrzPIDLGcbIPyezEkYugf9S4OHO9bTbu7O3uITwqX\n3PU3ovfAbu+f2XznAC9dXKm3LpZwTxN4/MO0rAuRi+my3oyMDs4hpb1FUVZ4\nEtdF95M+u0Gv+6tTCrMBzVzebDVYP0AnptoBGF3/YG0U2eKeLSRzqGNNwHwb\nEk1QjXC0urw5pzGHXn2OTNSlfjJRdobVpvdmhCE4WVDq1+JjFqfDtTmPnzI6\nb+aLWJnPca6piRQ9oyg37jH3tjp2BI/budM9on1s5aShc8310rTrxcSilAz/\naOMdK7Sj2QCl76TLEJBspHSH9PP7lxv/zkegQI/nrJqNGtYxJZfBkZRNMVWt\nIgR+UdzZMAEx0dJVmX1vQale97CbD53xroy5UFILucdDSvtW0R5Ul6XKBFVP\nSd2DdARzccLcm1AppEx5cuqjdCBWMoDzqRs93vfjp2tK3p12NA4y6liMNZON\na6enceGvNBaDrgRzjJ3nMKGj1Xj9qjsgIpyTMPDFaBqz363g9kCKtmYzHd+4\nVWhy7BceakuGfVUcCG26mWLbzkEggVeJFpsd2Y8PpXYP/jYuucUZqEvAkbF9\nYAyNmw2uJzgNeqxbIzfPpW1sbF6hH21R4XUBpq1id3p/0ZookHEH2ZST9I7T\n3g1F\r\n=QUtV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+zG0yXagJCRcletIK7xgY0BH/aXlsmjm/ZwpkaTgcZAiEA53v2DR/7PeGJ7xeMZc+Mc1BJvYvIuDpoY1PPAgR/8ok="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.43-alpha.13_1595260902631_0.03630832419802976"},"_hasShrinkwrap":false},"0.0.43":{"name":"@aspecto/opentelemetry","version":"0.0.43","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.43","@aspecto/opentelemetry-exporter-live":"^0.0.43","@aspecto/opentelemetry-plugin-express":"^0.0.43","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.43","@aspecto/opentelemetry-plugin-mongoose":"^0.0.43","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","opentelemetry-plugin-aws-sdk":"^0.0.6","opentelemetry-plugin-kafkajs":"^0.0.3","socket.io-client":"^2.3.0","uuid":"^7.0.3"},"devDependencies":{"@types/node":"13.13.14","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"4a1166e22437be9fbe3bf5e2eea38a6a64a7738e","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.43","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-BY8paW6GQ7t9gyRXpy0eH0z4CWUKTnrOT8/mztoIV+SJ+54jC8svO6Pu9JpdkjKXoLlAXy671aIF4VuuypMv2w==","shasum":"b42742de518d7709d8cb7c1aefdf6b7187496def","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.43.tgz","fileCount":51,"unpackedSize":73092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFwJoCRA9TVsSAnZWagAAqpMP/0ehIB0W3ZpK/N5OGNwI\nJNwP5eDayyJHmE9BknhH0x9jHiSbxHWlXNngdX4BBaAMblPp38ZL9MUqvro0\nFfGLFb+FuQYbe2n2yz6Kcz9vleb3bbONF04l24QQ5DEm8FF32TiRvuNDR93A\nvNW/1X3LwPcrimJvNlZqzQLYVFSLQ5EvGpHDuv+y37O9ts7OF3OBHj3FSDAw\nvY3vskVwJ8k3o+S1U1kj/kH5uz4CN4tb90ATn8aUKNWY0n2AY3YMaQayA6LP\nx4DDrc8LE3YZI4TFuJwX6MvrwzIwod8MJXegZmLTQ8RlvdZ81jTy20jgYEna\njI4B7NH9Ewha6o6bEDmoFngwlU6myZuCNsG1eP5V4jspcKNC0CzshaUOF/bG\n39f2g3tQ4pjlsLBpA02qWOQBgQNSW1WbUn4AgFwvuhBXj9yOoNpgxrkDHVhV\n57VKn5vp/kyl1sXOaLoiL6B85wTYISXl/p0KYPKyeYjp5CoBY00TvhrHIcdM\ndMIVwp8DioVxQAtHbbt4u0mhSJCPlVKTWWMJ98inVgkgFg7gbx7BmDw6cc8o\nPakKxfvJs9+VrUlHd94FIVyyn+ZHyYNX+sSXtG5JeUiN0Zdrxg/+9WzO8aoM\nBchLLJAO1r8LjmTSMn9100iBsDjkfJEvpoWZpjPLZKOnW4pM2W+WADpfDW1l\no8eU\r\n=Z/4I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQDDS46bDsToCVRiPBoLVX22yPvimRMBZS0Vr+oiRLpAiALF2vtMDB2igdvTLPhhEg0yRlPULm6Vja9Z/d1a2MCHA=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.43_1595343463862_0.21170919838645008"},"_hasShrinkwrap":false},"0.0.44":{"name":"@aspecto/opentelemetry","version":"0.0.44","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.44","@aspecto/opentelemetry-exporter-live":"^0.0.44","@aspecto/opentelemetry-plugin-express":"^0.0.44","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.44","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.6","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.14","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"755e1d8b3e95b81308dc0d847206100107ece4dd","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.44","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.1/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-8MMrvjK9wsAE5eIsfZPiMgNd91obsAb6fJSY+QVhVg0ZVAMdUAy4jcOyjbGl+P9u3m8vtVF/uvYAXRyy3BK/dg==","shasum":"af88fb4a998f17038717ed6089bbba25df0ae5f7","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.44.tgz","fileCount":51,"unpackedSize":73088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGAIlCRA9TVsSAnZWagAAf5AP/1UtVgGP0R5guKDQckZk\nig5i6/peQMQxliJwf/eEgiaOrsRwuD/JkbirUl7klWaPWqPHKjBW4CIIEebj\nphTUm8yY+BH+bfWBuo2NTP221dlF9s4pJJ0yR2umWYrRpW65sz2UMqG+HF5Y\nhp8RSnaEQ+qVGc2gZEdWRgvMiLPMN5TFn/uCWkccO+VLwB3SPHNvd1FaeNVU\nvS9KTu1vukyZZ3HNbYdIFaVUD8+M9kLXBKLuawxHqTnKiYvCCORYNs4L8Joz\n4FYGo/7oMz0e4qGke+PwkTz6udIIzD7ukeKPPf6r14pn+aQzjcXSVgcXm1kK\nI01OC4KdNMdyf0aZX446wK4+XjzJ1fNLJ+BJ9zdwmsDy1fHYFwp/192CtPKB\nmRhKFvXG5JSRYGgsVzhUSXvL1w3Dt96hBT9GM3GFgzcCICLJMvOx82NQvboE\n1M+91yDrgLiTY36UVs61vOpZaa9Hr0k3W52yNpaeghbuh5yMIzpx4cAvfcCl\nHcna4EBC5sJqrDBR1BHV+c17xRwvTwnqsqEJzsrfznSa73JU52pb0Mh2L0lr\nNio2GuNd+e+8MmNKF9AIiH6IxJEeB4uJT3ZyEXa0Xc1mbiGtMiZSAvsxbaX1\nnxbqXfNP1/RxFbYAZDU8bFbDdAAxJSDf87CGTi5ZEbgFHD7n/CbfkkaWKLIj\n+T8i\r\n=8rli\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGniakVvSWq3sIA1SCRKas8AJNvy9IuBQFJWw2TqgufmAiEAsby/RoOoO02ejXz6T6NEQNotji8LCrVtmU2oUPuSJ2k="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.44_1595408932990_0.8076526067786665"},"_hasShrinkwrap":false},"0.0.45":{"name":"@aspecto/opentelemetry","version":"0.0.45","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.45","@aspecto/opentelemetry-exporter-live":"^0.0.45","@aspecto/opentelemetry-plugin-express":"^0.0.45","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.45","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.7","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"d9c1cd4f16e79eafb21ffbd7d3b4efb0bcb8737a","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.45","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.1/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-GzonJVafgWtxmmjKZM7dGM+N1tJnSEg7QrCtlxU3DLPhjRd6npdUPmfd2/ZjuUjKQGYVtpPX0KGw/uJM2GUARg==","shasum":"118ce9c2adbcd89db7a9394c3905c01518823afc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.45.tgz","fileCount":51,"unpackedSize":73085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKnBeCRA9TVsSAnZWagAAgjYP/jzDOgewb/xzs4DYSWFC\nkAxXL4BLNoSBkdNpd1uryurl9p/9q7LY3StMAHLT1OqNYCzSum+QjBrjg5t5\nH2jgEYA5R/XmPtHo6akTBW4Ak1avz3mC9/MRNMx9lVgYIw8zxPcyGY5yCOAC\naHm9HSNsAAX/QTc7Ue/9cMrKnRBms1RCz0pevWoi82dVxmLz0MrY6W89Juai\nY4si72iCKaVVpLuozvH734wcdnp3TIwACptLNPfZPsLjlXbAFWs5iPqNUYQu\nI6zlKthT3ssvdXB+H0/eLsS5q8HbnkdITObkRIWPxruc7eWoZzNYW9cNTarV\nIUyNh6b3XiANUQ2DvaPnldEyqL13HRmBYqwbQGRGDZFW+TzRfZ9q5zbXwjSS\n2wgofTF902ppyrsLWLXvFto3E8XWFvdjqdK5YMO69emnRJFdnqj3MjCX+Vxt\n3Zh8DkvYOG0uzVrhU69oGfMjnmgHZoKSTGqFXXfyngmolzGJVXhgYdev7hvJ\nY8A+ppzRU5FhC4N5GjqIxHzDi4T5lLE5jINywQrYpPy0WIqhtiZ6R1I5kYej\nnYBZ0gOnQQWsbyROb740kaaaLfoUGjbrrgkOTvVw5od/+W8DI1juhR56BhN4\n5t6l8vGeIpp2dcZIIfPjTslOjn4fnPqAVH6eGATKWIEWqufjSna2aNcRmV6A\nuhWP\r\n=sgLI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4OBOD2lAYWAvMbxUa07TWcSkWB3cJ5DJK+dRCLSqIHgIhAKenk5d7P3ndKyV0jT5f37PxdRtO/OgMQucvQH+NhXUm"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.45_1596616798537_0.6102800809156197"},"_hasShrinkwrap":false},"0.0.46":{"name":"@aspecto/opentelemetry","version":"0.0.46","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.46","@aspecto/opentelemetry-exporter-live":"^0.0.46","@aspecto/opentelemetry-plugin-express":"^0.0.46","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.46","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.8","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"dd1ff3c04293241cf97e66fa1cf229dae5181ef1","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.46","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.1/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-I7qbTj/B6zXAxQqMPPTw6kL76NDuXQS1EQ8KjuSmwqfh/8pdVY7kGP4mlMJG4/IYF74vYFf/wlmast04nOc1Ug==","shasum":"77b3521a9d6802aae6337144f82b16f65f3931fe","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.46.tgz","fileCount":51,"unpackedSize":73085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMPASCRA9TVsSAnZWagAAPq0P/2SsTh5KiSj6B8X4E9Pb\nBMkKYxSFqggLZqXDH/yjLjAIdfpDviQZywGRlZicpKd/qZ5SLUNQQnLhhq49\nXTrt33Z9lC31naWX2+E9RK2xSSEPcj0wb/w88EAIuSu+vpQRfvn/gM6SMOHP\n1HSpoE45chaUdYVOM83mtxp3+hHFGE/D4WnQNY5iypTlXC1owZH5b4MhEVh2\n7dhqsJ3b4HkA78Qx2B7LPU6cJMgaRB3DimSZ3KfLkBVEP6rlQO7I7lFTg1md\ncDPyaHCAE2W7+3uSx+efUwJkslBeplPuoAWyA23vzDF0RIPLZ/8d9XE8Qdvy\nayeK5sQ4nGV1Gp2HW62cTXQw16Ck/4ShIyOd1hzds5D9N4kQRH2Yo3RIqzfn\nmKTaJBnLB7FqCuZ5S3SmONnMfXCmkVn5knvHqN+ORVPJnqJo8kbfalrzkKmG\nC1yWVJtcLLWXHOPWhnSPuSkQDate37yf/W3niqECw5KVCQQZcurqB88BBDot\n9htuBA6hfEPz8ACVw8JpgUJhK8fGKAV5lyAzR/IQezXYpbEabHgEqXSWhIc/\nlXFGk0UIN1KswGX2N2f491c1H94yiH22oPeyvSfQI0QUubUync2xy8r66U6S\nWPQ7j/ZaL7tbYkFKrezQP8J/jL+gAoIDOPoHkOcqiv0aiGiovaY4USpzFEXR\nOKc8\r\n=xFwi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3yqqaing/otxVg5PmsoOSpnKN1ylyqQrdSpO0Km39VAIgNaV3pgynaWHgdlm5HzXbi3D9f9XlzXpa317D5Ypc+Hk="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.46_1597042706340_0.5437572807382849"},"_hasShrinkwrap":false},"0.0.47":{"name":"@aspecto/opentelemetry","version":"0.0.47","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.47","@aspecto/opentelemetry-exporter-live":"^0.0.47","@aspecto/opentelemetry-plugin-express":"^0.0.47","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.47","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"3fe9548434ecf536c401b97f133e3a0bbbe9b97e","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.47","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.1/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-r83LqLH1BU9nN+ioJorEFaFLUIl+zp26q5sj5w0JPNnFWTfyIWfC9mEPd+ermupqFlszxLEFBaDc/+WS5eW9JQ==","shasum":"2401228cb1dce0c37e158709b94c6249188cb981","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.47.tgz","fileCount":51,"unpackedSize":73085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM6r6CRA9TVsSAnZWagAAgEkP/RPSNOAqeusD7WpYrrGM\n4+zv9XR4vIlgB9PLWItjLZM44Wh/s8KYUvArkf21l1KO9Sa+GmC2tbk7FDVD\ntbnAZdqFFCuO6eNd2vi7rK3/teCLm/iyaMryy5YBW+8Y/TG2ylNioc2obXHA\nqPMFeHVmdhraLFSgKjFtn7i7QzJl8MSQLrTo3HoT8Kb094wqjAWLjkxk5pGz\nKuEdXoezwL5NE0dFF9RKZ4Dmf7e9z2iYJ7zS9w22+6wZDWWfGOh+2s+FENUo\n4A9PbUEeErsA64wBHvO7Yv8qF13/SM51L7mC8W6ESpfoGjOzOw4H+Mt+pUhd\nnWFDxTDk99X77edBolBiU74bgEBHNoKYM9d2BbDTQq4M3qBm5Wnlk3QXM/Xi\nsx0Zf1S04v6rgyX2UDCWMWY5bqJBudHhH5APBNOVP9hNMSPFqIz04YwVy1jN\nrCMVbkTKvCysHCs0RUcVjZBQ1IOwJ5Tc2NSBiEoL79dCODqDSqrIP/L0RpUX\nA1YCYq2zIc1bo28hnjJInKSzHJM0u7uwjd3U7VMZvhhMJ7WzNUTH4u4eXBLf\nsCBaJRyaBa6nFWwyPJaCczVyp5ADvAopn6sUk4zOxsZDZ8kxY0jYu0k1NsnH\ngaV/P936ARpMjN4Y1SnVni97dlnH//Dy2fv1n7+QicZmJW+Rfj9mYxgA8Y9N\nYNQy\r\n=BfE1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOW3ZZkvveFjuNiRyGxGMyP2b+BbWqeNDyfr3KEQC+UAiEAznfaSbM/mPc7+SWY+J0jVf2mzLMC7/HlO0G1n9dvZ/4="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.47_1597221625689_0.8244849021301732"},"_hasShrinkwrap":false},"0.0.45-alpha.15":{"name":"@aspecto/opentelemetry","version":"0.0.45-alpha.15","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.44","@aspecto/opentelemetry-exporter-live":"^0.0.45-alpha.15+81ff0fb","@aspecto/opentelemetry-plugin-express":"^0.0.44","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.44","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.6","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"81ff0fbd3c0727ad2c80ccf26af325e2aa34bedf","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.45-alpha.15","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-XsRtgvMcvXO/5EBj2Pwxpmubqh86+fzTsU/ye91rplBzMdRBCVnZhJjtwHI7WlFS+OQfp428xcy5ZGxAajkDeg==","shasum":"1c2f64ddb6f5ec43b593f80e2fe19f1bf4dcd684","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.45-alpha.15.tgz","fileCount":51,"unpackedSize":73119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNVvQCRA9TVsSAnZWagAA+oAP+wVBQrnKh6VwrRXhw1pt\nvEUK0U5LzwSPJlFvLHUHa+vFHs6eP5MUYokpbCbjdzxsFXPrQ1Gl9/YkZfCv\npEhDsiH8NiR71IYDNtLaDePzwpNGQVx1yLcMmaoifXX98mSbCgjYIuhoQfez\nTGzcaP6ouFmG7i+KqVQsr+yyG1++Wge2qaPNqHxnjBed/6TlD1QtpJNMVWL8\nTiSTL1XuXRffEyPr8QvXzKVXpqlWYA8XV4ZifbWtGTIJeoiED2GsepYeXwkz\numTSDBxrKtXhWvOHRmb/KPKGUapHENzujNyjyiqluC8nluQ+idHcFI69ygpr\n0ghPcQqWiBgdlZulAYNZJwJWKyt7TJ9w9trO+H0IYsX7OA2rOeJeLmxRTdQx\na7D9PUCeUbWTHYg5puQdREms97LV0r7FnV/UTzkm6mhDPtftLzvnBFzqukMu\nHyzqUVpzcqcFYINXgC89v7RsevC2HAO583hb2DlEGEpAGlMdIqfOhUa/TDjc\nyWWc/egmL2YFlGRnGvaOaUSu3WF7JYvtpbWoFpGcAn6c5MurggNaK2R+5rzc\nw12Vl+uzIVj3cDegh8UKs7neynf40AO2exOQCMk3CQ4hI22Nt5qUxLSPtCww\n7VF57MkWuv5fBOCv1UCCGvAf2OUJcjmqc+IukCOKDuFmTlygT1Ly8tGAdphr\nGqD/\r\n=gbDt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDecb/DB3Ej160qS3xIauoJGrcF3fzL+M5ejJhAo04aAgIgCAk2Sr9d72yjHaB82TKcdmJXIfqwFcyKRupVCwaTzMU="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.45-alpha.15_1597332432503_0.3431033373021599"},"_hasShrinkwrap":false},"0.0.45-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.45-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.45-alpha.0+ad7f479","@aspecto/opentelemetry-exporter-live":"^0.0.45-alpha.0+ad7f479","@aspecto/opentelemetry-plugin-express":"^0.0.45-alpha.0+ad7f479","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.45-alpha.0+ad7f479","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.6","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"ad7f479384e72a86b2ee4388b800f534f7472352","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.45-alpha.0","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-18woaCyNun1Q6sBpuhjVQem1bd2sq7ly8NYHN0KlYeBRai6DS7aicZmD//N5zqh4GgXxIXvMVNvuHj+QQbKFlw==","shasum":"cd8120dc276edfaf54176212d6bc614ebf7d0e4d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.45-alpha.0.tgz","fileCount":51,"unpackedSize":73165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNXK/CRA9TVsSAnZWagAASOcP/i01NOMvHl0VQI67kTLJ\n/AkD9XR3nvl+ksdiOsWkQORl44GhjQ2Sh1Iv1HBDtovhynjZsZ/0Pyu61Wqj\n7IF/YeayTEWzY1YNzCpuh2Uc7vEXwFekbxmDOigUy7BcXSG9Y1nwMXcOEqCf\n+4ZtLgNsJv5DaGHtr23woyXCHQC7IHqa+Gp1aQ/iKD4Xk5vTlJBBN8Nm2alw\n+pw2kkbI6vkYAJJA4CQjQRXJqykz2uX1xP5qVl1E8omYbVXBEU7WqNr2tqz3\nl9kqIeuJeZNyc05F31OwwrgYP+iDq3d28AhYk263laqowJaqU+phRArrz/IV\nD1QI0uaZEn4uWJzliMVmNU6W9CNxTI37nP4W/AzYXnVOSuG3Wx/8qn7reu34\nqPx9rveKCOPBQjeyDeGY+nZ0Ow0veERpHPjVMKwnDerCd3QpgwAbCb1WS3c9\nF6GGvpyOuxkaq0Nien9yyneoA4xDWGPdv6lkcX8D8YbSZeg7drdMNfmURBZ8\n8/V58MVzJwyac85FUL+Ajqgs6EwXlA2SiC0QWNVD1u8krVxMSpdJvDYXjAYN\nSZvS8TgFujEH1zCFcpi5qa/3DaO3+im7JKp0M8lHOYttDJmDauk7QodJxql8\nnaW06VAkvQ5+VbI/EKeWjj9eK3J0ABklnBOFh0ttQIkJzJrnPLg0YbN263ms\nTUl2\r\n=dylE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsgMCxUDalpzGbZBHZlshYcbku3tLVUT/zAP3vp4YRWAiA/G86jLWeBYhgE8vK3HAwJHU8KbvYNRzCuIpanbeZWbw=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.45-alpha.0_1597338302888_0.999253767162577"},"_hasShrinkwrap":false},"0.0.45-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.45-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.45-alpha.1+c40592d","@aspecto/opentelemetry-exporter-live":"^0.0.45-alpha.1+c40592d","@aspecto/opentelemetry-plugin-express":"^0.0.45-alpha.1+c40592d","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.45-alpha.1+c40592d","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"c40592d528427e6a4a1c7ea29881c9cf7bb3427e","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.45-alpha.1","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-EsrwYy82tpQiib/5MQra3EaJKngHP0PGFfNEtt4dystCXET7fNaxGcLLdG5TO0lYQiF0w0n282Xao0cT0B0Ubw==","shasum":"1dc64d6cc99e9b22d246da8b7cfd530beb4399ab","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.45-alpha.1.tgz","fileCount":51,"unpackedSize":73165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNX0nCRA9TVsSAnZWagAAuiUQAJvSc2/fn3aKPNQANgvk\nFhJ3c/v8M9+0xhaZIGngTynrXJroabJyFrnwUl5Vylvch4OwkCJtYr/InHSY\nO38DQNlfofduBKGPLDo5ppDJp5JOU/gtKpeQoHyWI0Jx9aCpIjo/kgjvcvDV\ny65RyHYBLS7yxgtb7e/74++nvXVqzA6NrWi05VpdenPyeY1poxUJvRqRjnmT\nJz8MTghrwQ5xq2GXvNmyld3sSt1cnWCdRNqHPwwbKassbdWpOIR9UzzHce5E\nvMdolnGLGu7WGxKo1AE0kJEym20lzmpsHaMfKyQq7Ul0Z8a3pi2ZDIPojgf6\nG2Wy04wo3P0bAGmr/KLgWyXRg6a+esCGCcKUvFz4c///L6nGOqc0sFAF1BUF\n/yPvGkfRJ3Tgn1YYNnIBNpVoeiz7X/mHYGdgAO2+17rws0aN9kMpT//vq8Ye\nC8ItQCDOJ05LVogtzLn4RKwxwPpX0OIo4GS8tsmjF83RjyFudz0pZNh/UzYc\nO25TRHjWNMFxwwSi7ktl6O0da+p+zc+m4nIY9MIwgO6MD7LnmwjeZcQgWJbm\na5dP/EmW6GNXHKMootzZaNULYTsrH+vodFqcsyXSihJ/IkJkxjZJMtyjZNqO\nG/nMF+PzjgxY/YZg2aucL/683/S1JJi6nBtZYxH0itTIJRer+VklD/L3HvFZ\nWZDV\r\n=ntrh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIOVm/MqBfedngeU2VPluel59LLYBvwqmm6fi3jNrI8wIhAMD+NEZubyF1xG3b9VvbVQyxjqCXFRYSvepqGxYH6if/"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.45-alpha.1_1597340967480_0.5469395099615202"},"_hasShrinkwrap":false},"0.0.48-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.48-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.48-alpha.1","@aspecto/opentelemetry-exporter-live":"^0.0.48-alpha.1","@aspecto/opentelemetry-plugin-express":"^0.0.48-alpha.1","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.48-alpha.1","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"2e5247cdc904f1f852a919fb59e13fdf380a4697","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.48-alpha.1","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-qu+sANMCYxYcnFs9ffmFnjzpOhig33vEiXGMkh0GJMRa+4aZAwGh985DvL+WkqIG5z/w34AiY+oJMHuPZopJeg==","shasum":"f4d413590a2fcc4292cb1d0d9c71b0f27223bb2a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.48-alpha.1.tgz","fileCount":51,"unpackedSize":73125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYCYCRA9TVsSAnZWagAAgKoQAI7Mzp+CEPWvxVk7BpHh\nvGSPAidfcNNTXqmrH41sd5EDp6dXwXRLi503oNA9QwvKhLKuANjDH3s3cQ7Z\nV/jxXrcWDGvRYng37Zc5TPnTZW2yoST9sBgPlYNiz3B5sZkmKrdGW9hMCHVf\n8ZnXLC9BrInjYcAOtsLCv9vwShYZ+tFKoQ+Ef+MNZ4M9920CQn9ogV9UTdN4\nxpMjxVqZ1xGOBpiDLcwXsytfTHpB/H5YiQiSFlp/4dQYOhLOUF7IFDDvIsxk\nK7KwmXFHL8qdsvHMBmpkjG270faN3En+rdrIvUJKub9fImDHi7jEHBRdu+v8\nwDDpoPnvnpuQzgUU/QyXK80L0TjJbx/Sg7WMU6cMAFg2lBQ78GKHjwwv7Tsl\nKpJBPPO6xgcP8qhqBQUSuu5gt4rBo033L1u+WRiIIhXlCwukL/jGbaLUD/MA\n42TJL+qbx3mYxQANNb9I7+ObKe/L2qOAEO/lOU3qTKVoiE8QKNdyACSNuqwY\n6jYNPVw0j5sT2Eyh+5CC8QdKJqnVXTojt9H1GJEnCk/LmjwUSfK6k+Nq9I4a\ni4+RBBDR2YYD8cNB8Votkqn1qBH9faUv52zOhBRBTLfjI+byOmyAmiJznrp9\nlg6VXu4HBgoq5NWRbj3GpeK2AA9snfbIhB/91MvWy2zyj1VPfiJ4VVEiu/3T\ne9/+\r\n=zirm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkb8OD9MqlvbKAeT0F+tvxdlUp9dTRf1HXOuR20MZIagIhAODB5i4yqVBgyMkB9ogmAL7EE8ErdUbVvVnUsD4JECM0"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.48-alpha.1_1597341848307_0.9675737168315302"},"_hasShrinkwrap":false},"0.0.48":{"name":"@aspecto/opentelemetry","version":"0.0.48","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.48","@aspecto/opentelemetry-exporter-live":"^0.0.48","@aspecto/opentelemetry-plugin-express":"^0.0.48","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.48","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"c077c43fcc43fce19917d60678bb5d749a177645","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.48","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-ZaoWuB/FdTl1VuXHVQtZNUrardLoDeopEelVl0svNjSahUDuuX3SHJnKHTHIKXBw1LJDC/RBkAMaOzBFnINsvg==","shasum":"ca86b99bc506e3a7b088ee733af4192f280ce8ba","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.48.tgz","fileCount":51,"unpackedSize":73085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYJkCRA9TVsSAnZWagAAnHYP/irh9H1sbnA62ZOla7vt\nm/DfaHHMPGhn/p+3I9bvfa5Aa3yCs7A3f/3z1/hqSYBlrBsVzGU7pQO+x/5x\nyR5Wh5T9QTeQUA9lxfB7Np2YueP4FI2LD2fvpFLHvSR94m4Vd7yarGq7Bh6W\nCewnXA73V5AmKXF37DrVOP/EnMy8Eyxeo3CV9LDfI4l2J4y9S/sfcKen5w4q\niK9KJrvPEFABzTDszxdUGvQukscx8hmOVGHexFL1aFxytuxBKQ13taN0qwVj\nHtMRTlqfcYVHwOuiS0FMtZQc9tKeu6XtN8WlFkKCAdApRhtiJEfg4iRw0jca\nnAbmJu4gq48mVedSWUhTZFxJIZ+fakdolg68xcygKDZ5BH3HDvuCpwxr3sMr\nyBuDSe4n6Ieu15gglJzpYll3uSu+bPJxJHoHufZKekWLpJPxel9k8Oj5GC2s\nh9wv1LFhvB7gJSX+6IWGf/1bQZ14+qL8Tfe7k0E9hrdt8skKU2o1rJPWDUJC\nXrP3okCAWlHZIPHz0JTaR1V1I0tEygK/Ewu8dvgB+5f8LkIsnW1R0ymQjFeB\nUe/lGi6hTmH29N8NfEA+iHaumbP7IW/UM2YoxJnsgl3L6C4TRYSiHoOp4WzW\n4+LtgaR/0hu0kv/ddwIU3nunS90rVU0PweFFQJpTBNRlp9E5nRhhb1GitBGa\nQo5q\r\n=4npy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDD+r1kEwl33WM4yVZImxFcgXPblQZWYfoTW0o3a2+LPAIgRmRSgWOFQP2Ngif9oauvFnNR6AUPYIZyyKfdeTj/dTw="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.48_1597342308386_0.6602752141029491"},"_hasShrinkwrap":false},"0.0.49":{"name":"@aspecto/opentelemetry","version":"0.0.49","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.49","@aspecto/opentelemetry-exporter-live":"^0.0.49","@aspecto/opentelemetry-plugin-express":"^0.0.49","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.49","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"b71f2baee48568fb7381f244d12cfa16921baa26","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.49","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-CswP/ydsvFhw5276ThHWnXdd9nnimPktDeuETkiWOB5PxAKIm0MMt+qvde0G3BR8es3EdpDbt77ILQcXEZQerQ==","shasum":"09fee41c0caa7e0d25311a598a79d12d00545b4b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.49.tgz","fileCount":51,"unpackedSize":73085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYNhCRA9TVsSAnZWagAA9hcP/i0C70bE/vX9Wnvirtau\nlZjaOwVnVkDrmMhcpGgwmeZzb5o37L/7gJsnmADVdMexXMMc914M8/qRyg/W\nTLOYBd/ME8CCNiEILosFxuIUa6835Kz0IpZQ/ozvG/GppIbcZAQEsy4G6F8V\n9y1P96VCHA9/LnbBXlMA/rwt766/w4xnG+tdGyc6kCTn5RIDLw71H1rjIdtN\nva0rT1ckqhv5XLODspGfF7PAO1ygXBnp73MI5WuCy+Y7dIozlqpHFrLVennU\n+iTkGqAiFr3DlA3NxSu82yC9T7oLRWoTeBVoF6oJ4GOGtwCgpM0pJczeSioa\n8yr0zkjgiImB24Iq9wexM5W64SBIH5UFMqxveYNDnNrLy/JpbDx+riWeN2zo\ntDtmx9H4M538lg9ylQAZQhoWz1hCV2hERYpV/z1q4GTMlMgRjSKMX7u95Btn\nZxkCPh5qZeDCEPP8DfAnYD8TRwZeuf6Qdx0VcfCSfdawRB0nDwg30Xd0YYAx\nacZ4roWs+GDPraDwWAS25Y2LG5axCctXNRrrbp1Xsqfi0FfJayl2CVpKEiqe\npOkEuJ52feNUp5bYg6wBeaFqczqD69lUrtVJ4/GmdjqRi56EnZdozmpFmm7q\n4snCu4NUOxaYQgv0scub/ZodbGsHB9XUyuHqoVhGPijvPgvC677cTKYgNrko\ndVIn\r\n=0hM6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR/p+FnCvVrSEMdxP/sXxpaLQSoHbPKM3W35jYIjBPWQIhALPEFchxwSBsuFBi4aHX12UuHc4saNq+91jFaOHmwFmb"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.49_1597342561068_0.7904999440695881"},"_hasShrinkwrap":false},"0.0.50-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.50-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50-alpha.1","@aspecto/opentelemetry-exporter-live":"^0.0.50-alpha.1","@aspecto/opentelemetry-plugin-express":"^0.0.50-alpha.1","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50-alpha.1","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"a013a47b131727cb3955a883afa0de6e0a6fef7a","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50-alpha.1","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-kcE/i0V8MN58i654cmhpXtH3ejTQ8arwUY9kFJkw4W0V5gOfb1eVqHX7zR+hJO8we3w6JYLx570mmPqsoW70xg==","shasum":"a96e8a91094b51e3ab2c261d8c61c1a3564d6993","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50-alpha.1.tgz","fileCount":51,"unpackedSize":73125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNmeCCRA9TVsSAnZWagAAbAYQAIX5W7uXp3VPfi4QPvLy\nMMoRlRaH2FHXNI3UVmPDfvWKA+obQMLR3JEcfB80bjfIPz1dgxkWHb9XHfhv\nj0z1QiS5zuXXpJgnMkbtEmDggDm2+v+7yjqBpWWyS/eGjk5K8Y8t+LasABH0\nEbq61inzhOI1bLz7yitH8Df9IpcW6qd7D9ydwVZmnwKug9oY1QeoE56bz0cU\n1Pg3Flstrrkl/sOieZ1Z5bRl/DUGI9+9QJqGFcIuD6r10+piZEvE0HjSm+rd\nM9cP1YLfwm6TJ2UMcidNY0Vsooa0ePWeMcEnKvDYA9YTI1TpW1mrLZTIIaWY\n8mT+0D6VUh1YAq9Ioe+SsSj1S0L9OKlnPW+pNdE4t7NTTJSfbQ0t6m1ktLmI\nmAR/SP8NrHbgdmca1LkZClF7/RocG9zchG0bjlzBiEMPZNefyba4P02bNgN5\nZrjEIsn+qJM6xsuZBS7wjBFOAvaQTFZoQbwfqQZFdFf6R6cv9AilBGgapWZU\nTkuOYLpzgJEWYyV/ZVup7a4CGBj6Avfi1/J2F3bXbmPQuaaPAFDMk+8BeEEX\nrXtumPSJgc7ZpXEGXwdTMK3jCZfQlkUij1fkBNtSix8OibBVch5r73MgEWKF\n9M9CG390iomWizMnh6ajfYXdflz+2lyrfgevNWLNYq83q2qsTjvxi/CoY/Qc\nfxee\r\n=hsWc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuww/VoP8fDRrnYH8PjZrMkMTcpP0nzHmQinz4MH2a1AiEA1PjXWcy27/wZLS7TRu2/WqooH6Djhc2Yv9MnV0UM6/I="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50-alpha.1_1597400961799_0.589368425049682"},"_hasShrinkwrap":false},"0.0.50-alpha.2":{"name":"@aspecto/opentelemetry","version":"0.0.50-alpha.2","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50-alpha.1","@aspecto/opentelemetry-exporter-live":"^0.0.50-alpha.2","@aspecto/opentelemetry-plugin-express":"^0.0.50-alpha.2","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50-alpha.2","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"2984faaa6e494b46b40ca59931dd8cf56bc07556","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50-alpha.2","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-wTeYcaxboW+LgihFo0GMe2ks6NUxo5cj/8I8gTzvSDJHs1VXLeB/+RB5UzGiUe+giTceqEcteJTxKSX7NKJneQ==","shasum":"b5ae9a471274c8051e5d9104f439d5cf8c24ab31","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50-alpha.2.tgz","fileCount":51,"unpackedSize":73194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNnHJCRA9TVsSAnZWagAAy2AP/1+h9rrhOpqQlTGwLlCV\nJT3v0hVjR5CXiJjmrXn90yuPy41eU5mdDymG1vOuN0JXxZxGxRp3ZJiEhVT5\nAll/okKPMVzquummPatOwwX6+dK8NoEbt3eLDPnV9dLYXlKtk65w/lczYVtr\nwbVDt/jaKiUwSGCYtcAGEkLBkWy46+SWjAVvmULjzoa77ARubCFRv7TR/Ycc\n/aZf3U8Gf59+9vqyTy7+f7HaF2ba2dIx3jpZshEv+46e7KBvhu9SN4t4RVsh\n4VWE5WqABuwiD7F2592z2T63Mq1EnLuNxHInlj4GUf/JO8v+ZlEGLSsjHs6y\nksSvnsTSQLQE4WMkCL03myAKm+Qy3mMlB4UZ82F9s/vHN33vHCyhLb4sRUkR\nbgEMrW4PTI0DC/+FroeBpwQ5h8+V2KWwes3A6LkBwusZTgM55UwZHb0H756a\njtEtd2732oVvlhGhoCNaNI3FFYNexyg7YyoYOYT79g6VPEbgRR0KxbxbyHOI\nEyNA7T2Oa+ZlTJnzdJ+1CTjroislZQbWwz4pEIe3Jcp2/onzrFkrJF4NPaJA\nssSm07Xm5mh/CQYDO32tKJzroDeZ41By3Brn0dLZkier3c8iUQhkXIUr8LP5\nsSyJQS+5LLhWqk/2JJ22VVIHObtE462Ki5ULaGZ9F4ncgRWUUryIvzlcoNXq\nYOlD\r\n=E4CG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChgSMiLGqa/tuj1+aEiKMsgpPDjq6IHorVUDg7Qn66aAIhALMZDwYHcwHvMs3FdhPi87PHVWiv9XcV5aamAtJxS3fv"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50-alpha.2_1597403593542_0.8568973735873349"},"_hasShrinkwrap":false},"0.0.50-alpha.5":{"name":"@aspecto/opentelemetry","version":"0.0.50-alpha.5","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50-alpha.5","@aspecto/opentelemetry-exporter-live":"^0.0.50-alpha.5","@aspecto/opentelemetry-plugin-express":"^0.0.50-alpha.5","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50-alpha.5","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"299534d46e52c6ffdd96efb2ffa8a7a250f391b9","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50-alpha.5","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-PWCR/PU7rFHA0W7j+cuVlCjlPbckvx4VxZJo68+X3gWNJ+CGLlynJqsF4EIIGDRl9dqMDTIj4zNnyzIHhqsNNw==","shasum":"6a66b37d959be3856c4b65656f6c2fa04d4128c8","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50-alpha.5.tgz","fileCount":51,"unpackedSize":73194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNqrxCRA9TVsSAnZWagAAf9EP+wTncqiVKsLEfuTgvo+q\nSmCWkvc8glxr+X9wUbvxOTsvglYvgxw9rkLgd1nvoY3asPSLf9maDvPMttwK\n51e+7EmmS8/d9v92FWSgIDsseDbdDaqW2GkYEWqVv4OxcaymmqGpccbOA15k\nhfY/Hiqs5bihQgGCxzAuXgY784GI5ntV1bqrqTAndGvV2LfPWM1gjR7Mu8+E\nkwtA2QKj1mHFVAcjytFVtRyL7Fzz10wSEuwocRnL9hGNljLIL/tEvxsAMTMp\ntSn0pwNvoQGqaQyXgvpfAo+AOe4fKczhHuqArjxHUT3eUhu1kvpxRzWQvdce\n07kN7qkIVMEfpHc6zHix+e5iZrM2ToBHFBIVn8y9cKIhCGsnCi+LlmvdYNWq\nQzEsPFdQy3ZOB93gUq/yxwVjCBxUpFJ1RLfyrfPUXB7ZoFdaBrSBOhv9V9h7\nbmng4V27nch38P/YL9kGJuR5SWuTmv2qbjQPn2lzjWgoBFd7XfuArpPkFDYV\neUkEfQniqZYDfhp+L8k+oqMBYQSLKAjFoS5baMLDAkApuzMKOjaRtTug7Gm/\nDzZ/JJZKWmnzsKQE/0jQU1Z1f687Zg1rmZBPDlSEmjIcm2JbiF22KSLExf71\nKxmptwQsPkzBIFzOGOqTzb4njCYxC3UbdplS2OIofDPAJDXHqMSUk3K/FGD2\n7KTG\r\n=BTjt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3hgYcikZd/16ztJ7EEaPZvzpnOk7oZ4WoblIGFsuNwAiBI9uWj0uO18L6T+ppHRk5rzFaN++6LugClBdC5QBBLVg=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50-alpha.5_1597418223999_0.48099989877227656"},"_hasShrinkwrap":false},"0.0.50-alpha.6":{"name":"@aspecto/opentelemetry","version":"0.0.50-alpha.6","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50-alpha.6","@aspecto/opentelemetry-exporter-live":"^0.0.50-alpha.6","@aspecto/opentelemetry-plugin-express":"^0.0.50-alpha.6","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50-alpha.6","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"93d1a717290576442995ebe112180902545b39c7","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50-alpha.6","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-u1ptgjmLvJ7WMJmDaxOMvTfZQPQVLVsq14HwqNbKQ7pxK1VORFB+4XRMD7g1GJAoqjsNhkM0okEsfoK8JgUAaQ==","shasum":"1e991ec85daa5676ea6a8f23d797d89a7eb4499f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50-alpha.6.tgz","fileCount":51,"unpackedSize":73194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNrcxCRA9TVsSAnZWagAAbM4QAIncEp53F0XzLUiABKZa\nwWnCBvyDZGBhCnbxPKEWmQy44gK3glBPH1AYQlJBC4VFteqKs0kEEEmeO3cK\nzGiT+riVxW8DsyoV3U/qF8VsNI53v4M+jjFo+chxgQZ+FnBI2UJ9vtWL5Xh6\nZo/esSZGpaueUQ36cSWtUThf23G/AktbrccsUOJyTNydEeJ3eTHiI7aW+g/6\nB94oz4BB810Bgca55TPK0M1ACX3rOuwVep+4SxQUiRwe23q7nGm3J/MzqmPB\nIKg+jImj83ft4ad1tIdKQG+hc0WEKe/Uk2fFzqtKRssnm70ChuZXFiol/QT1\n1jMXFRzVbZMHfrXPahftfQXBaNKxGKVtAPs1acH/IY0AH5b2tpw7Oy7sv7cQ\nhJvmkgBHPq7hsZJyDOIMgyFEuKXKMcKrTZqqSQCLtQHAKtY93My3KD8bFoL7\nN9oHrLKnJcUHLVY0sxhiybY9jNLgjTuuWNMkxsvn+oYlw+3S3q4fZD/jfJh0\nYBgJJeo9sEtNd/hOj8NFDDkS0C3ioTqrZ1g0wHZ0+MJwWL2dOXRUftlFceTS\ngfsmJhojhnEfANysE5Gwi7hq/FdsfuPXdFfXraFQKbg0fB9xy4cLoXUKNbf2\nxl+WbSz9UvhUp5EJxUV5Xny6BWekQCHb/o1wzxtCjsbsLgukSMALZR6uvclv\nJ9qO\r\n=9atq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS9KtFf+hB3LG+MAxi7Ik9fNOaOQRikCEq2CqsyYbdGwIhAI37UsP7ee9vmEDXk157V0U8W2OkBZk7d1XKiJQtjheE"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50-alpha.6_1597421361201_0.7716106013100092"},"_hasShrinkwrap":false},"0.0.50-alpha.7":{"name":"@aspecto/opentelemetry","version":"0.0.50-alpha.7","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50-alpha.7","@aspecto/opentelemetry-exporter-live":"^0.0.50-alpha.7","@aspecto/opentelemetry-plugin-express":"^0.0.50-alpha.7","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50-alpha.7","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.9","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"1d1ef33e933ac1be3c63817099aa121f9140e69f","readme":"# Aspecto\n\nYour API is critical for your success and we wat to help you protect it\n\n## Install\n\n`npm install @aspecto/opentelemetry`\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `{local:true}`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n-   connected\n-   isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n","readmeFilename":"README.md","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50-alpha.7","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-Q8ZmX3DqwvhvRsaOKWG5Vv7Pb7bZ7MlV37qi5crRk+LZlLYyBbad0fry2uTn7MYuxAB6RFXDmA+VIynKaiqVSg==","shasum":"f56e74165ea0844afe196b03c101bf5dde219a93","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50-alpha.7.tgz","fileCount":51,"unpackedSize":73212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOjCsCRA9TVsSAnZWagAAf+8P/i/DFw7CCPg1lPyP8u42\n9LhCpg7ib+oZK2s30n4UzcjEhUlM8Qodox08jB7QU6+KO0JKQOYRkx0so4iJ\nqsjm+zi98HUX2j7ozvoeaELVJIWMnFH8D9/tdjr+jAy3bjYUVdR8xKeEqEXB\niSl5U5PzTpLxXkcr2m+2s5xCNlv6iBRG+HRkCYZqCsyo8pag1k3WTXqQzGFJ\nosMC9FiFwqislfcIenXJqI5y3m2XW2caQdg2eK5LcP+C7FU8FA0CxaW7YVrN\nkREcksibEjsoTMhWcEQPBDCRbpKFqEUBBcOTE6kGS4KD89hF7kOTFtJKXlyN\nLtJ181GxfRltIWkvjCQmScCOxnorTA1lQM7Po1JwgG52SZDje/+ABuF5uQpo\n64u6lvbDwjWWC3S5NtvBmqXqfvR3yK9qkVpfMmxMaTPJaKvkX0x6dFsbXsf7\n6jY1qKeoF6TgFolMWpmaI4671skPTTs4vDlAI6PjFk5THQNIOPKabaQ8y4dw\nko+fsNoyk15Z8WcunykBBDmOXxHTi9oElViviZywoCsOInLcPqDdJPz+ZWwI\nTbgCUvSgqjVRx3KBRtsYaggqsLrMvSRFcll/g2RqzkLCdh8EikbLOcRBqmXH\nchXpxfGMJDKb0aWacbXuoTCJv8MuCJ0M6MBJa2NjLbFJbESyGA8e1DTscLMd\nj/Qg\r\n=DObx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn62Wb4Uw1QAp33cAIGmt14LfQ0H1vDe+HkwaRHgC8cAiBy8wzm/LxYLweEloznEdoH8dK+LciGswh4DeaxiJd11w=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50-alpha.7_1597649068313_0.3916680976411824"},"_hasShrinkwrap":false},"0.0.50":{"name":"@aspecto/opentelemetry","version":"0.0.50","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.50","@aspecto/opentelemetry-exporter-live":"^0.0.50","@aspecto/opentelemetry-plugin-express":"^0.0.50","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.50","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"5f561443f18526d894610baec555262ed26fbb84","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.50","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.22.1/node@v13.11.0+x64 (darwin)","dist":{"integrity":"sha512-UHxoyn59rJEzh4EScBPWVp9YYBqfVeKBx+QKtsgA616j8JZhobc0pwXooZK5QFiLcSTgjpZYrgYhki2D3ouUHA==","shasum":"4596c4898e38eb169722e5f11e365e5cfa4c806c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.50.tgz","fileCount":51,"unpackedSize":73161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOnvcCRA9TVsSAnZWagAAHuoP/jvP7vAsI24R1iNYUJuI\nzU4Z5pzX21PCOPK6fsRiycQOIxQ0NNBrrUTv/QAteGlNNpRY/SxwBe/qAE/g\notYWN+Frr7Rfoir9l/507SuZEkfPOpQTF2UNyaNK3z/2pGiYkaKEurVwq7S8\nTlrX9N8vLDWIBeTlDM//ebBhLQPw3OVFb7dypbOjN2fhNLjYGMXTju8UHw8y\nyJeSuSH7Xp9v4Vj8BJ4cS2mc0TyAoz9YVEzg0tZ5LlNR9HW1bMhKjLVs8TuT\nTZmOe3Of0NVfQTm5nA6W68YXXw8hO0M+pNaH/ui2cX7/849sYcOdXnFX13lq\nK8TUxUJKen4Lu7qr0T0JdWP3Ti2WhmWC+Fi3uvaJm+xlSuM+EGk4WGagIESE\nABDh6DF1FTQXePQj3+GtXAeji78Ze1uFjPxUhTgUJumfTBPz4TM46cmjPvVL\ni2wH1PO/hN3B1WdWMiLur+vBzqJZe41GF5S0ffCivJ65ZtOVWxlt0PirpvI5\nvz3LSwDTFXiFWLLHPRM/uM0vqnUyAB9IepigJzlP44R/MLY1IVEC0Qc9tZ4v\nWdQ1CX9GOrrSafdoEVV808p4RhPHVzDcDWYhrXrfgR+FnC5G7N7lxJ6PibPl\nWd6jCTOanCD3HQ2dpxQ9K3Cg/LSD6STxPWJv5vk5ZzhJUoUzL7wn50yV6RwA\nyO/g\r\n=0GEm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFeq1RDy105cLqZxI7DNF8kiBBh33wLX8wKNo82J6q0gIgUWlYxMjyGy6eBJH051W49yC9i+2Q+YAttASTMzs+n+s="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.50_1597668316074_0.7287355223643301"},"_hasShrinkwrap":false},"0.0.51":{"name":"@aspecto/opentelemetry","version":"0.0.51","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.51","@aspecto/opentelemetry-exporter-live":"^0.0.50","@aspecto/opentelemetry-plugin-express":"^0.0.51","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.51","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"f8bf2bdc2b302e408749d056ed37be834a3a674a","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.51","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-CQK3BfMHg51rpW0J4qih2FZiOgzaAv+u5B+f9BsxryvqeTh8qJfKwKNlSTmFPZXiXDYfJSR07XXU7d1Ps0eSdQ==","shasum":"41f81575aa93a458ec27304a2e8395b7f80a56ac","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.51.tgz","fileCount":51,"unpackedSize":73248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO6AECRA9TVsSAnZWagAAog0P/1PS6ZsUGhTHl5pQ2mXp\nblVJfARYKUiyQ2GAVuGdxrIru92OWXXaqii8XGDzD8kcbXGblCmEVWuymZgx\nnJwGfCAUyaXAflY566YEwSf1Q/8so37uv4zMEeoemBC0jTLY7goK15HCObA3\n+U/I48vLlmULnBslRdMSf04f9wnu/BMmpVjugbrUG0eL4qFYz+R4SuOp8Q5n\nI6ITV+wdH9Pz5Q/inFXzxXFp1AUo0QeooiMjVTDk/0vPA0cYhcg/ZwGbPfaG\nxpca31f9pkpyNllUxUrkugQ0Dox5EPiMWMHFAhLxdAfEo+XPAP6AiRD0NI3P\npifChrsg5SPB+I70yVMh6dw9J0GG+tT+WD+GZFwr3kbV+GiV/cLE1D/XGQJ8\nVDPUNTyZwq/hPUeYWOiTjZMWpUm+SpX38USghiZbaDmhT3AC1UYjv/DNdeFK\n+nWq4/lVW+Fo6LPQfDOphEsHdQM0or23aZjEk6VyMawlBQSfl7WaS1cLNYbC\nzYGP7gLwSHZB0x6HFAcY1h2cv59W0Un/a65vEWvMCEhent3hs7iBaRSFOWeN\nSdChXO7STT8sHUN13/aF0pmNq8wtlq4r+BYFvoVOyvQQn57vqMYzun7PQVmB\ndB6Tgrp6YwKx1kO3m9EjrHCP/IpnQ/Jv0TbHKPinH6BON9EjC43/yObOwHSa\nKetJ\r\n=fFcf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCodQ07fPCiKV2Bcuiv2TjTul7YVZl+Nis+araoD5+jFgIhAIjQIs8UlocEKDG5sreieNW9102nNFtA151nB2O+3g25"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.51_1597743108258_0.47108153976787026"},"_hasShrinkwrap":false},"0.0.52":{"name":"@aspecto/opentelemetry","version":"0.0.52","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.52","@aspecto/opentelemetry-exporter-live":"^0.0.50","@aspecto/opentelemetry-plugin-express":"^0.0.52","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.52","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"6fd6cd432b12ced570d5a1c7fa5e5b36dde791bc","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.52","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-FKxaCm33prIEGKITOzHcvXtqyv1mHA4OA+CGoUydh2dLiK0VZh6pyvrAnlQBFO0Oci3Cjyii2mjJ1UsyQ/cYkA==","shasum":"4389c93aa8e93f845842b0a86d5f84b2a1becbf3","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.52.tgz","fileCount":51,"unpackedSize":73248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO7L1CRA9TVsSAnZWagAAXIAP/23tdw56QyIMl2SaPB92\ndos1GSRq8AdbesbyqEXvowEINqPDK4mIegNwhu4YgaeCQnC/w4FCOZBfzah0\na+sEyjFHj4ikcOkpuSo9ysVdXwpyigyLI/yqDHX/aSlNMpes1H7ZtiDlnYej\ntVUOHnBg95KMpKxbfJFDC18Ikv8JUFWZY0bMaOhYU5HrCurFTPkxBFsmnjcO\nTqTyj+zbTOdBIMtUA+dVggK1ptJ/aEKzvwmeLuBJshPd2qtnWqroLhlKj8PB\nUBvuzaLvpu3i+2coonG/91BgCmLppb/zvklLMGKvXYB81CIJw+T4z9ssZe4V\nmSbFUrV2p0NhqXVPkp4virOOwJxxR054tWGvgSry60WwcQIb5bXpfY8gcGCO\nldVssEQ0ggZ9uhhScfTQYnJb669kKC/dDedFkyyFD3SSXciITWqPKbvG3/kw\ny1KT4hfu319XFdW7N9KEahDiMWuLw9yDE58QO4Tlz8lhHlB5NpLLmcR+oiJx\n8aHCov6Aq4GsA/geeL7HyR1iiOFmcMULDrhk4jjwtzxUcP7dVkiM8yr8jqrg\n3X94ylzPFlw+1h4/ovHC3E7f48NJ/j4I+YOBgaM2wxJw9GPJW5A0y0axJhx5\ncrapIUfrDv0mR2JQzCs+mr8YOI8tAyajq+KU0jSuwvWpv/wRyzieQjT75tKp\nWNsl\r\n=KdnU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtKb8NkFe7w0/qJ1QaiL+cC+KvhjWH6Ljzp2EHg78A2AiBYLw1UnAHe6eoDCaYQiQso/s3ruyT9Ak9EU2GerxIo+Q=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.52_1597747956543_0.21904826889406492"},"_hasShrinkwrap":false},"0.0.53":{"name":"@aspecto/opentelemetry","version":"0.0.53","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.53","@aspecto/opentelemetry-exporter-live":"^0.0.53","@aspecto/opentelemetry-plugin-express":"^0.0.53","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.53","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.3","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"2c9c9afff550e929c2715572f5a5485fcf6db4fe","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.53","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-78DzWBUswWcZGDndMOAeBFAK5xGYGdHPceMHWc6GoOKXANEEBUWO0CIo44T/TF37gM6HYN0HwwtowG11mZzbpg==","shasum":"b7ce948ceba1d29aba1938f33824a8f57542ec93","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.53.tgz","fileCount":51,"unpackedSize":73248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO7NZCRA9TVsSAnZWagAAtNQP/1ZWoq11yZ15si322c/+\nsH66isQfqLIphhvgHn1yo+3iLSucrb63xDrZ7axqNNAh3W+XdyZoxB1AJy2m\nNd8QUK2F9+5l2kspk7iBVMPCXBhF7k6oZOjus83Ez4XDJLyONDu6b3vuTgjI\niN15qUlgL/wFLf0RcJznZ9yjVLX5vpuwke70/PwdfdS5i5GdfP3YvL2iUtqv\nUxGaqU7RSi4Af16STScmPP7Yh8ipJEmurJYl3/aKXmzwzovzlsCqTuSy12qN\n7iWDiWrX6zbCwSUkHD8v5XHd1yubMSpM9Jn6PRGpNtm7OG8slLHzitdcthqd\nBeSuruScGsSxRiRh+4yxtoW3jlljJq4t1zHM7k/sFi4qlOSGE6rOzIhapTI9\njHxJ3Xh5wV/m26zEfkkk9zVwxBxvD7IRV3Hw1rT5xqKBGLR7VMGgYR3NXZZn\nRCaJ/3aTl3lsw/9D7g5vW5tF0ZnzLdMe7hSWX6/zTxqecO3wM6l87pvwT93E\nXTzcOvKFae2wFp26XvpAq42+BEBuY0MMELab+lFMsOc9wDIVI/dI6BbThjwe\nDWU46ogoZDhWZ7N/DgXSqVig8qlFgcK3xWFmjdQJSD5Hn7tR5k/38xd6XoDZ\nGl96qnpIfCm9JlbZaXeER34QajoitG/u7e6gd6SoB5VzdLcJgnqanlbu9In3\nTfW0\r\n=ybOM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkNbTORfnJQTnjC3P8QXRSMKN8hsWr+/caF8DswxnzYgIhAM1WAOVy8uGKIp29korIpF706joT86H8ylKzfanbFmsB"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.53_1597748051303_0.013587955508327365"},"_hasShrinkwrap":false},"0.0.54":{"name":"@aspecto/opentelemetry","version":"0.0.54","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.54","@aspecto/opentelemetry-exporter-live":"^0.0.54","@aspecto/opentelemetry-plugin-express":"^0.0.54","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.54","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"3.9.7"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"c424155678e70633825f98642dd241cc97885ca1","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.54","_nodeVersion":"12.15.0","_npmVersion":"lerna/3.22.1/node@v12.15.0+x64 (darwin)","dist":{"integrity":"sha512-ERsLhb4VVrbYME2QZFtEr0/Qw9Gg5y7kUxhzaT3NBskBZMSPmWi/dEPedlNRI7h1qtB7uanFk9JK4SfViYGu4g==","shasum":"28cd71d1e68183d65ceb4a6179dc30636cf1d658","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.54.tgz","fileCount":51,"unpackedSize":73334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO+xcCRA9TVsSAnZWagAAgSkP+wTqygQ42W7iUQaQ4DMe\nhUdvTUMuJnJsnTapP4CNQO1xacMYH1b36G5eDaWuKULPjeaPi0u0ZMwnIugc\nelR49Wq4Ts1poSPh78BHysq4CKpPBOBk9KqI6wBNn3ZAQwOwl/UejsVegSm5\nM1LHOmsOyPhuCvrtqp+6A+F/ARW/SOxgrSZooYUAPSnot1Xldbaq3gjb00ff\n8pjNKPDU2dX0K4djwwpIc+RxotaEI4tnEChyyqBoOHCeC63fc7OAYJgJ0CAy\niFC5AYIzzyfL8lHdEThzhzRZwUkC5wmXd+nG2TDUS8VZqronO4ra6S2sq571\nOoBf+fP67qbA2ep1ZM8+f+b5vwIC8nLLtbd3aBxipG+ahdNqf/kEInsFOyOb\nJgRtPG5jisjeIoMriLvQMUxkCeT5kji9li2PgQetJmTat3vPcGBaQEoC5JTH\nXgLiQNgDhz3WuX/eL8cguLNRaea8/haaG9mCHDu8w7HgMGunAVLveO2mHzDH\nnPj4ib2ddeTlMEI8HRaaJNwI2qhQxVymShqajc3sS9moh8RlenN5ZZvimXhi\nNxBOnT5dC9ie21oC/uesC3Wk27JXNFPhecJ+Y5bnb4XZc0kQbjWkkrZ77mxR\nMnSwpVXj8I0Zc5dEXi0NSmv9rCqakqs9O3ymR8mYR8X+IsUP6THco1bDRlWt\n5hGR\r\n=ky+h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/qQTwfVPc6fMng05YJcrp7SCZ92IerjY9HtqVOXCsDwIhAPQXBD9lJXhKL4gTOkhvxc09w/5egYSeIAy7NtBLf2Kk"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.54_1597762651659_0.8522092116737916"},"_hasShrinkwrap":false},"0.0.55":{"name":"@aspecto/opentelemetry","version":"0.0.55","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.55","@aspecto/opentelemetry-exporter-live":"^0.0.55","@aspecto/opentelemetry-plugin-express":"^0.0.55","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.55","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"c2a50402af1a032930c29dbeacaae27176929c5e","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.55","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.22.1/node@v12.13.1+x64 (darwin)","dist":{"integrity":"sha512-bw6B2lHe0MLqxATDEAGJIzEkZjIKZE/aHGb0aMRDg6OOB6SWSfE2j+kTpZiTYtw37GbPQ4OC/wm1cOQS3Q5/bA==","shasum":"8f4ef844c8b0f26efb67f3d7c5cb186e3e17e1a0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.55.tgz","fileCount":55,"unpackedSize":77000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTmE9CRA9TVsSAnZWagAAQqIP/3ErxFb/Y8toPHcNdwxA\n5DYnD3BAhpHVDM0Oo8z60dWyOws9MYRZiUPhUCYibZPIruxf3HHEAJhGGwbr\n3TrNDYkveWPIvQN1K24hhcqRBg3Gk0mpVKf8Yt9k1EfVGXrzGnHOqUz94ywC\nhjpnWGTK2FNu0nX2CQxFw7/tcYh1PPEgaBfXJ89Q697VjrbIV7Y1ju3L22ZV\n1Ip57BOxYlvU4WHzzF8VhCgpR8tkhmRDnlzyN591kv/fMyqo18H+AHGRgyIs\nYrtjKH7DSX7UUEguhlcb329wet/9Q5B1uUj6vP/zdVDedtuVUDhQb40WRu5Q\n0DcluIu/UwBJirpIgBmjQ7+zbM0iJ94c4ZYuWnPei0zmBoxfLn9Xk1SvPN+G\n/mk2Bu8PgR5u+bcIUGOaloe7ZelzDn1KzJZ1Vmwr8v7Ajr+DBhrwjYVW5smK\neZHaQ0ns/VfRgLKr36I9PqH663bvIw5KxD7D5JlbZYtfLfDS8t7j3UST/isA\nCbmLdd7XG6jdoT9LzdTPTCcSP/xyvdKJKOnSRwzYRew6uPbECe2Iu/7QWwsF\nxiCio0WFQ1yjfGU6spUV80sNAiZf+z3aXaJl2YuJtIL/+i8fzXD26JYiKa4K\nqJuuO50UouIltzciAGCOxxNtCGCC/0qBVga/AQ0XmuKCWerd/8IXXN1tBG7V\ngxSX\r\n=NDI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD06VNKXpcAOiTgjgiI2yq/cnOLoyCLANuHn3Jo/iXNMwIgWXeeyJ90v/1WtMHiOFGM5De/JsAOdFRxcsyyrLup/Es="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.55_1598972220370_0.9410366570690021"},"_hasShrinkwrap":false},"0.0.56":{"name":"@aspecto/opentelemetry","version":"0.0.56","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.56","@aspecto/opentelemetry-exporter-live":"^0.0.56","@aspecto/opentelemetry-plugin-express":"^0.0.56","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.56","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-dns":"0.8.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-mongodb":"0.8.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.15","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"10492b35783b34a401437e655ef2eaae45ea763e","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.56","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.22.1/node@v12.13.1+x64 (darwin)","dist":{"integrity":"sha512-0j2XJ+k41t2vxPSTW3Bf6txftAsSJ3TESulDESkYXT1BS1WjGBp8Xm8dfCjKzZS3jf9FaNiLrLJvPWT7MpzPFA==","shasum":"6db751aecdd25c5fd1786099c59b348728e23feb","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.56.tgz","fileCount":55,"unpackedSize":77086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT7t/CRA9TVsSAnZWagAA/1sP/1d55+ffYn32HuJYUrqE\n6OV+cHumQHh1x/iq2XoVqptAG1PEtxbd61RAKtlE7rTzzSq+1/jSePIbv7Z/\nliBBDyULDiqwzYvT9DX/qWW7OvzwxpVzh6Cq/Pkpw58CzQOsEbFmNoIQy0b7\nu3/HoLbFDPVD8dlHqnkKjg2GqjVgwdBwmHknUH+9u8y/eX0efCoYVS35/sHR\ntI8l3nN7SutY4j0ZFmovZB3wo6vQ9gfbx+MCIWtmO0yXoCmO9xqGMKmbg0wz\nDubLQ9vkp65D/8+cFkKnxI13PI1Yhgk8/8EY3wCTycToPLXgqoZzx/H6iLNi\nqA2PO7GZkmxwJvN04+quHEKLOzZttyYl0kGo/VS/9zkMbT44iXVbhedo+5xK\ntTeGKxsTimniL2WBkAKhDoyaCOss3+W3/+1rP05I5xNuSFs/S+a9GR48VnnT\nTDSArO9Ry37PRi64WY2OeE2aj6xMdaZc8wW/yvP1xBBbQ4wWOkWPUwSLTKrh\nRSzmGztlmm41EzNxpNvygKgVed7+QymltZYcaX1dPSoHm6sUo7UM4NzXGUiR\ngZUsKBKc4UHRrXqMzNdPbanMADnLZ6G0wb9iYQtLQinU26+fuhjUu1sianWQ\nx1MVGrbICwL9xWbkXBtCYdLEnDD5AZ/c9ASbwJ/cGSioLAAgLQ7lm6tmlaZL\nHAJt\r\n=63+H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA37wAuApQjCExNFOLFce8KmVmcmq3lS6eTTsoUKIC6AIhANpxNL7xTK+V0FRXSl+GxHNP0HKZt+G875zn3jnKVlUU"}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"}],"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.56_1599060863117_0.332774384092118"},"_hasShrinkwrap":false},"0.0.57":{"name":"@aspecto/opentelemetry","version":"0.0.57","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.57","@aspecto/opentelemetry-exporter-live":"^0.0.57","@aspecto/opentelemetry-plugin-express":"^0.0.57","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.57","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"a9728dcab4e6b7c8495331bd6421c6bbe5a0acee","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.57","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-V3xUAwMlUjjzOR04G29JvuLqD1qqIIehuK2yrkTnRcZM0azjQf8YQx4p30p/8aMrGnVtorbm9duwAswsZHNfKw==","shasum":"85c5c9a68b37769cacb8462aed57b77953b5f219","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.57.tgz","fileCount":55,"unpackedSize":77788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX4HMCRA9TVsSAnZWagAAVsgP/iFNxLjyJt/qeVi1dMI9\nAX7mrKMPdeelUNWWP+l6OYHmtiLYJFDkL4IKKN7JRYOLpYtTHbA+44h5Ca0e\noiu4QSY7Jn7Pl2Ii9eSotPSk8re7BDNXHu0ZHegQW3vvf6JcvOYqGAMN0vAa\nu+Q0qBWbp6C01huRk59cyWUGc7J5HENU7xbA8fPGSIA93mFd4M/dp53tk0D+\nx7L6K8fDqhZgP69nL3jh4nKAHGWDuXVpk6xHQKWMp6Fq3R9l85VM5tx9U1yf\n6UjDkAbJR2q5EIQte/2JjbwLDPQWvgpzhoaU9pDL/mQk1YEIrENJKZdt66nZ\nWPPBtzfsEMV1cH7dObYRqho/dZAr54V+Ga1ajPfhF3dJpvd+BCReCDpozsqq\nUk4X21ZKYvjcFmMlXgIrkKiAMPXb5RGFmj/yEoOtjP1fu7ghEX4amiS6dvko\nNYne5WlpKaBckpEPCqnXEz6JzsqnrbW7awOWkAztr/9tYxGHg61VeUnH/5sX\neduDv88L8Qr5wPf08s3/zO5+niq5hDkt3KO0Hr0g7WOLKZi/TlfqlcvUAa9Q\nEyrHhj78s5TkUHd0jPe60mMPVoewQFtfPLtMvgn5d9FzoCwUZyaSFpFsoU6c\nUU9/pKSdb4T/f5CCKZ/8Md4Gt1/lD65Gbs/g7mauZo/mBCPlU47hKdhKyCmP\nbGXo\r\n=zJ5T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDH8cpGIoiyn9A1BiWYHNApauFvUPUq8SwYJJJTCAQwMAiBxG4vDJFspMpZrWRDUWY1Q3OSNaTzgOYrothVxX4qiKA=="}]},"maintainers":[{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.57_1600094668337_0.6501524677663477"},"_hasShrinkwrap":false},"0.0.58":{"name":"@aspecto/opentelemetry","version":"0.0.58","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.58","@aspecto/opentelemetry-exporter-live":"^0.0.58","@aspecto/opentelemetry-plugin-express":"^0.0.58","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.58","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"60e30fa88c5934eef4df40cd563a407550f560e1","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.58","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-nUdrY0pAXDACrgheNvsfUpB6fWgYevIKMtdJuJZtTnMLcJZkMkmLsNJM2FFOO20HTXPVjcxOZXnBNKtdhvCTDg==","shasum":"f361d5bfce203ecf5cd8c2ece2898644821a3fbe","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.58.tgz","fileCount":55,"unpackedSize":77788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX46gCRA9TVsSAnZWagAAK20QAIUurnPOQtbwQApl1u+I\nfKcsgdtcdOgmII2zCNkZeBa3mYQFxWHx/vYteIpX9SvLEl6x5kS1ZEZGP/Pe\npaQBNYW7AvNhZM64COA2bg6fW6DK+0BTz8H67i5LgiIzYVX8MQkY+6+mo850\n5m4H8cTnrQlIkwV5/5/ExcJBa8qmiVQJx1qdbggrmiAEL/HuSbp/GNdyKeIG\nt12FYKj9ObfjAj4t3k95J7CBgCrSZVrIBzvE4r4m2vGLnaVSGRixPaazZy+f\nRlPtT2RcBfKYzFJNSIJUe53/NrNaQO0+gZBcc9Wf9wbJv2JS3s/uuaVJimPE\nzamogGy162Uon2nEAeyqmLjO2WRgTcZPcwV21w/SBt02v3DqS64XNjioN8Gd\nR/LgQlPsyHeAQar16eLLQsycH0DrxqDwEjrSUnGqLezZrvbx3eGz3tKv99Vf\n1+n3EBrCwBrJYhO1vttJKSgYTAQbvoCSmOnBB2//giBQhBVfs6cVwBGwS+r0\nRHDCuy/rzCktdJvuuTR51J4ci1Xm9s+2aVNBiWrL6VWlSbbbjafokrDIXboJ\nFRXAMCyQqx66eOoyQcdhTvMilRXdxrP/ysJjGTV4AUmeZ2t3t44aWlevGsQt\niX5e5DbsUlmzpyw2Ptn87VxVnqvzE6jXn+WtBOSbltKtOfTVXJ6gRYMHh8KN\n7MX2\r\n=pBgR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc2NiV2JeBPpIgTaIMyOvKFMqJfpn3Oo3a8g7DxbxBqAIhAKwebMDCioJyw9b1zETMz7O9eaKsoYFccaEY15XpiNyY"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.58_1600097952082_0.9911823150161825"},"_hasShrinkwrap":false},"0.0.59":{"name":"@aspecto/opentelemetry","version":"0.0.59","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.59","@aspecto/opentelemetry-exporter-live":"^0.0.59","@aspecto/opentelemetry-plugin-express":"^0.0.59","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.59","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"46d491391882633779a97e6701ebf13ff324ed2b","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.59","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-bhyuNv4O/aEPIe3OoNhF5EDkHYfqDz+j0AZcGBJv2ljer8Blrk/fAm2/fTxfNe1PJtswVT+PTGjd1qVpNbL3sQ==","shasum":"2179637f36dc2ac5d238bca0028e4704569fe07f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.59.tgz","fileCount":55,"unpackedSize":77788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYfZuCRA9TVsSAnZWagAASnkP/2iVFG8DuLvl95wU+KuA\n0veKWdrN2LkCjtMiyfKF83GeJP/M+1AQ/LKUw2eI/n+oY7ucLS8G5jNYBqeu\ne7RQnlAg3UWNLYuI+AlDVz9F3x+9jbX8pUbQohHyn0pDArpA8QbAcoKcHF02\nHdFY+sR63OC4tjY+r9xleZ1fR8g2nyg6OBHx93yEiKZ7WsdoWPbhG5kmGGk4\nVfESkjNrjD3zAh28+bkbjgnvzOayKoE1ebKxb07KcKNt9JFhUuEvra9n0hb3\nkX32JI6exddcaGw92TK03R2KHPKMoFHCbsepGXPE97d/b7VEdhHg5ts+NExT\n7zil+PTC2zRTevgBs8N6Zf72rOCt3+L5BL3ltFXV4Z/0XlZMf3ovQcNvlHiy\nsL+rTDjy28U7WxSCPUsmwSbqM0BZgwa7Na6qjyWIg+6fOHTdaQzim5Z+5dUp\nTcgELPEVUmNZbBFPtDDToDQWGhGlEKPuaoMLh8989hgyT8hQYBEf/pQUGhIz\ncipoae3ogMxcS8wR7fBwamEypl+aoxNVdgxUqo5YSTGkaTTeFVpl5vhQY586\nAQWGYuUshDmorwju8QqQByFnGvsyOzreaq7KjMAaQiHugO2HoVG5fMHq3QDP\nGv8nJ3rARiNnnqgBLv/3COzyKJ09FeEHRzVdRkzNtuxZrX60xNEmaiXIhUwb\nsQ6M\r\n=ZYGk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0cPzDOHuH64Fmk8YSdx/Q6H06NBlW7E5P2yv2AciQmAiEA+rBXyObR/RAP4mKXkBN4VC1wBL3S8agO9fc2S5KOvG0="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.59_1600255597860_0.24278043238920022"},"_hasShrinkwrap":false},"0.0.60":{"name":"@aspecto/opentelemetry","version":"0.0.60","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.60","@aspecto/opentelemetry-exporter-live":"^0.0.60","@aspecto/opentelemetry-plugin-express":"^0.0.60","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.60","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"03703e29c81254e9fb3cabaefce7fd0145e6a77d","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.60","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-7vdogfasbrtJd6nAlktpjFHpthgZ+ZHSUbNRBXNAsWCyA/eng8kjoDlvA0AXQFB67ckE0mluj+wdmQH4suld5g==","shasum":"c1d869560c29cffc571fc3f97e42adfd3800ed9b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.60.tgz","fileCount":55,"unpackedSize":77788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYfivCRA9TVsSAnZWagAAE10P/jDaGgvXEHYGnEkBaT8x\nhpTSVArDvAHeCur2JhVf6y+gIZc8XddX11RANifT6IonyJQ2vIDqMxOtl5U8\ncmlDuLhTVM3GQuRfDpDr1WFA3bKY/rD7jYCSgvquXBooVTVtKKcnVEDIw2S8\nhgIMLcXeqgvLIcOLWEtaC8EhID/pRSsp10hi4yWEFRKigLrY9oACRcZiagvL\nk6esx33XQ8T1qSSFvm/KM/iSfPEockrI+IqkyDKCP8okl0zPXby0BndwcVc5\n4GGBHo0kiuvtFrJUaeNXzaFXc5KnhzleVduQc0uP2Xin8PRwLOk6g/+r9JVZ\nn72XZfi3VpvD23sZn8oqYscTkiuPkEl7pzQx97fSF6BwMEZ2zXPk91FLd2my\nhfHuqeF3bDUlMAqv6UIO7PL6tRvtFcyOvmZjb/6inleC2ZZbbgNIHKlRP3SZ\nnCAo4aZ5lgt2e8lqJ0PdMs+u6g6D+S/6j44Vso+C7wu3zjJ13Ssz922822DH\ndPqNIDgiri2fNgMihq9xMcDfLf0g3A+gMzFXKv9dSuj8h+9nuZyryonHz3Qs\n4wrKjHCgzgsC69ibU79VYeuF4eJpv8Y2FfJMGrQp9QxEPAG1Ptvi/sCIgH64\nP5xmJlU/p2b2E/y+yuuilJ35GahIhIUlXdQ4dHxAo0AqktRos3FjsL12gN3W\nac9i\r\n=uHZM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcFF1P3pqv2+xgg0hZlra6Z+OdGOiupnRP6nwFFWwD5gIgGUpgNChMJ20UJYN6wkQSV2+HW9eQA6iwjuabjk2dtug="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.60_1600256175562_0.6345522293358381"},"_hasShrinkwrap":false},"0.0.61":{"name":"@aspecto/opentelemetry","version":"0.0.61","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.61","@aspecto/opentelemetry-exporter-live":"^0.0.61","@aspecto/opentelemetry-plugin-express":"^0.0.61","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.61","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"82419c91cad6202499b48eeb0f891266ca9033b3","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.61","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-FMsfMw5d8rlMyWYYxAeE00yT7gKCSdMW2xzClHFkSLsP1AQmxvJnmcrQi9fFNQfjIawpwPc1l4/ieFNZopbJNA==","shasum":"80e5a00cb35896d3cc7ed19252fbe57fa4f55a67","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.61.tgz","fileCount":56,"unpackedSize":78042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYfy4CRA9TVsSAnZWagAAFwgP/RGAOhFGjPuf97RrMDUh\n7oTN3TMhexBtOFH2wCnbiF5Bt9sHm7oyITxgtvxOPMIxRXPDbTO/dyhqWnZD\nfnFVSVw0ay4MD+t5KcE7Uuv8GcFRhaeVj1H3Q9bx72ztPzRL26YGUvOyA30d\n/DCGu+5Z1SfjOlUyytzhHfDg2qzVypwg67Pxdw0Jh3nXylRh3m5XCkEmStMf\nyNCBLQ2RlXa8GNQTf+9IL6O0ugMk0eaf2bdvuwpMzmRn5BFFcuCFrb3S349z\n5fL0qUKIjzUaTbnDM5MUNmi57H1WQKqWnVcAEedFkg105qq0VHNb5mtORjnw\ntIpxDg8Sw27HJ7+VcdSw8EPkLaMS01u4QQFNKIZaJE/bF12xwWAoOtK1feVp\nTJDaM5uRRmCSQaCrJSvpcZMmCRuiz0fwxB/BD0tNRVBb9MPqFuiXMbPNKJGK\nFS20cgIRkLX6gREbTA76xxamMutQ2wNz5PZKzKQuHXITzXT7e7hqkecQDDWp\npKWtC0HQt7FHNYDWhUSvr37CL5rvmRgrRpzaoAuLvL90vSZYHnsmeQyVzSeb\nWb2wCbB7FQWQiD/7UqV+Y1s01scGfXm3zsPIeH3eK2zUPzektjAvzHb4wFS8\nDX8pyV2sQI0z7n2dIXq0ofPZNYta3Z1APJH05ooLQ731iiqOmWIotjlOysYy\nRyDZ\r\n=d8oL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt5+cRl6ZmFOZO2+ZFyotaSznRkOxM0D+dLJwm0fVuDgIhAOu9Tn97RlVvCnh2f7OHAHVPJK63qH/CpsKcCZoP8z/w"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.61_1600257207685_0.8782783254001085"},"_hasShrinkwrap":false},"0.0.62":{"name":"@aspecto/opentelemetry","version":"0.0.62","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.62","@aspecto/opentelemetry-exporter-live":"^0.0.62","@aspecto/opentelemetry-plugin-express":"^0.0.62","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.62","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"a290dc457b43ed2c456013b30a4232039a015443","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.62","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-sPcThAsbunFk+ASgKOOwK2CMGwnOaHI65dOdhdlA+6GJi7YFvMsKgLBCtzXa9/bkv3+2rSoa6eVjdnpFUPBoKQ==","shasum":"18186b89f941403a70b631e652b5ebd369e2cf6a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.62.tgz","fileCount":56,"unpackedSize":78134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYgMiCRA9TVsSAnZWagAASpUP/jFH67VEL30OdX+LSeBt\nJkXT+E/kkzczP283u/j40VAP/7KBEN7pkqFmnObnM+KW3O6aqRxlTWHw9MG/\nRXXoIRWldyG4lXST+j4fJANz0T0ecuLUTBBOkzRTLptTfvJp97QGO/Vgst0G\n1g4W6ZBI+N0LkryT7RcJvRALr+nH7B/AQ2VctxkObBp9MceDS6r31mXCdv07\nOgWAcO0VzExn+/h8VxfZuedrz0+QH1hFtPRF2+bf9qQxpjBdsyR8h2SohxG/\nbL7Q0eT8f/amZR1s6oeAwSciAAbc56HITiyQFteGKTicBT7BbHkxRa9OfqDL\nc5dhiaOmsSLa7whSorb8ynYtYPgJqyI5YFuA4pzM8rHbXdApKas8eUGAvf/F\n2jqDeqRDwPBU6AH6Slmw4AbQQlcZkeyzwbX1R9JK7NNdWohSL1zqJJ/c4xBz\nmU5eQuguMdU7ckGmaQHwoJqdo74YsI9xxWI9MMGsa8oV8PKD7vplqwcskwMc\nZ56BaoZUiDV2FwwAVkxBvI1SiqOJk/toqME5jyLkhcWOZfrrfOnApJGtnOnm\noc/orlIkAx6xNdHEZaH5PPyNM2fmhPtPscQQL1oN66Gjg5vHSr2C75GPMae3\nproVZBqJxyVsO5RNzIsO9KJll97pcDKUKTAkeiC5HX1mzz7LIK/dkih5eprI\ndXEW\r\n=vHHv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChA5tVqfuD3g+mikk7bhlz/kFkkLMlkBypNJCZ0OjTLQIhANO1rWt4c69+4zrAReQWgL5xzrGVf63bKaCEPbdocQNK"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.62_1600258849614_0.6640265846220892"},"_hasShrinkwrap":false},"0.0.63":{"name":"@aspecto/opentelemetry","version":"0.0.63","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.63","@aspecto/opentelemetry-exporter-live":"^0.0.63","@aspecto/opentelemetry-plugin-express":"^0.0.63","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.63","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"155967e36db2569ddc769e482c1a20a128718903","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.63","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-2AAHz3FAPrCD3EfBBOa5tzR6p32auzrJC+2Ht0fUo589lWiOqggft6R9jWyh9JMzy6XPgeO+bQDYtN7A0tWFWQ==","shasum":"17fe698b297a6f0b7c2e00da2afc2b2e16e6baff","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.63.tgz","fileCount":56,"unpackedSize":78552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfahdECRA9TVsSAnZWagAAJ+EP/RNQFOxkqN/Y63lD3CXF\nSHVA0dTXwDz/Lk1xTJwijW7Kw1y0CZPPdfkU5Nppy7vClaFK8tQJS6GWM9AV\n1Vq67NAW44mc51UPARi0tV939fMQXg3w25cw/CHqUOlG0u2DWTbtPs47Y0MR\nzn5qJ3C4zFf0LdALjmylxieKEcygYds8I+Ei4CHnNaEODZ6xvqb7bsvfjF9I\nlrrdmmNxavdVzDuKMqSVj0kCt8Dqe/jJRqpM5XflZGX5aPJbbAMYKNSivoKr\n/cI423v7P3IIbVZttRB28ef18zhWYNVaFDeUW1bkFPnlc4khIQfvTmOxEskQ\nJnPfyOj3hWsRN9D1oUCOrudkftJXEvKmsC7K460rW1ofbT32gaCRB/h0gBn2\nReuTZ90ny23BRkqYU/ut5nJGlQok7xqlzltZuZtoPF19r9wT6nItgsfVx3wh\n4dNwEYKLa7+yN1A4RaktHtC8bSiR7mtt+S4le1KtBjHy8XNhn9KgMLBToKmV\ny4VTSS9AKHaCcMn+8+NTJaeeshnR7qDl+kCVeEvnoW3eVPZQhBrgY9FU7DQk\n2TXPrT4v0sEEXYR/yq4cIssNLmFrRIWCQqMCCR+1ofsu4upHCoyJNI7Rm8ue\n4vH71WxY50Hzp4YngxvqAUGdmdynq/2GIoqtlvR3JpxU1ke3/G6P/awwtmB3\neUZm\r\n=wfFU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpyKLIxLLi929PJyZVsepHBw4t4VgYYDj63SvHprOoDQIhAJh5fGyItyivkol33TDV39e5S4/Z6SrrhVtCvVlTNkxE"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.63_1600788291762_0.11517160748833732"},"_hasShrinkwrap":false},"0.0.64":{"name":"@aspecto/opentelemetry","version":"0.0.64","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.64","@aspecto/opentelemetry-exporter-live":"^0.0.64","@aspecto/opentelemetry-plugin-express":"^0.0.64","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.64","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.19","@types/socket.io-client":"1.4.33","typescript":"4.0.2"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"40c8b498638464ee2d515d18e8b63e302fa34781","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.64","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-e9JKw2EEdTDDK9cIw2yTJJtwQT9E4r5Uq/uUEO9EC4nKZxKxwFOCGWmDhZYeb7tNP/HHyIM4niwlafIy6fwjIg==","shasum":"4119205e38c5271c996aa522d04679a1f4959372","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.64.tgz","fileCount":60,"unpackedSize":80573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbLtjCRA9TVsSAnZWagAAZtoQAKBQ9CrXrC81yCJATAPp\nkc/sdilveohNueknSG3YUzklsN5UFrfS5GsWMcqgjes7mICB33/rdsDOcN8S\ngKv5KJ2As5cOJq/vXGrGeJTfzui8RjQi4fOyhO5noxpTYP+A8/0HfIAAJbSb\n6Nbkr4oFBVuB6EF+2W1QRjvUvAdRZstnG+11Phr3YLuHY9aAhkaDVguCII3M\np114LsXSh5gk86refbI/+RK5ozXOTB+clNutcuPKUH5s+ae33KduM0SDyVz4\nBncdGHKN/QtPNrIr0OPVFxwCdmS4T/vb2pUM845xajfFhU2XvvnYScuVEj8u\nfeMF8Xciafic39nQv+8v7x0Rz+DzrQAw9dijdQ0lw7/N+3qxy0mNY8Q0VUEl\n4/uQP7ODBCU8HOTodQQRBrGz4P7WnoQwrsgn6s4ZtWp0FPWZ2BwqkkQs6TIK\nOc88tC6BF7eftGb6Jp8bjegG9cGkWFC6Pd4CxdRuv0kQ0SeatvyE9jXkyUuy\n2o1A30sQdIY+nbXhYqv+O3gmX3piC477QAgnCslQWZ1SjF0fYxHPxR9GyxVZ\ny8SmqS/KEjdIpGZCFmdvTNXjmLuQn/u3RLvZfsyeeyUONmGLUxB0zmncjbDK\nOzbzJSQ7LGsWI1LpID7fF50d2JTt42DQjcxsPqoSv2G7baqt9QyzVtdQVF23\nXauA\r\n=Jvs0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtBr/yUqKCDamora1jiAbLNhuhsSAtbdTgjAZy1Jv3lAIhALmNtyhtvYo44meAW6wg7OQ32t8DpmCBDPF8WDYob7vj"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.64_1600961379181_0.952474608231008"},"_hasShrinkwrap":false},"0.0.65":{"name":"@aspecto/opentelemetry","version":"0.0.65","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.65","@aspecto/opentelemetry-exporter-live":"^0.0.65","@aspecto/opentelemetry-plugin-express":"^0.0.65","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.65","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.10","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.21","@types/socket.io-client":"1.4.33","typescript":"4.0.3"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"46e4b6fe0cbd6613abdc9f8af1f6bd83d9344d7f","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.65","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-Rh9ML3yT96TV1tA4AFAJWHtJDyUvq+cPlRqAqINt10AmmI5A+x5fJ60CjzB+5LxlxIH8c3Nt5G1t1URv3fHe9g==","shasum":"1357417bcc17387439d2f8b8b0f299659bfd41c0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.65.tgz","fileCount":61,"unpackedSize":83068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcx/gCRA9TVsSAnZWagAAmSEP/jIupQxxqtuY6Bf6Hvoi\nZPLhZ6mQH7dL97gQYffsR1tEXLcUqMeq2Ss/DOULv4VfEf2RlLujp7OdsP8D\nDzX+sQs+6lEanNHBWY7vUlgAY14Q4QlAvFQmEtt9EUMeKxv91vZFG2a2Da6a\nN4xdzAP0n69kUENSOLqmpuZ9FdhnpxmPTIH0jXa4zo5P4oDj6tXE2bt3zank\nfU5tQIkiXobYcsVxJkREo3BFuaGbmqnr26qEpvV8QrI+Bme5ntXdTwtehqdf\nQQO0VQ/ns9XRwaLjttaIs6ozPdxb1VQkwZLsSn5E70IyU5R3MHpITgvfm1WJ\nwdhNn/puDy/WDLEx8Eb2pNYAHD+ddkpCdn+wgl19m56TDnoebdHaJMKcxjfD\nDKWcQeZGfYxZgEuc9vf2JRjc53oX5UqUzJpu640WrsXbIO1zBCCNv6WiZHNe\nuDFO48IsW19Bih+sD5v8nnpf3s8wcBnm9buQl2eSqeD1XkGUTZKvpooH8GAX\nXvSKXYyGP2VBEvOeuXPmuTdBu0LtXi/mAqPh/VtcqyWhW89sFl/EwKJ+TJyQ\nRPMKcipMtIKqb+mxOpfojA5GOwCqhulRGAQ8T3MCfRRRL5q1M4NMbW2YKEzj\nzM9duxIwdIneB+PRuS8rZl2PSObKSei/77T81FBZlZDyXqwztsNMzORatn+C\niEH6\r\n=uza9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZECZ6BenIILS5ssabdLPzVcll402vdTpQOyAZBarvyAiEAyqPgzdcgH2cFAmQ5ZFikFp+ThL8oR6jHbxSof2Gscgg="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.65_1601380320326_0.2624930175147291"},"_hasShrinkwrap":false},"0.0.66":{"name":"@aspecto/opentelemetry","version":"0.0.66","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.66","@aspecto/opentelemetry-exporter-live":"^0.0.66","@aspecto/opentelemetry-plugin-express":"^0.0.66","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.66","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.11","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.21","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"6f706c041a85732835f5afe2ab80607620710af4","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.66","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-W7vbpBBTsnovHDrS+rkjNCoUjbqBzYtR7+Eo1DeDpXwRcqgb2ti0vMbCO+h+Y+qw4JzYvPb5Sy6Wep567M6XaA==","shasum":"c3dec0b007565ab7643f3042bddd9f0485ba7c98","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.66.tgz","fileCount":61,"unpackedSize":84891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfewMYCRA9TVsSAnZWagAAgHwP/35nn/pMnBclTRwj3ZZX\nERmwd1OFh+W+/Xrwl/R4pSnTRlNHrgOJoi0qHaDtwuh0bTGeJpiXN+8ToRY3\njLkgTkKhSzbvtrQWI7zG0/j7wj/PHZeU6wTtXNB536bG9ABU0WJakraoSeG8\nelLdS29zn4qb6fUfj1c7ZWWDxdbdWQtBxaOPd/ydjRmci49atZrDuaoPlKsx\nGKnhFHrnys609uMTDwDTUW4S6OzmOwVNGF+PWVg5R6gpxuJOju4q0jScVGC5\n/pdYxPqVIWFFzg2UaBi/fuXDFF3JNfhTGnMqZK7l3DtZKDGufsUd8IfNDNfW\nQyC3D6v2jTmXO/B1jyjf3jsmHdVnbIaoh0EvLxa37gU8HSX4QO7XyrHMPDFv\nIm4Hcnk8WZefD33ml9l2pYAb5qDb/ga7p+iiWuq4jCkL9c1nXUt9LOBzvJZC\nhjfwByIiRY+JgmU22wHNFTGigmb7soImtZAGe20upRzrOoCX5v97jd4uTnX2\nvDPGCtg6lM00kLr+R6FjtjTqUdjTHTPxJyTSgqL+PxW5GKbx8TpZ93fo5tP5\nazffX4onX4O0W5drrFGqS/K3B7Em4EU8KVyG1xAMV1jxKY9/JA5HCPiEWKY/\norrqscLQjd1i/PD8pY4WokYeOLU/Fx1XiSHXjuj5WBZ3MV1TO2G/Arze/+Vq\nd5hz\r\n=maGa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnhvEUpHNWM+5oXWHVatUVa5ebLA3D2NnchS1AyRsyYAiEA0gknwqZ1XYTjepXOWyXEEbHZSfLzEX0YerkiP7hztH8="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.66_1601897239612_0.6699442121944397"},"_hasShrinkwrap":false},"0.0.67":{"name":"@aspecto/opentelemetry","version":"0.0.67","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.67","@aspecto/opentelemetry-exporter-live":"^0.0.67","@aspecto/opentelemetry-plugin-express":"^0.0.67","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.67","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.11","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.21","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/aspecto/aspecto-open-telemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"1fef10c3bb706df427819578c25417064a523003","bugs":{"url":"https://gitlab.com/aspecto/aspecto-open-telemetry-js/issues"},"homepage":"https://gitlab.com/aspecto/aspecto-open-telemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.67","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-z+tjFOnSoqwm+OvKyu/t384Z3yt3+T9VWXfgpK0cqpfnVjTi30e96V8SKUnT7KRvh/74McXjmmm/sWthuyqUbA==","shasum":"bac7e2aa7a8f366bd8e7e9f3171a191bc6a3f535","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.67.tgz","fileCount":61,"unpackedSize":86029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffGQPCRA9TVsSAnZWagAAhQMP/jE2OCJSR685hArAPQWo\nA/7g0QdukgGqTWNg1UOUkIOrw2ceTCOgBfHyF9Om+7tM/Ln+ZeLFRwlIYeOB\nYAFi14UfBKWegwxLQ3lQB2YQy52ty8ydUxRNtZE2zqO4NIi2FOIUtme+IXVt\nREeHfHrz/2cObT6Z4JqUuzB6V8zWhvWpcTd2aM/ree+npqTCHaQ2eRlyL/2a\nOjYL0er3Gp8dwiJ7F/4ao2YN6zTckQpKYkmmT/1RbtvVSHF00+NPMTEpRH1y\nbI1cbHVSCKp2RhPDI1+2eExpPduXg5OR9cCmnDkoKkYRffzRW+VYbxfHor7O\njiqfK4/mmVwdpYgmPCMbJ44kBJdQ0AkLbn3dZwcMNjRI0+X4H6KWHB8ayPC9\nxgKNtTGOAe3iu9vjKF+7Unycl9W4nXPYXy4wFBSFiJp/6IgUjoWRBu9EVcoB\nXwrjfGtVpSQfCYlkSWox9jjY9dM8vEVV0Ztqt2V7WxaaT55oCBreN8JjRKja\n6FxxIzNoKhm3GjqyMAji2YE2dGXQi7GejdObCj1rkN8SGDqKUDZJcqRQKDUP\n2QfntcWbkbqi8rqUNEjd0+cqKutNVCXvVGo7CxZxrUR61uNh35+Ebe2xdI1r\nMPMMOy0fF7iFup8uVTlEbRBfND1Dn/1wJfQ6z8r/SNkc+O4b4tu4M+O5z1mi\nlVpm\r\n=mv6L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+cQEffhvEzMS8MpJSn0qr5mNSW7/IUX4jEqui8xcm9AiEAg0D+cbcJvej6htx6vpnpd0asxKm4ePfpnM5IadRzEts="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.67_1601987598732_0.5189734587249399"},"_hasShrinkwrap":false},"0.0.68":{"name":"@aspecto/opentelemetry","version":"0.0.68","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.68","@aspecto/opentelemetry-exporter-live":"^0.0.68","@aspecto/opentelemetry-plugin-express":"^0.0.68","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.68","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"868ec953b9eb34c4ba7498d3c944ee02c0e7e759","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.68","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-5GBIt9KB1U4a/l6JgrlCDR0r0uZh+L/LdMZUTMQ5zaQVZJWZpYhAxKwN0cAcJSDikGj7AQHo/NvN7Gpa50qBXQ==","shasum":"81336987a400fe79bce43a353eabbf524de1263d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.68.tgz","fileCount":61,"unpackedSize":88141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhZRwCRA9TVsSAnZWagAAFhQQAIGRIxCvdxXai7iA6DIw\n9t6bDCT6gLsx/oEYBvYvArVar2IDlN3UmqTVbSY4SoDr6rOpl+kjKndmXXtC\nI0Cr0eaDfo+8BIxKSzWd/BJHSkXVXPKydim9QrB7gJVPO6ktkz406/lhyUWk\ntERSvkziW4YIWFbpOr0CUY8ncooBTHBxFgtMrg+WtYDHqsgmJnHh05EYkeij\n45GPTqC7oGkx74VgvxJPGDydhGnb1TbEUTxJraw9lTyTByaYYTH9odmTm8m2\nPUV4g0oHdZw7PylfJFwUZWrDh7wVHDisqiV/o5qlOCYnUg4rL6Dekq6C2BXd\nxqW0KYGA7xhLi3lvnfogTcy/Isfedfo4aPn+qSlLbrBlmo31Vql70bn5LKzX\nj0mlj0W+gTBlaXK4zUWyqW6j6f/puq1Rs8BliEyjomelG5RJZvR5W6nphwu2\nnyn0d8ZEbiSc134R1U1ugbHkxJFtppz0njGj9gQmyTQmg9mp2r2cl5LtxhMq\nHCawWngiujAasYuXpQCuTbxTS/EmPlmZcDgg2oQ0/IRjIY40UcOd61IQyogc\nW+C4pXhraCxQeun3BFZHA03mErOVzTyIVEeZnXtso+cp15HS5WlO7kxQhcKp\njIowUuKuTBZqwOVXl4JL80xh/IWKquXb2jL4AXGawiadYw9kdHvAuxkrLBMV\nMR8Y\r\n=j2UJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZayJeQXHQRR2CvWrWVyjOkJRSqoaRt9jibbi0auPTuAiAlfX+A9Rpi97MXjguyRuxJfQjt3H5b0rpR4FJZyRP4kQ=="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.68_1602589808537_0.5373216033647354"},"_hasShrinkwrap":false},"0.0.69":{"name":"@aspecto/opentelemetry","version":"0.0.69","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.69","@aspecto/opentelemetry-exporter-live":"^0.0.69","@aspecto/opentelemetry-plugin-express":"^0.0.69","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.69","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"3a62a11e892909d230ccd11c362d69c434d04361","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.69","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (linux)","dist":{"integrity":"sha512-GuTMcvSf5NsHmWzsB5sK9cmvJZfEL6m6RONR4BZXMZS4uI6vGNcs2lLK83z0SqJ5XrthMWpEYv9e3V8gXIksVA==","shasum":"12f4ab0eb1366cc3c83079836be6209a2210f68b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.69.tgz","fileCount":63,"unpackedSize":89513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhsdDCRA9TVsSAnZWagAARcsQAIXmSEInRIc0qqr8r+Va\nS/F4sx6L+pNy3RbUaX3Z+6p9a6pXMWHfCBTVWcFWh4br28kpc/g2UHfRO8dN\ndsjbIQGU4eZqBAKj//JoHpU6Rql4TN/R2HKPLp6Jb9Jaa1XMTFbOhwpM53oK\nz1hhtHbj2NkJgLwJfXtX2SrybBhLCQaOsUKGxtl9vez1xj1ieGcVCgYR4hdZ\njNYtk4BnqQ3llRjYhF/5NhAUB91YecWqmTZOGEeF1OKV///lsINz/OYHDFKL\nIvrlY/Fl0pS/D1n8xi97ynebByX9dG+oIqv6jVN0cnNHb0xMSQ+5PjfhHZjr\nSdhEWQy7MUnE4cY+mBLt979Xt8NK+V6twc9CG7SO1bf8lmKp0kHINRo+O4wP\nm1e7BCV02NmfAghtpjOXuEBFQYKkbgJL28pv38iLj1SDAcHVvbwr+YaoGOGv\nMZi5cQ2L87GuX+H/sMqOv9KQ5gigpzfJOu59HiJ5vmvJUt5kNkm8Gck8Pwt/\nnqR6b97WLO3xLYWoqolI58aW6sD3/kvxxRlvSJ1tJYfIpwdpa4Ci8i7HewiK\nMmvcABq8NOxo5S/Jm4f7jCzYQI5QepKs+5tYRizYAfE3cZY3SUIgGuZpmV2d\nqKwCt7E3ipbxg4haqx94kQG4uaKmf1rCYwLWjQLYyM35TDw7I+NNgHqkwLXU\nszrp\r\n=4vH0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy9P0mcuxrCEdWbe+uxd3vTTkbEk5kUJkab3DDa9pyKgIgKdM9pGgAvmhuSeTT7nTn1N3/wVTdYljdO64o4Q1AWJI="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.69_1602668355510_0.7681591864428945"},"_hasShrinkwrap":false},"0.0.70":{"name":"@aspecto/opentelemetry","version":"0.0.70","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.70","@aspecto/opentelemetry-exporter-live":"^0.0.70","@aspecto/opentelemetry-plugin-express":"^0.0.70","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.70","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"6f32b19dfbb01308a9db10c04e8dac967ad8021c","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.70","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-1ZHo8zSu4LQ1NZWglL5jIYfUZjRfDr9Sa2mNpdOXJwpqqSlxaFJk/YbmceQkSsQCVtIyJjq77C2cqky30Q2EdA==","shasum":"67fe278ef47342815e0e8051ae0fe5eca0134f5a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.70.tgz","fileCount":63,"unpackedSize":89689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj/oFCRA9TVsSAnZWagAAQIgP/2oS5tOAcz7VJiZsA3tm\nUcaamK9Sp+qSRRU4F9b9SoN14mFD2732Um/lbQQygBmQYhsvkg8Z5rpuZwcs\nUzGzINP3DPrgAmluJI1B8jOVoIZkregVJYLAaRSwnv6vGJj51XHR9PFPeqUC\n3q6kDPQI1kmKavhXiRPCvCj8YL2b7wx5rWiT/YNYb0iE9sA9d7aumtj2Mvnh\nRsVIpc6u4QwSpM05Evdxf5IVXN4eJ2F5WWG11tvPBrlb0J81XKUNmpcwDt8/\nyWuU67vjxZSVCJc8yb8D59WMgfhvwR2lazpcaigVkRKEQDgMgLC034bpAX4G\nAjk7LNguMvr4knsDKBzDg2wUSk3qo3pkZ2yqVwNhZ36cnjZEzBWjPBzcpuxT\nJFwFSThgyPOR3QgySRN0wq6Kn+UYNqUfzbpyfZjlQcPfZkFAKfRA/GfQM5q/\n6JhdEWQNQBtoUBWPtAPmnbip7r4CTmjJ3XFXu92Q4dS2+4f5VG2sLYL8aRwd\nftkgLU/DhyjyiKRjzqOYvwsyMHbudgFFKsB50Dcynjf/CuFHsEeGyrg0TAX+\nNhaELkJE074qHCV4/j32jyPZ9NeP8gm5WNDpP3zy/NvkFKJSPtLNVgwhZrN2\n2KoPK+zOk0n/94COq4tkz36dE6T8wlvZcZRyJe4pAcluwlNU7mopabwS/mxN\n5DjK\r\n=5b4t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOs2asQtKcvwof+Hm9ohyh8B/urnv/V9jGCL4bY+aI7AIgIqZWSkp2C+k5LlxjRq8g/ndhWInhCCftW8Po2lUc40s="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.70_1603271172961_0.02210670382613733"},"_hasShrinkwrap":false},"0.0.71-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.71-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.71-alpha.0","@aspecto/opentelemetry-exporter-live":"^0.0.71-alpha.0","@aspecto/opentelemetry-plugin-express":"^0.0.71-alpha.0","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector-grpc":"^0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/plugin-ioredis":"0.10.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"b6d98fba2c22def86105a9739c30863cb345614d","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.71-alpha.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-aK+WFuO64InjYalv4LavQ27Ff4QXT3SWgQjZtSsOSby/7SAJ2egrGfxszKkhjnB/Jpuod9zocpwIKOG515he/Q==","shasum":"f18369c9edb45b92e819c61787aaa197b034d905","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.71-alpha.0.tgz","fileCount":61,"unpackedSize":88963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflU+ZCRA9TVsSAnZWagAAc5wP/0spLWEGmoeMjVGEOKeS\ni3lGuFLP6xQ2S6YE7towF39O3XDCkDM/82XON9fQ/seCDAYAx6qHnf0JN4gw\nDL7I/hZbzHUDr+zVY5QN9/XU1M66lom5570dbzdxTVS1Bql+eB5VRNYehEx2\nVQXuJ93G2O5OsoRyNgu7mDCksZM+6XEi8/4DvOAB4uJbfxJ2Cvkdzpe3nKBf\ngXOfLmd+H/NfeVSZm/B7wxeb2U5hFSj0/cO0D99g1VkdBdroNMPkEdQUDk15\nNl4YCT5w8Q0MPeDjsx3ZGPTpsXMEsvBh1KFM0X4RmYgD4L7cmnIP0ofK6Wv8\nCPUfwywhqibSSv+rl7oXlRiergrdjW49+9jSODvMLCyaqQEFtIi6lT+33ncM\nZ1LbBBrYEveugQ/26cq1t+dgh0Uu5CgpVPJYKqncgcx0jI8AhCWZ49vg024+\nVAbpu+jCj6xIfnpODZP0SPmmqjwf+rJuVukoOhqcmzk6Yto2qI6io6oUSD73\nkf2k0oDwBSP8SiGYhQ/tqon8scjHl1ofr8ZR4C24BldizxJBXNJAA7/5htv0\nZzvaPVZLtyPxwXj9Zf0NbZ/BBPMG2+80N2kcBdlMGUcSQaHgk0MXN6T0HbbY\nhCtn5rL0xWVEHUdNu+W45SZLTGDyn3Q+F53yzYIlkJSkRRt4Xrr1TfpmDO+0\nTv0O\r\n=0vOU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBr+xuPvPH8zOPUXTpFmO2VJoScu6xL4pHo5gCcxLQtKAiAXYTVWWyRIWFWlikwf0c1yr1/DX7rM9ewF9uSUnM1avw=="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.71-alpha.0_1603620760545_0.5477895103769708"},"_hasShrinkwrap":false},"0.0.71":{"name":"@aspecto/opentelemetry","version":"0.0.71","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.71","@aspecto/opentelemetry-exporter-live":"^0.0.71","@aspecto/opentelemetry-plugin-express":"^0.0.71","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/plugin-ioredis":"0.10.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"476001bf6e8c1bf5559bc6c8884371a3cd40e2bf","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.71","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-AKqbhCKEeXDIfm3xs7tQlFCp8qmNsc7QzY6abxUaEQ/YoxMEssLRaOEWVii9Ei3YYSlB/wS79olBN965jGlfnQ==","shasum":"3684539b3a6d4ba9c80a0795daa6e939698f6b40","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.71.tgz","fileCount":61,"unpackedSize":89319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflshJCRA9TVsSAnZWagAAQ7oP/2bfMlwJiReQaiXcgs69\n5UuXGsYGuUuehLUPoBriQS22tkXhUGkSDhYl/qtMlnyca0C9BH4mOs5UrEst\na1THAgByYLEbqz+xCImTh4md9/SVSzUYoMAUBaKZGWmf4autzXyfLWrQRzp/\n/IRdiyeXdHMRHJrQ9c4q8ziMpjLrvJg6/Sw6jf1n8UGAt/t5VmeHZryuSBRU\nw47gex7O0CxVkcnpp1zvDamhxpvsGn8h1E/KfjUyX76p+iiCtAFnmnY/YS5o\niVYllldmQEODV5pt/vU79LaXJYyXpUmLIX/8FsquEcm5TPIMTomg8H9OGbUe\n9sexPD1eL31U3UIkGN9/V8MLWvcNnnTusWZueBkKF3ZoIvhj8Rws0aeBhrHY\n2gm5EFwicw4SUrrnX1MTWBqfqgTF41ic9laeZmL0/Eo1O/5oZMwxKoCP2EJL\nCEWlaPBw0Fr3oXHvCNJHhp9KlrkVgzsmQ7z4ua4ddRkwCzDhHSKu8Dq6cRl0\n3ZbmXmruzQIfZs13WCA2zU26b7dhztz3Ijo63gSue4aqhnhSeh5lVCZ92xXL\nAV82BPr8L4DsXN8TJ9725zZlWyfaFtHnq1SxBrfBBZRmksaxo4B4asx/+rpf\n58M/b6PR+7DDclNgGsVQ0f9ggBBnhioT/pZytM8eY7IaOPQwb95PK4R+JYJM\ntHjw\r\n=SM4i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcKxWMcLVZFOsRSajjxATOxNNWZWfA75toFAR8fH9JeAiEAo58T/7LjA8msYve1KuWdVvzk3JOP2trSQ4Vk/8z5COw="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.71_1603717192783_0.9199438502156911"},"_hasShrinkwrap":false},"0.0.72":{"name":"@aspecto/opentelemetry","version":"0.0.72","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.72","@aspecto/opentelemetry-exporter-live":"^0.0.72","@aspecto/opentelemetry-plugin-express":"^0.0.72","@aspecto/opentelemetry-plugin-kafka-node":"^0.0.72","@opentelemetry/api":"0.9.0","@opentelemetry/context-async-hooks":"0.9.0","@opentelemetry/core":"0.9.0","@opentelemetry/exporter-collector":"0.9.0","@opentelemetry/exporter-zipkin":"0.9.0","@opentelemetry/metrics":"0.9.0","@opentelemetry/node":"0.9.0","@opentelemetry/plugin-http":"0.9.0","@opentelemetry/plugin-https":"0.9.0","@opentelemetry/plugin-ioredis":"0.9.0","@opentelemetry/tracing":"0.9.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"8a2a2885b34190445acc3c637529c186383c7140","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.72","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-goBTUqwRfqXLESmKrjyk/QuC3l1E7MtIxqoa0QS3gM12sYKq8Jtgjzh48XzNNb4Fo+dRqqYpt31yn+8FeoL4xA==","shasum":"fb80a58e269f133bb838afb89afba01278e53fbd","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.72.tgz","fileCount":63,"unpackedSize":89865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfltNoCRA9TVsSAnZWagAAC5cP/0k7FGSqDvQut/AoG27Z\nQ1CqZk8DUBr4DABiqMRlV9DQCWLy/ZYHgUvIATux7vv3m7kUZ5OTCdZJQoLx\n6GbKpg1IA4LajGX618bfYJLVJcCYWW+YsCN/34oScudPfGOpE9s0E1LVCrng\nG4/kJ682yPe73JQ6uJvLzWagWlXD7qjNa+0HcrjhDEHPmZhUJu/OTni0Ln9t\nd7dw3Pb0Buq32QTodceBHUiHyak5aDULil7NPktzJdhs1DfJCGwigNnui8f8\n/W9GZN27xtlq6nCMiNIJlIrx6RLfYETld/hjVM9sTVEVwcdMqVRHHBrmLM2R\n1VVtwoGQG9ueBWAJhOblR8rr49ttlg3NvCUY4HcWvDOV6HE3acOUqONktnPm\nYvOg7ayxMiyXi8g9Gtkdu4RNgvBkAtEjgIISw+EYucHhJTMU8JiR0YnrugWN\nk8b/AFkJN2jnd7g9L5G1OOpERzrC1fjlewx3mqbCt+37dJr+5amTy7B0wRoT\n+8/DvhFLygh0+FQfnog7RBp3b6O0DcFXLItEU2axAFw7YccWInZgsOLGD1bC\nbJGS60e8xLTLCFpE4kWQcUcNcEGqDSmqCL5Qr7AolZaBEmJLbv/f5QYuptD6\nTs7stwVvsjsgyvFxZok0x6N0zz6Jx0kU8OXrlF/w3OUDX60PI+B9KzlQi6E4\nDBJH\r\n=NzMI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSJ76HReZ5gmctZfN47QEwYDcRGwz7Wrlt8eCcbFpqFgIhAIkOspadfPFCgrjl3LTxTrc1sTED6OmM8s7l618M5psN"}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.72_1603720039738_0.23987708806453045"},"_hasShrinkwrap":false},"0.0.73":{"name":"@aspecto/opentelemetry","version":"0.0.73","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.73","@aspecto/opentelemetry-exporter-live":"^0.0.73","@aspecto/opentelemetry-plugin-express":"^0.0.73","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/plugin-ioredis":"0.10.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.12","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.0","uuid":"^8.0.0"},"devDependencies":{"@types/node":"13.13.25","@types/socket.io-client":"1.4.34","typescript":"4.0.3"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"3d62f8d02f42d37c5e3409465e4551f8f85fbee5","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.73","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-niSH5vd0+d3Ex1sYIxLOubT3Y3ck1MwW8ueCvOn6a6WENr8OXs1MDMxBhRpCIzg1PZzEWRBQ/7qfeYfqFP2sUw==","shasum":"b3a7245234718d38df431fcd8ab978cc3293a59e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.73.tgz","fileCount":61,"unpackedSize":89643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmErrCRA9TVsSAnZWagAAYuUQAIUHVSUVI0xbSJMBZ1KD\nbuKO0D9IaSZ5lBaKYDKnzMW8OLRkeib+ZTakE8CMVG699+8xjAYRY5UNV3ur\nuDat+Ker/TBWDVe89CyP9IB3OVAIslCrxzvVLvFu7mXkJVGvvcDotPhtiX2G\nQUoaYfkoemtpgy215UAXFxte3noNHTy2KS+Tv+TJh4r/yb5YNQN31CSn2rOC\nn4MfToAqN0qsu7JPQIxri7bbWuNhJ54z4T1PjINnp3oKL3kebxvRPlLx53gh\nw17W4177cD2Sjqiyv19SBFn0NEZ8M1+ntDpPq1J7tBmsEVtepaXihhdCoBZM\nRJTTLQLC5xaD7B8+/diFPA51Wxf0e0uiFmGJh9N9NDcOryggoy2hk1QI4fBz\nRNsqhXh2Zqo3ALSiq/Vd94uWXjN7oSR/VCEZ7nbQ6vrKhXEddTNwB1L9wn8E\nQWKmGsWfMR8Awks86dzlzaornXvmB2Bb8uuKjVyfKxvX3FlQsugAeP5bhOUI\naWheFAvEK+Dngfyc2yB/xOdA4ELcV8TCEwO/of/mAx+Z/E0u8h1JwnhxhrkC\naspNJUdoZ3c6SPz0GJKEJj7P8vvisEZ7kH52MMBf8Sa43wt2w5ckl9Uv2V5o\nSwa/vFsm7JiLkdj3594HtXUF3syJw+6y57k36dQSQjg2Jybz71axyTouJlwq\nxcq9\r\n=rV/w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsYlDIwAB+4m+YHg0k6OYQI0MW+7/qh8rJqP/Idrx0tAiEA90KCFP2GzX/leXKS2qxt0tn/dB8eA4+dtMf/zxmrqi4="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.73_1603816170641_0.3616995783563981"},"_hasShrinkwrap":false},"0.0.74":{"name":"@aspecto/opentelemetry","version":"0.0.74","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.74","@aspecto/opentelemetry-exporter-live":"^0.0.74","@aspecto/opentelemetry-plugin-express":"^0.0.74","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/plugin-ioredis":"0.10.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-typeorm":"0.0.2","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"7d3ca293c32b3f5394c7411b73b7775a07e922c8","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.74","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-JPw6hSM3jVD6cE7+TPIoxe24NnMJpvxvGXdqY7tt6DOwQvNzk+orLLG6lvW04DACquDS0Y+zMK7Mc5IVJwp/CA==","shasum":"e87ae6975f94fa4cdea67be4b1cc208ab012b492","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.74.tgz","fileCount":61,"unpackedSize":89818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZxyCRA9TVsSAnZWagAA3mMQAJTVl4+4DATW+A/J6GGz\nxjdUg6ZFAijUQvzHCUYJOEJyNS4xSh5PzPVz91B4nmMpiA99uuRzwzuImVlm\ntBOI1tGUIwNGsrNBiveV+BOx/BimLCkIdh2LkDqF+LQ2UuyT4vs2AsI9srph\nAWGcADbBW5+7t26ZQBtErHCmA7LYBlsQb2VSQ2lC+fHNFYwvuLhNuJWxW7yW\n3IwK3lwxTvT40MpZC5b5/3MfIy8hSuPE9JWhpszzWbt/J0KJa3cgXd452LOu\nqhK0UZYDph7szrVUCKg9s2bWwyKAwCOJn0pwwpVjPB172ui3fLzWfh02gr4h\n4ZcFjIBGVQkk4YR+VVfsQjcyICyKADk+JyNY4jtmeHS863dq7/vnaTHoH19O\nTvOJyDgBCBwMSLzqVmFU0hpg9HuDB9N3q+CLx1+7ACYhCsiilmxs3m+knfwY\nfQMpr7PILIP23XjNgFshixPclmifiIta0epGRbQT7EBKnEy4xVRFsdo0hQaN\n3z7oia5t9uaOcafLUreByTmTRchEzVmr3kemLmVx055POgozJI2CATw3WerX\nKHdMIxZFyhKmb8bnzQ717Nfx86TbewL5snzEwXjqg4WINsUVSpRbmGoi9hdv\nC1dM6mh14zJp7dnNWvcF/rvM+rXBWHi7wNqVMs6Zu+Ub6Nb2+lcj2KPkQYYF\nl4B1\r\n=kuKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ9GD1bcH4ImW2K3LISwkDn8PtO3O0rgePpszlWAQkDgIgaD/+ZJRVS04fQ4Tr9+wrxXtLXZ5dLVE+ETU+xDkLwp4="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.74_1603902577789_0.5609335860612175"},"_hasShrinkwrap":false},"0.0.76":{"name":"@aspecto/opentelemetry","version":"0.0.76","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.76","@aspecto/opentelemetry-exporter-live":"^0.0.76","@aspecto/opentelemetry-plugin-express":"^0.0.76","@mzahor-test-org/plugin-ioredis":"^0.0.76","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"4e78a47da2952d00a268b1971bf7b1eb5618bcdd","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.76","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.22.1/node@v12.13.1+x64 (darwin)","dist":{"integrity":"sha512-N2triuM6TXhxVV9//wOAyG+boXi2p00lVub2zQMwa64wb2brBGZ53HIMT3BtVD7FJ1F5MQcDki+orSM+LJfcvg==","shasum":"fd00da226126f9a7b03091acb4c69e79fdb75af6","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.76.tgz","fileCount":63,"unpackedSize":91205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoUVdCRA9TVsSAnZWagAAhQ8P/RzU0yRVJNlEO9YiznlS\nj7rvNM8cWX5pHrKf1OPIoNXeBBJvWng7hxcBU1f9X1zPxj5zyzkbgWbFtAzG\nFWMZs8bpx9a4eag68Hy9kvjSmlV3IUuylUV3P9LrQikC63ba91u5cfLbHOSg\nkbgVqM96ZB8/YAj3EIPgFOkQ23bNgvLyw1jW/GlgJq9sW0wc1sB18F6DGrap\nXFviqJHNaEVWBQf1dUziVyW0JbJN+MvXcKOJHb6hie8zhbR3Hm7iV2FKXmsg\nuDF3QlEeeqkyZoVDLhIm32+ixumOVJsuKa/sT6feJ9Emw8Z+BWCUZKQEcE5/\n8p0YvzAVF4vll8U+ZTuV9gh1OSybt8ZlYLiFcSM4nDw3GIN8t0tYbyKkX948\nvFKpQedJ0kNugVJj05m9zqtfgdVNLcbs7qM7gbS7IUFoVvpZSKteusCEFL9U\n6hOQjpnTypuAoLF79L+z2KgKJk0mXlji2eMiSbzSrhersxidA5ZHigogd74/\neNzbVOlW4UlIAO8bT18YnDedEEmREHqNouyTg15pocKuoHzrQ8rmmYPAp4xq\nGd+hFVluinuNn28njFYO9b+gmvjiEfocIgEuvpVdEoyXFevc1jJz0RkoCw/R\nZ5Q0syqq0jOUijfVpS7TscMz+kUmHFZjWis8gdGnloszYUbnmd6SV/0Hb+qj\ns6VR\r\n=z9ex\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7mN6a2BmG/c6JPUe/BeRvtYoBx1LA/NF0WtH7T5AZIAiBpuAwvElsF8a7kvPxS2KMkPY7ACQ9ItJWh2I/d3MQ3OQ=="}]},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.76_1604404573231_0.23425014440241299"},"_hasShrinkwrap":false},"0.0.77":{"name":"@aspecto/opentelemetry","version":"0.0.77","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.77","@aspecto/opentelemetry-exporter-live":"^0.0.77","@aspecto/opentelemetry-plugin-express":"^0.0.77","@mzahor-test-org/plugin-ioredis":"^0.0.77","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"74993ba8a64b2215f20c9b337cfb1ce3abd52ddd","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.77","_nodeVersion":"12.19.0","_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (linux)","dist":{"integrity":"sha512-yhBfpdZCG0fc+gjqJGsJhi0ULHXKpoyeNwTHNnUn+a++qVJuNZKtFDYCbx8G/MTEMtCjFQ8X7MmSMfSza0NdKQ==","shasum":"52caa631baa0cd1a7cb315264924fc88e5b11e4a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.77.tgz","fileCount":63,"unpackedSize":91381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoXs/CRA9TVsSAnZWagAASSkQAKQ8Mqi8avVuU1xZJhA5\n8tgBYEjQsb97nnZtGyFcj3NNV73A/4W3PXeQRHVKpoNA3xtOKCBrY3j0yRJd\nzaCsEzzAJkiAFw58nCyGga7zPo1PQV62elKht1wG9xNhHNDo2ESd8Molhl0w\nPFTln0LU0bZRTjwjqCuoTavSVkm95Oq37cfAQgA6C0JNAm4Jwz1q8I2Tq7HE\nLJWJw2H1rP72Yy9RIBAxbGW9dcx6CAqSepBHhf9OyjaQLD00l3temArjDNEs\njWq5rFwWJH8EvAzVtnMjP2BAfhT/+CcNyv8fElZ1DMUHn0mcC/XT2kTN/d9y\nF6k1dIIVaFzzl7QRkCDf6eWJxtrv7fcEk4WvOKdUiblI8wuaDFmUNTUD4ILA\nH1jAEJWZR0hBEeRMpNjSs2JYbBjz1RCqpgX6j11TbltPmVm1iE7TROrhRQE2\nrs9FfRPpdvEa5PiqpATxra+xkk4x7NRRhqo+Dg6jxQ9xQ3fmHj8ZXEhcNE+3\nBeNrMRpkJ1V5Bt/tLWsWw8kZQ/D+7ZSZlf7EDOfQsfhj0HCwn7NdKnViEMFQ\n2s15Ta6EsHVsJtZ6GXk4okMUQE8iA8+X6lExbt5AxF+rp6u4JBg7ojKHZrJo\nByyvorFDuZe1OgLJFg6ZaRY9Qfsr4dSkiTfSS/ifmlpFtLLkZDoYDg/MlfcH\nSPtB\r\n=CqLH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmL2Z+oygi2EPFVXE2CoNzpNtAsmQjI1xnSMeerG643AIgFFSjwdFeOn4zBwPMi8ibrYfHRxO9Dz/LTDIbSDos5ZY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.77_1604418367300_0.6017096948252292"},"_hasShrinkwrap":false},"0.0.78":{"name":"@aspecto/opentelemetry","version":"0.0.78","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.78","@aspecto/opentelemetry-exporter-live":"^0.0.78","@aspecto/opentelemetry-plugin-express":"^0.0.78","@mzahor-test-org/plugin-ioredis":"^0.0.78","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"58cd07f927d20263c54c801eb4931ce564633bcd","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.78","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-vRGCnfkwiGBtiVHn9RpoCZJrwqB07HRx3Li0CdCCCMIc8puUgMPdhOMV3ueXYDWLu8wmEM3QX5YFCskDhXvOoA==","shasum":"d6b7039123863bb4111a165b592f923e5725343c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.78.tgz","fileCount":63,"unpackedSize":92431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqlV/CRA9TVsSAnZWagAAAmMP/RiZnhHAbW8QVoIoLvP2\nCQmtFPZfp/H7RCCeEubcr0Im3BZ74Sz3okBCahrteDqmiip/2MZ7vk69JybE\nK5YcAguAjG5HxDLxUHD9Ih92AZL78XcIn+LFDGTLj55Gd5a5XdpS7nFpeAVS\nSpqBfxgWrGhIAP70b0QCG3n5tLjbMS6fvlnWQ4Lp6BU2+lxUNley2KltWP7M\nLlQu9j5LolbrKyHrEeLXgjvoS0rnzRRjEqBAbLrGcKN8HoQjTVjL9t8pTVhu\nYfZa+U6mibotFbH1UVpM4XtR+XJmat7lUoj1Dh0DKF4hUnmPId2u73IEWFlp\nClFfsiZCgAKGnzqMixKn32oDWbnhl5kU5EoOA8RI8I16o6O7q5dOEvM4uE8Z\nNeQngZDfUrGpKQnblzVlGKhQDmUhsHpIryemHk0q6Ks6FzOETF7DZ6UxGQJm\nRKvXMiaQ8y/d0g0kE61C5hRd/f9ApvfVPPxwtBq0hJ7Fa91B+m0wHoV3MssF\nmgF0ud2sLcqqS+2alG52s+4NAp50LhP1uAZi12qcZSeBnesnT8q4/tbfTOwY\nUV8P6L67Wlur4vTz6dbxB2nqlvFH50EJ8HsVe9WLj2zA7nxa9EEP2DqqlvPi\noBD/CHIE4Rr0DTPgQoArR9Kp79BPOC8AD/oS1gt6Ia7u//0bJhI7N/JJE4+8\n2D21\r\n=uTcA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD9LYnWw+Ngki9+MZg1vB6IWKwvd980ctSZQXGPyRd5wIhAOe9Vf9aNTg14Ol+nzCMqXKDheI/1SE2gaSfwBGsRRcq"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.78_1604998526721_0.6375989216334697"},"_hasShrinkwrap":false},"0.0.79":{"name":"@aspecto/opentelemetry","version":"0.0.79","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.79","@aspecto/opentelemetry-exporter-live":"^0.0.79","@aspecto/opentelemetry-plugin-express":"^0.0.79","@mzahor-test-org/plugin-ioredis":"^0.0.79","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"5bc9403c3205eabcbe58ef78ef7a36f12597d03c","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.79","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-ffEM0hqPVe0iqw5xXVHVv+RMG9GkdrDstQyHn0AcLhCG2boJxsLLp1bsTQ+Nnia7vD8Tr1FeGLAl4TDRYR08mQ==","shasum":"1d08e7b4c3fb3057c9b36684acbcc04d4b0e54fd","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.79.tgz","fileCount":63,"unpackedSize":92607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfq+D5CRA9TVsSAnZWagAABS0P/AgxvrEDpAe7ahK4j/HD\n/CDCTug2z73hmXGdeWwOTdbaUGlTB+NBMC1rmXflZB0a5IQtl0l+LIrIAM9M\nQb5GBbs5hi/7suCdEEg2/M3uMsx55Av61a1jv5DQouxXJal2MxdnmFG8B07e\nh52vanu4XsSBr0tB+Ke/KBWsAEAucjgmU3zsNtkuH5/H7mPQY9oChm3RZULR\nM2RVndZ2aFwEPTSlxaTcUZeAYTNQyw/Uliwr3hrRppq/xIlAgkThi+njbiJd\nAXCOHcaPhiTBvMs0DQEaO93lCFDKIkzG6S9HiAhrvFseuz8SMlFzWGNl7zMg\nqtgfW16VdKm3pf91WOduQ/h0JWB2ehYy+CRLonquTdvpP7T4ElFAferLZZb7\nHl6CqEErMIiGcDswaKbNHP6WhQj9qv5v2gph/dGaguNjy2wH6exezZRBWSYS\nIXbBecyRNqlf14+XrvLnBOw8tRdqweBznmCoLfrQKlAU9jtmgn7dbXZf2Ezq\nmhLth7d30iAbaI8ySEYQ4zibBJz7co1lnIK0z6C1OUXrP928av9L8hoGTqp/\nWFspPeJPmdQX+3aoDtJkfq6TkSDdqJEp2soW6LbbbJeHPQPTJsFqWecEVuGY\nnxnprdq+bZ2zvvgKNrlo0nvWsn93qz4sk7tPLTOYttHDou1OqWzrX9Am1/v8\n+lQz\r\n=g7h4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFaEKo2oqzaNi5VutBOtMwG2dYEPmYHwVaqlsHbKtDZTAiAnUrJXcjBRh/flp06tO/PQkS/m2vWPuKcIJZW2lt0gHw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.79_1605099768807_0.1681454146739889"},"_hasShrinkwrap":false},"0.0.80":{"name":"@aspecto/opentelemetry","version":"0.0.80","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.80","@aspecto/opentelemetry-exporter-live":"^0.0.80","@aspecto/opentelemetry-plugin-express":"^0.0.80","@mzahor-test-org/plugin-ioredis":"^0.0.80","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"9dc0b85a2bd0e8869c78ea00b03b29b9e47f11a1","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.80","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-Z6SKpYDtviZgnTxe+i5srRTyxOYPEbSu6VT0V5yHp9UdXydnb2jY03MYWr56IRyAKeWtpVUcHdwnBJFSYi0aAw==","shasum":"6001026564e401e06c6638d8810b518813650666","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.80.tgz","fileCount":65,"unpackedSize":96990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrPaVCRA9TVsSAnZWagAA05EP/0UY6FmX0ZusmS8DYW4e\njZGeV6xKUTyG00tTHhi0vUh/RsqJ5b5tDYB+OoieHSp4gI1z/6tTu2WQJuYp\nT74PvcMqZJ5+g2UQm+30xMNtJxj4pYz7V2Lfs+YsM1yKA/RpPmHRe3OzwvcC\nWFGou56/4Pqyy1qixGt/A76c6VxyiIvswoEVCjUmU7k7tiAGo+9wHPqVh9jC\nSAPLub4ekKUPKomecs2rXY3FKXIx4Y167uVdimKV7R7+Z3rQPrrjY9YDQT4V\nbmj6spD7CApM/qqyHDfuoY7pQ86xWkr7qbo9bXA8B+/+iM2ojz80suJzjvJ/\nONY1THOgMdsBEOMUhFMN76u25RelKU6JhhcB2niYyV51tfzLmdx22neihj5L\n3GkVnPvG9wVpRkCJcaDDfIrQ+anb8Icm55wZR7b8BH+o7gcV3NIkaXmM+4ri\nLRbisqKFr3QpIRwKo1BkngyvgUYrBflVCiKQx0esPm5WaDnKO9luUfe87ibQ\nTH0+fMp+NM5jNzBqs44Xi2svfkQcc9omQUNuXqzBIevTXGMw1eNKpO9kLF0u\nBIW4G95N0VUI8lDPMF86R+/VSpU5DI7FOTmfPXwU/L9sepuO8CDwnYFQmtZG\nccS9UU3cOonHod676flcLeBmnlUXN5kekFvUzol25LRpXcZZp6rPZddvfK/1\nInB3\r\n=LFSV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGZawvjDxftLvFx+0YgiVwYxT/1a44B7+EiaFitOFhjQIhAMEuhtu5piCv737VR/4BFR0EstJnnK1FIAOfh86blrPV"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.80_1605170836576_0.5162072391098245"},"_hasShrinkwrap":false},"0.0.81":{"name":"@aspecto/opentelemetry","version":"0.0.81","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.81","@aspecto/opentelemetry-exporter-live":"^0.0.81","@aspecto/opentelemetry-plugin-express":"^0.0.81","@mzahor-test-org/plugin-ioredis":"^0.0.81","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"00446dbd9157e671ed01159c16e9ec32882f20ac","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.81","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-s6OLeAC4GPRCtqhv3aRIZu0Ju0ymAZc9NV0BV7cwrnVoPI2RNPCVEBQdY6WQvHdAz2ZQus63B0js0fgH5ufygA==","shasum":"aff7cf7ca40b765da23e4067e2f55f63e2ef5436","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.81.tgz","fileCount":67,"unpackedSize":111992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsSN1CRA9TVsSAnZWagAAB9EQAKN/jrMc8C/LqWwgKjmD\nlEPqnZ4/I7tYM6UMOMdIXcWfOmENdkHuCGTO/sxQVdX5JbXeDb1G7wf8qG+e\n+Ym489PcJgzg+AqwuMFvJDgD+7PlI7SBKvyDRBWO0tRvMTsYPoTunBF2PfqN\nwucxVZ+TWlCURd5sFBU+74Z8TYdfGgL9GHZexwc9rwLWNIUn8A+qcw0+KT1T\n/Wn5dSDLAFMf6z7YRgKCpEgI3VsJjkbAXncIr2PNzJJsBqvgJK6M/nvy1AAx\nlg6DBBfar7nm5nVz83V6DHwblCvVIeaX2gFBanF8EmtutHfYl5ntc6QuaZ46\nJoJSDEkZoklDlAkvwK3GG2wEDVraLajCirmuezfxdy0tvMO+IXdLO+km7PuZ\nuncH4rDgnPd8AWUtpPKM52pMr9DuNZ8vKWeCsMhq/bjRBNBx5Rs5kwP2tj4Q\nUGfDiBVB4+JqhvEtKiFqiE3IEd/x/blwMGZwhMNkYwNPrafxlpdRAJEmnl2z\nCIiVLzSMmE8g8RQHX/oD6oOO+2g6x0bCkhGOdJ0Y56GZJVo4WYkJZ5AF6LwE\n6qvpXNkfGo85mG4n0ZwekTBxr2y5JVi1/iOUKPngag9hW0nm03o4M/+3dVGl\nRBhwMRPV6tLax1a7y1iqxGzKLhHrPDn1KRgsWi7S0Uk2R/61mHJ6SIkHcjhy\nWddH\r\n=E6Hp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJEKslaCgMTFNt08DLK29vvIzY3iCAEi6I0UTT9ZVBTAiEA6IwJm3ppm6QpmUQyVQ4cm4bh01Rfl1gi6Rq46NK8vcw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.81_1605444468215_0.54537129894686"},"_hasShrinkwrap":false},"0.0.82":{"name":"@aspecto/opentelemetry","version":"0.0.82","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.82","@aspecto/opentelemetry-exporter-live":"^0.0.82","@aspecto/opentelemetry-plugin-express":"^0.0.82","@mzahor-test-org/plugin-ioredis":"^0.0.82","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/aws-lambda":"^8.10.64","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"0415c1c00c95c1b4082d8159a6bde1256a07458e","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.82","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-1/9264/XR6Vas7dYdtg8Ipq/bbxd42u4jodyvlHyNHY1fKEu25Ud5LHokywObG8GBHD8A5V8K/2GnfGHZxSQCA==","shasum":"59721899e20b66b09783a7e3e50f2a8b4c3a7aab","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.82.tgz","fileCount":73,"unpackedSize":121657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftQuPCRA9TVsSAnZWagAAj7IP/RHvfh2/9VXZPlMZYKok\nZIEko9wKSNW+6m5OSwO7oNENamTM9hVfCt0ck5JuzA8MbZ+boOEweKr7WclR\nWLCCkQlir+Ej14X4NJ4I6uRGi2gy1PfNb5bFG21QMWEHYqGFdt+b0OZoCKGo\nLz/nqiK/TUcb6pUaO0y28RafSIqtYkm5OIDvgCm0ZIvYGI/Jv925Fd1L0nhc\nsgyh6Zk36pXeFtCBNDwwPjIMPbQvj7ATkXFrvjiWgHqRtL3x5Il949SKoJhX\nsG03H3snODev7jpNniDD3EkPnooVQQW4V2AMTJ4rfauj07diN4T9NJRyEX31\n0VieIRJ/ckeL+gAr3NDic7SSRJsa0dMF7t/SAggS4GnGk2Wl3wyw3A/NndB2\nKHRMK3yX307ZxL4OFUkUQLK293/qpmVFRHRxCT/44fUXS7JtTnqQeeFn+Az7\n6T5/HYxSW8l4plh7xbhx/5di0WGtKUlM9w23IFyTXWP9DIvb3YtoFY+dLi/c\n6X0kKOq81XVfBR4s60AN2MHgL3EAy13WAiuGQboxupmCaS+fMExXln0ZJ1ln\nFaENJs7EpSVeqGYUxdRNCjNlv9kNZ5XlhE4+g+zabB1QgS8svQ0ICQK1N5LH\njXpvSxsWYB6/8ZNGERTc2nDJVmaHJtgCY6taV18+qgp9+X2NT9RL4+w49O/i\n08hm\r\n=rhX4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfe9yuC8JSUlaK+6N9vS6Bx02LiedzlZeT+fAxyC9VcQIgUpsNdrVQ9ZUl5552TIVD1EJ1EwTDX7XJMoahrGI+Gdg="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.82_1605700495136_0.2936493762067949"},"_hasShrinkwrap":false},"0.0.83":{"name":"@aspecto/opentelemetry","version":"0.0.83","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.83","@aspecto/opentelemetry-exporter-live":"^0.0.83","@aspecto/opentelemetry-plugin-express":"^0.0.83","@mzahor-test-org/plugin-ioredis":"^0.0.83","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"22bf132c825a731077f08633a836f5119c086100","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.83","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-KHJnfeGKYDQfDzabyRcyd8MZTNPn1Qf21EFttEq+JmNd1TLmKgmqKfSKnTKpAlSjYQjmELugcZ/5SUsDyrgbRQ==","shasum":"ca2fabf24080e69572477a7095604b3dc5d56928","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.83.tgz","fileCount":73,"unpackedSize":122010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftR8MCRA9TVsSAnZWagAAkwsP/2J2KfJwkb9FpddUJkWm\nEjSwOYKLBQ5BSEU5jhLIc4ixDLkZL+gVqM1iP/OtI/j67B8AdqqPTy4jmYpE\nF2pS3Z1Kju0vR88Thb/Ro2WhsRo/fHaFm5IQiljqT3Z7V5L4hY9xS4/FRIFd\nWVCpKupwewfc8CEiJ2Fw9VEP4McKhHVKfR5ZQ9bkDph1IAW5cX0H5vbqqwrz\nd7v5iogjkAjmd24MYhG2oDPPBQoeka1mEcE/YsEIhLhSkPBIDCpO38Mg+/F+\n6xQjAxmLRknmqe4UWLdhNIjb4QApe2czVekODRbxabZoRMVdc1uCKVEwQaJ6\nUOl8PQFacvzhO3PoQ+p98IilaSvx6XM/qY+hzbl+l8CedMb0h0TtB77KbYDV\nw21CVOycfOFyiKepROvB8HKCGsehz4PR2fQu1G/6IGEN1jOuIko5q4h7e8VN\nnkxqbYbq8lUrKrcx45noIhiOs0gDdHm6zuNe2W14588NAHMaAUh7BwDupWuE\nKM54N+vHgAa8oK2L3efZQ9wquN4acElZSsbVp6658N+eawJuN5hJrdTD3wD+\nLa5rrTX0+68FofoNKCMcn6TKvwiEvbnADsamyzbdEmD6mKkGwgjd168Lk9mD\nsbvSHROcPyHq5g/UB8zcOkoIKXpSKOZkvQQ8SEKMc1iuCvnFwv1hSQ55n+YO\nuqo/\r\n=fkR2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiqcavqeODCfpb1HXaudlFpVG3RvaiBydvSBB3Mw1zzgIgTHP4tTmpkNyWYF4aBQikHdFIe3AeUkgG7Toqqr4yGqY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.83_1605705483985_0.721123844084691"},"_hasShrinkwrap":false},"0.0.84":{"name":"@aspecto/opentelemetry","version":"0.0.84","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.84","@aspecto/opentelemetry-exporter-live":"^0.0.84","@aspecto/opentelemetry-plugin-express":"^0.0.84","@mzahor-test-org/plugin-ioredis":"^0.0.84","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"cf4849f48af8582f72c604fd45cbb6894a81d036","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.84","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.22.1/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-N6hl0mkBgZUVXsWRdKxDGRYE8dy8hpYWAs3BXmb1tMWYztChL21TJ+0G1yIZaXy8/5DGEdkv7wb5x98MhpoqYA==","shasum":"77a37a9ff8aad81d2850a11a865732ef05ca005c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.84.tgz","fileCount":73,"unpackedSize":122848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftiBnCRA9TVsSAnZWagAAus0P/1Hkxn8Ab/IOpHtVkL5Q\nPFlHsTEjuCMf7mGllW02UIVJO9ddde0xuaPn1OvMP4qdEP7Rqt30x79MOv+N\nwF0NgRZ5Mgt8xQ7p++QIc7toETITvLuU7cEGwrsk9QqKxaCzHGPhI4v01L8r\nOXmME/A0Vu35siPphiUnoDnm/X/mexCRYTGrJBQsGJrhFa6stJ6A3R/jYoUR\nDKBAazhTwzSD96QcGytPorNbgKnPVQUi2Uk8Sb8aBshyOXDaL6b+3Soc5wTf\nKlQJ0QjsjS5DZE3yKIFpb9RMpopLKMiKvLF3pX9KT33F8iEHs8ZP1tPI9p3+\nfemlFSe0/RxSJIPCq0GIQBZwkOg8H0T+ZUfqBXGV84vc6aUEJszlv2bWvW64\nkcyoUgU7/VgX0Er0jTXKDbBdZKOgoYs4OM6cGBRhxWUln7GVLaAIpowHekG4\nu3qCHRGWGRoTZ1eULYk2luKFxsC+/I/t583qR1dCks4xb5O5f8Opo4PE8XVU\nEqNqdtqQr3Asjh1eYb3R7MVpcPu47kqHu/TQtAn6AH+fsM/9fLEvAQ4we+lV\ntXl717CCqksamARdeEPXY+FZfoSf7j54DzfvOFomKcJz16FE8pWsQAU9OGCE\nHnaFthd/FO3iXqotyhUzVvC/Njb0TGEN+VGzgm8BfdXXFU5+c2M0IfUMgsvI\nevVo\r\n=UPHh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkR1N4k3RhCFxiACD2QaO2U+Rbq80ZDlNyN3ngKzTE6wIhAKmwk6nQU3gynSTAJXNXnyCA6J5kIMeUHZ/GEHNT1bV2"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.84_1605771366950_0.5927569609230725"},"_hasShrinkwrap":false},"0.0.84-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.84-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.84","@aspecto/opentelemetry-exporter-live":"^0.0.84","@aspecto/opentelemetry-plugin-express":"^0.0.84","@mzahor-test-org/plugin-ioredis":"^0.0.84","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"bf12a82fbe452dfdd588209a37013acbfeab16a7","licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@aspecto/opentelemetry@0.0.84-alpha.0","dist":{"shasum":"30d44427e53009c57fcd7f2e12d9cac3663e3b83","integrity":"sha512-GQcAGG0+axXyCJMavxiXQE12+LTFnjVj+X4bvAorjBSsFTXapnCfpzZ3s7E0exB1/hCRpEdW7LtqWhYWhiJZOA==","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.84-alpha.0.tgz","fileCount":96,"unpackedSize":135519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfziDPCRA9TVsSAnZWagAAsqoP/RE0Mo3qTqKEVrJJhe7F\nErxa6TE0QdSqZEG1yN4k29J3dbpfT5aUkVYF70FRrn5Fya0IvuCQDekMOHpo\nDIGFNzm3U222ZnsefGaN2z4yBm2ZIaSeultAEK8hwnxFp65hU7SMdHbRYUJE\nartVvF/NgRpNexgvkVntL7IZoJc3aTshLgTgh0qygf1lNxJf3sy3IdXV3/wU\n7fmlAJoi1BgiY90/dv4MQ5i9f8XY7zhRF7rz4orXrF/LLHdOhjA8lFdkJBTU\n/VooLKRiLeanVGY8UFR7AaMMZc33O7eVdY2bha+HMpaSxf1M+zddVbbJ0Ygu\nqhhhuZCCkcH+b5NnN9tsjs9jK7RX8BckO7fH+NrzE+c9s1XZ85xyY0RnHN68\nLPX1dFBaz6Q9xFy5TxRk+8D9dUi57Jv12RUN3CF/4KRuntPRo6I6cJ69yPH4\nLGCMPFf9+GcFBg7fUk/mgPjXaG5HgLRGfdKuMW18+SJS0bsKMlNStU3VihIv\nlPBpFZMZ07N54qxRSkyIR5IQIHxyZ12npJq5XV/IbJMFzvIIXNzOnK4i/Zee\nSNfIr9sw/Uf/TYwq5A3V1XKL91Dwf+nw6+frhgeN+hoUTGLxVU7wwF7yJxRB\nCiiysejjuBEPu2UiWyqYjzR+HEhWAjCYN5/53pokj6LVEp9ltauABZb0XdJt\nLCzw\r\n=7kta\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZk67yse+u9R63CpQGz1/YTZ0t/cTHfl888QXJuZhZBgIhALwHEcXMzxNGqp623Ke/+2i0Fsy8akZo25gr+i6kHnIu"}]},"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.84-alpha.0_1607344334846_0.8618256128403916"},"_hasShrinkwrap":false},"0.0.85-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.85-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.84","@aspecto/opentelemetry-exporter-live":"^0.0.84","@aspecto/opentelemetry-plugin-express":"^0.0.84","@mzahor-test-org/plugin-ioredis":"^0.0.84","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"bf12a82fbe452dfdd588209a37013acbfeab16a7","licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@aspecto/opentelemetry@0.0.85-alpha.0","dist":{"shasum":"833bd5eaf768257d77f5c7826fa24a20634f0367","integrity":"sha512-46kIGneMSocFWiGa2ymYPcPOnOhgInBqy9WVEqYB/lgLljN1hAl0ElaYPuGRCO86fB51mujOoTfRZgsRHrzeSg==","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.85-alpha.0.tgz","fileCount":96,"unpackedSize":135519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzjRDCRA9TVsSAnZWagAA0CMP/AlhGR7+Wj3KhZV8kJgk\nMPkU/2mcYGjJOsuRLn7LDS9q6wt/rybzajlVcu1RY4BRlr8zsgS44E0uYgwk\n1m+wlOZNl7vUWND3Ky8/Ul6s366EqfeZR4UNZ6a1yKm9O0oWCpPEl0jsenBv\nE0ipCV0HPumMexy1HWHIop0czMU7mYugr1FsJT++nn+PY4VfTR2YzIuOLfsa\nKe0jxZUIzsheKtqVYQnADdz64vHpWiRefqGvYV6HLm/d0xJiBSB8NpfZ0hDl\n659IMQfY5hLlq12mHlfh/HNKYZd7ea6/l6S0IwbnYuJWusuoySMZ9I35aaIi\nj9XS1wUNztTTcg26Tmso0Np+T0SG/HTQnWPQWqPGOVdCTrwKiT4fq05i0J7m\nuFPGLkhz79xp505iOR7dZqLLOsEJP5xP+KQAzPP3wnsXtSPatPUYBnxAmSwz\nKkwruA8h9zk/jiVk8ZmCR/SzcjjU8/oL3ZAQYKyfYV12RiP0IEraQ4DeAwCL\ntu42+ACeDqBK3wArjHmkEYQo5VsONH+TrX6PRQyIlxq+ECRIQ3ofxUM2jQD3\nPhQOavpUQo5pcVGEhzY8TLq+PauRbhJQmDDu7u7UzlymVWgjltb0yRoij8hR\n0hk/HuvsiWpcFBVq1xWxLEnREh0N3cFroeq6BK50cPmrMzP1oAuR73pBoQe6\nREXW\r\n=IYNs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+TAs+j3ykxi20+RoDCv89zQMbDF6Da8O2+0qx01+uwAiEA9IRZkDzmIRu0g2Z/InyNbvK6mG75LgmxjbiGcwF9lUI="}]},"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.85-alpha.0_1607349314863_0.15258639804608132"},"_hasShrinkwrap":false},"0.0.85-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.85-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.84","@aspecto/opentelemetry-exporter-live":"^0.0.84","@aspecto/opentelemetry-plugin-express":"^0.0.84","@mzahor-test-org/plugin-ioredis":"^0.0.84","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"bf12a82fbe452dfdd588209a37013acbfeab16a7","readmeFilename":"README.md","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@aspecto/opentelemetry@0.0.85-alpha.1","dist":{"shasum":"96873c2b55b1a2fc988d6ff83bd8f8680b7f6d9e","integrity":"sha512-49eUbU5Ck25iWL01wDMhV8mitj2U7EAsxVkOX+YIfDfq2NG62rSCR3rJFUVI+l8EqE7bli1TmkD92d+O6i6Wag==","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.85-alpha.1.tgz","fileCount":96,"unpackedSize":135519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzlRlCRA9TVsSAnZWagAAPP4P/2rnDALBZFEevtFTw3RF\n7gFTmverjl+X8c9g9WySBj+84UInzko3BuuJZfSL4Sqjvjgf2pnGs4T0PfKQ\nKaTmYJB/toohdRlrPsIIMPuVyYhgn5lJz7tX9AcVwm0fPnCSpL2WgVdtRqOC\nOzbM9nBOh77RzIxHnjzBnd/rmUBacniHrCVVVWx2FzUYCDga81e101OdDKzB\nsYC+FFrlOt7FDvT9RMNHJoJFoHqGVuy5KZtpYfGZmvKHwE5u+i+4Yy0K3Qtj\n6LQ1aILuNQQtVImrR8NGbdgQosECmxYo/QYSL8T7JMF1AFRbHEgM755P8gr2\nndTWUUanMG1R0giztJJAoAPdPG5IADd4J27I3utY0s4PI27SwQVqDsHBIUj5\nF/zxmtQM+MTdvwr0ysVixLS0csIt/cLah+MVF+ZhFFw7LDy5giamMf6jJLfi\nJYK8f1Lfv6164d6RIjKXSIBFfn0jVRWe1RUaR9il7iaOc7qfr7KYfqRwDP0F\nSAka8SeYC86YxpjbzIGn7uZvil3+t0En8ivn3gnx1krZfV4RNkyOvLaTwzei\nM865QxXbcYikyZrXRIwHGxMldFSPeM8bJ/8HS+Dyp2Pgw/kdO9Auo8fM1qgr\nEDU2Q3ahqk2xHHPDiYCaAWYfxc81nPnk9aTOPl/7ngn0X30gddIHljZ1uD7A\nMjDp\r\n=ctmZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmIPNbx4NZl/rNTXwOCl+xj8izdmvpdFf0vGhAk4lYjQIhAIZWpgtzUds9aDk4BlKDFKGdGlDiTIHM7bhVv6SYJuJu"}]},"_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.85-alpha.1_1607357541301_0.5287851840284872"},"_hasShrinkwrap":false},"0.0.85":{"name":"@aspecto/opentelemetry","version":"0.0.85","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.85","@aspecto/opentelemetry-exporter-live":"^0.0.85","@aspecto/opentelemetry-plugin-express":"^0.0.85","@mzahor-test-org/plugin-ioredis":"^0.0.85","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"d9571f6ec420de4a30cb764928e646fc2bebbd99","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.85","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-2s8Vz+DBe9AifiwvdhraLhilTDynyMpuq3YvD2SMGZy8Tt2bCDus7/Oh8IJ2gxPfjK4bRfeazOfz4ilkQDDYSQ==","shasum":"2973cdadf7c44e323ee5943a116772386a18ba0e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.85.tgz","fileCount":77,"unpackedSize":129404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzlpcCRA9TVsSAnZWagAAwHgP/1TrY/0h9pwXM+r2A1v0\nlNra314qrW9Rjk44gEIiNvZ6ToYAhMuI0icD/RVntGLIvWn+3f2lUuEfJHqD\n9EP6R/TrBQjJ+nl4g5xcNgXe8FOvsS6UW25p01xtCG1T5xH7aAkQ9K3QfyYx\ngeNAHXXiPoszd6365PqmO4KNs5S2zTUryY0JvCwecQgiqey1BsPPD0e/WNT/\nOixQujlJ9Xw3DIW93UnKCVKGviB3KpP0xRSDIvNJLQrDjxLfDu9pLEISIZAp\nQvMW/Ut1QbMebPcXQzO7eJwkCytLSikoSPkJcdrQFaTvgQZNeo6UnEy6YXc8\nxE5UZ1nNvXEtgScCE/lkOEtyfpeHU1sPZ004Ew4Gd4Gnq2jnvuHE/flj48Ak\nPTrsFtYOiQUL/PAYslFM2dUMfIu6zwLFJIE3nCd8GpGvv4IUzpnTQAodGeRx\nnn+Sf9MLCXrKGnJdQ+RZlAFeKNi5YRnSWiqOZUhG817BflOO8n+CKC+dT7bE\nFJh6lOfdJISwEoJzZndUlK010v/lstYnp742SK0GY60P01GDssVozGyX2kH3\nmClj9iMSefbSO2fRkEfadjRD+Fn9JdjlQFQZQ73OrDgcmFb4GlLJJvFPZxCW\nWSprDVfFXfSv7nkHWwydrSO1YXZPQBQNrKY7jSREnxrpNdfJ6WLfBUt5S4ID\ndCKN\r\n=BLnK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxADsUiTix98s2HLsgVoK30qppD2Vx73iEXmVEU4ZWdgIgWWB6vT56S/VyNpX13uRcY22sS9C6IJRi5F+Luyr/9pA="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.85_1607359067923_0.12634084077693153"},"_hasShrinkwrap":false},"0.0.86":{"name":"@aspecto/opentelemetry","version":"0.0.86","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.86","@aspecto/opentelemetry-exporter-live":"^0.0.86","@aspecto/opentelemetry-plugin-express":"^0.0.86","@mzahor-test-org/plugin-ioredis":"^0.0.86","@opentelemetry/api":"0.12.0","@opentelemetry/context-async-hooks":"0.12.0","@opentelemetry/core":"0.12.0","@opentelemetry/exporter-collector":"0.12.0","@opentelemetry/exporter-zipkin":"0.12.0","@opentelemetry/metrics":"0.12.0","@opentelemetry/node":"0.12.0","@opentelemetry/plugin-http":"0.12.0","@opentelemetry/plugin-https":"0.12.0","@opentelemetry/resources":"^0.12.0","@opentelemetry/tracing":"0.12.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.0.13","opentelemetry-plugin-kafkajs":"0.0.4","opentelemetry-plugin-sequelize":"^0.0.1","opentelemetry-plugin-typeorm":"0.0.3","opentelemetry-propagation-utils":"^0.0.1","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"e69217049b78cbcafba57accd7a3636deac26afa","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.86","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-dBNb0diNcWtoE9Rq1nLOPmbYsfYm4/z1eoCMdNSnDsxTXS8ZwouLwaN9q0sbTXmnPGb7Zh0t5fDHDecOh4XjgQ==","shasum":"136baf48e094b85d827c3890efb3a82db429c97b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.86.tgz","fileCount":79,"unpackedSize":136474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz4UtCRA9TVsSAnZWagAAD5UQAIzfosBq0+UQFUBttXg1\nLHcdU0mTZ6xhq5R/0oPY7WvR5xjlhr3ofEG56HcwJD5jNTYqNVvMnXc2UJKK\njQAUqRQwWhFUUBQI7tMUR0WYr7QNGyPT0pxwCpsVeVtKZPKUuOSSn6iZsHEX\nRvzSKQ9nVn2DuSFn6JfJlJRST5bnMVnHfgJ/RjlmcJA63hG7zhZlveOHGV7R\n8fBB52D/7NKwJwfoGptMVBuJN9o/RqfqSuHJGH58lkr7EX9uSNued5sXLRai\nefaApb9nO4xzkAbXg2mdci7qFV6LNkg6RC4jdVGFM5ILOwzltb3poOhL2t0e\nxj4FAlzqMe5JXAQ45gK4h/DR+LRgcVnU1jCE1mDtlKCPL7ZWPRAHCJFMmPqN\ntYpP282fzpdiNq4Ho9AcCRhVKS9iZKMmb3ffXn1wUqHVocB22xoC47ppdGy+\nMpBmduAGNxcg4DpXtagCnDpGEht8uFRuqU9fG0+nqwOHD+YN5zpHK80UECPB\nSuHKq9JCFNlKlU7T8EPcjtXvHOO6YmzDQ07Sv4IhaUZqhNHsDKs/YIAMymCH\nnaYpPiekEiEFg9/E1J55lgVzKZCUGMIsXe6R0Or0ZZymO1vMPJJ8FMbp7oFQ\nAsKsnjzwkfsDS2yKHFENStU6xHxyLISomEZFDFQWoqTW5Wp4Q7pn/+IcPbGQ\nEvla\r\n=IrQt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/ZAZ1vFQ+niKj3mMpueEpeBaZlMvLLYpTr5lwGlMQSAiEA7Ymk24xuUQZAv9/cPbluXttNtoxqBdCHckSfn+HRAM8="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.86_1607435564824_0.9966464203101406"},"_hasShrinkwrap":false},"0.0.87-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.87-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.86","@aspecto/opentelemetry-exporter-live":"^0.0.87-alpha.1","@aspecto/opentelemetry-plugin-express":"^0.0.87-alpha.1","@mzahor-test-org/plugin-ioredis":"^0.0.87-alpha.1","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","@wdalmut/opentelemetry-plugin-mongoose":"0.2.3","opentelemetry-plugin-aws-sdk":"0.1.0-alpha.0","opentelemetry-plugin-kafkajs":"0.1.0-alpha.0","opentelemetry-plugin-sequelize":"0.1.0-alpha.0","opentelemetry-plugin-typeorm":"0.1.0-alpha.0","opentelemetry-propagation-utils":"0.1.0-alpha.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"20575e39e9dac968fa66e69745e7198957c19cdc","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.87-alpha.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-zYpfXvdxZycCGrfFcD94rloLRJ39+rCrFhBDPnz9YVsH26nw6MQNhnifK/XllEbqDflJCculHixd2skSONsMPQ==","shasum":"e32e12d43300fa20884f8fcf5f534f2955fc1340","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.87-alpha.1.tgz","fileCount":77,"unpackedSize":130420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0lcRCRA9TVsSAnZWagAATFgP+wcCYwAqxkt9x7d0AVG/\nvHWg3CpYIYXyLSjM/1CmcvCOnlc1C3B5/3LoUGFYsfStx7ecb24BUQrOrKJa\nl8f1kBC/yd4qk974a5st48ARDerTBcGFRktTYTisMGdCWQx8T19rsLT60Zt5\nOVqrxYsNfwsgpDmITD12GzFk4HrHDE8xyX13ancw6zfYut6L+fzFpi1QrVNQ\nNpG1ivZVt3XXQkiI7f5hGuipIaIeYymxcGwHxiEzEIwiScPZC/0Jw/dfFD2d\nHFI5uzbuaczuP5niWmpw3yzPfrJcazfyJvPC+YAum1Q+yFoC0aIeWZd7WmXN\nYA0/QqxNtiyTHaWkMoSJalnZo3CYDYsVYEIVOWdH7jnTNYFnH3WbWFLqztCI\nRAqEYfU+dClbW/Od7S43VPd2aSsh1rIW3nemlIj/9wSsStQFH2fO7HD8d/lt\n6f8SXPa+kTO671rMPvQ7hAULegp52JxJ96aJm7rY3qRRIbEx3sd43sickRZU\nc8XYDrplpLcab8huurebZkjzcBn4W2Y7ONbPGMd4vdDS5lCOwfqbRVXIossW\nOLMcEF3VTMfJSMkxsw+oX6tZ5YmqJRaqPUHlIu85lH+aB5KPakG+EarIjF52\n4+g/YJ5OYJ1c4shIOTsH2OHFF/hra/OpCSTakFJbsyKOMDg2Hc+raChWd/yL\nwLBT\r\n=6ko0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAwj+XNl7jWZeL5yZQYSqGqa6L4GfQjR+K0wd9wxp0bAiAgRyPjIw2j7+aURDUCBED3QX0rTQ7PvHCYcRyxm/L7TQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"habmic","email":"michael@topsight.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.87-alpha.1_1607620369511_0.8293265747961993"},"_hasShrinkwrap":false},"0.0.87-alpha.2":{"name":"@aspecto/opentelemetry","version":"0.0.87-alpha.2","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.86","@aspecto/opentelemetry-exporter-live":"^0.0.87-alpha.2","@aspecto/opentelemetry-plugin-express":"^0.0.87-alpha.2","@mzahor-test-org/open-telemetry-mongoose":"^0.0.87-alpha.2","@mzahor-test-org/plugin-ioredis":"^0.0.87-alpha.2","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.0-alpha.0","opentelemetry-plugin-kafkajs":"0.1.0-alpha.0","opentelemetry-plugin-sequelize":"0.1.0-alpha.0","opentelemetry-plugin-typeorm":"0.1.0-alpha.0","opentelemetry-propagation-utils":"0.1.0-alpha.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"1d24a17cd687658c531082b12a8b962905fe9add","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.87-alpha.2","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-hzVuBFTdLVmGK1XKV8f0TVU5WlvVzuGpkFQlH2sghfxAd+43FqmKpuc3IvNIrLa4AgmAQLEiiEIRH/vdHvyZBQ==","shasum":"d789e9333f4e8c8b475028b7789ac3a1c613eafd","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.87-alpha.2.tgz","fileCount":77,"unpackedSize":130762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1gWYCRA9TVsSAnZWagAA5PUP/1ABqslq/cLImIkwFUQi\n8yxC7UxvTbt/nnHyd5BksH0ia2jAaCPKe3Iquq65eZgLvqnqGLYi8G+oUU18\nAD1a6qjNl76wst6ec9vA7PBf3shppdyHF9/hFV8s346Rvg+/U8+jxBYaxQza\ntqvhmnwakGZdF/rYHd2OeD8g9B7yr8KjwjmlED/xe6toh25qVpEnCvxnAWio\n6V+oM/BEiGr7TDq6wKam2h6t6ub3tjXqkoJfLDHnUX/ADtJLi9l0T3aKeGB5\ngLGbfCDTTaU7c1phgFTaTKe/l/KYP6WbBpe4/0mEI0CROzSD34e4zZF3cUUX\ntv6Fn2trSyrFID9kfodMgE8PLjBeEHVTJ13IG7l0URHh8B4dZRpoK8GWy5GM\nElkDyWKglFsNQPI079t8Fvr3Jp0re0xrVEzoIPDjR/CLvgICjAsx+bm0yjg+\n4SI6aXMwZzw+RZE7/8pgA2ZcmLFopeqh2UdAKYQAJ5vrU/3VvijbuYQ0tOKQ\n+6uVDvqLsybNUHscx1xe0PR3lx0Gf2il33Iktmp5mkkbN44Mep7VlhyQvx4S\n8jominAkxNtLeSUkDZGHDaxiqwcM2sY3304Is90FG8qghlXnVFhs0IcNd97e\nsZEpfMj7AvZyzRrJyV90+2dgMpMFpFuP0l8/+Or3DU+N70w44NCUpkfNmYdD\neTT5\r\n=I5ck\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBK8xXOsYb29VMUaMCBXY+Tb6UYvHYmm4imF3zpKpl5+AiEAvR2+7F1YByIY1Ym2m+6HTqRa9U5NgSr9baSeofZECUc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.87-alpha.2_1607861655820_0.02562930102262384"},"_hasShrinkwrap":false},"0.0.87-alpha.3":{"name":"@aspecto/opentelemetry","version":"0.0.87-alpha.3","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.86","@aspecto/opentelemetry-exporter-live":"^0.0.87-alpha.3","@aspecto/opentelemetry-plugin-express":"^0.0.87-alpha.3","@mzahor-test-org/open-telemetry-mongoose":"^0.0.87-alpha.3","@mzahor-test-org/plugin-ioredis":"^0.0.87-alpha.3","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.0-alpha.0","opentelemetry-plugin-kafkajs":"0.1.0-alpha.0","opentelemetry-plugin-sequelize":"0.1.0-alpha.0","opentelemetry-plugin-typeorm":"0.1.0-alpha.0","opentelemetry-propagation-utils":"0.1.0-alpha.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"e8a6b4ae8e5376d4aa59ea83f11b9252ca23155f","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.87-alpha.3","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-6TZug3SZ6gOfTfwF+/E+4jIsPns4uCUBJu0e2QP8EvByFf4kt9Y+35A4c/Z7po8LMrYZKYR2Qt7GQGfGl2+TVA==","shasum":"3968f8f95b2923fc4708107ddf331c2a00941507","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.87-alpha.3.tgz","fileCount":77,"unpackedSize":130962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1hB3CRA9TVsSAnZWagAA4FgP/1sbr0R/93as/W+xgMO8\nbPr/B9sOskXmvtYQVrobwWVaYHEXt9KVLJlIwMEFpgXyppwv248LCrdbK6bz\n2bhHybKIp2Vd1WxGtTt3BHCl1tVcdEuiv2xS2P5PWvFhcqyNZHOti/Bwbaq0\nA0ihz0+TAnLXFf1yC+zvjBlhjDHJ1ViEX3yAqf6BtSuH1qOr2ZUNIWwCek1P\niKhGyWZevpx/4HApYj2UODYS0k74AbJuefxpsqMuJ1KK5iNGh0eMr6kW+wDT\nh1GFx1E3Q/R27efiHqwhs21aX+Pe/3dAUyTZaly7LgVFh9aTsJI++5RlSZsy\nW4hCNK+XAHlM5hjyxqlDvqXKuWJwgosZdsZBfuFwsHlPp2GaQCy/rBwK2dUh\ne7WGdZzSPm5MAYlIFmYtSAnxCO1oeVDgt1yA1FrJ+6UI1KoyHK+qC8xs3SWX\nAzcmF8Z9zVsVZepVevfZb1HCZuHxtFKIKRkYq7QM3RTY2lRTwA5TQ5Kzzhj6\nONvStFGUu0FTWtQq6vfsIZ8xKfWxIk0BghsZUb6IjdnwdNrAdgTEYRGl21k/\nMTbynEdbHm0i4MdiAl8d5vuOzdV5B0nSvR5oDL3GMbuDOlYZPp1QAJXyqHmQ\neUZAy/0+YM8/zQcsEVzUvWfFD6lIJFVkykGfKdcwZJsdwueQUbbUn+8Jf753\nGo2K\r\n=Rmx1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDHvo1P/I7pLL9TZSSUElwUzq/wp4qh9UICdTOUGn6m+AiEAsoZH4sarbXDfTxgFpFMXNQMf1zNOnXOWyzT36VatlEA="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.87-alpha.3_1607864439210_0.18258172860127453"},"_hasShrinkwrap":false},"0.0.88":{"name":"@aspecto/opentelemetry","version":"0.0.88","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.88","@aspecto/opentelemetry-exporter-live":"^0.0.88","@aspecto/opentelemetry-plugin-express":"^0.0.88","@mzahor-test-org/open-telemetry-mongoose":"^0.0.88","@mzahor-test-org/plugin-ioredis":"^0.0.88","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.0","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"1d3a263f761952fdae99e2be8d977754037e0b92","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.88","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-ZAA9cTnY2w7Nq/xK5edX2KA2FI6V1kWz6vt3ysGD6SWJiWaJCjLJvOgfzsDEkQQ61QYW6Val3O+lNWgh7X0wNw==","shasum":"af1960419199a60306acd3dd6931d0454c9a30c7","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.88.tgz","fileCount":77,"unpackedSize":131234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2iGeCRA9TVsSAnZWagAAqHcQAJOKZHYw1RZT4K9T3Fdz\nF72FGicGghrIJmrDkueY7pB4rfNGZfZco6Kh1PhcmWcYHZQHkuGkL2yLh4Hk\nfGCKrFZE3WCKauyg+2VlmAWo3wSbymRMq3nRmEFB4b/oTS5WJC94wsMYGDcU\n892sxZW5CwLlB673RncihdYz9hMlSMMwIqwvVGmuzWcRCydVwEJHSEgQvI9I\nennEuYoAuDv/wOSVFlbaYSPVFPNl3Tn6wwssL2D41ihkNf3PANzNiAtG1cZj\ncczbUj3VjSsnOgH09YAMbZF7zlkPuCP5U3or4Kbf3aWgeSntehYUCBu5ko7p\nmWkNaLDet37wta/+vM+xfWue6kR0yNx9efOZwW1j/66IE58rubKphrHHuUag\nNjuB8ki+z696M0q4tzOyUhZ/61buKVdVm50hZEUdCgu1Q99tyyyM/7+D51SG\nBBhpg/dYEaSo8kbxNpZo7lv0Qp6XqGmefBwZTyylVQEg/7VYoUh/4kIlFLsJ\n276HzLpHxlXIakco+K9Dzlne4w71OISFNT+FVBIeH1vp2Y7D7JHue3NKLpe8\nR5A+MOLKUAqs+uKJfvImDCDV4/fvduYlFE9sL0MtVZny+ifdVRqj/K3VOfJC\ntA6QHg/Ff59Kxht3PL8HYdcgAhmCTtrxkBvWA4ZZPN5quQV9AJGci6POgyU+\n2yA+\r\n=zPyp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZrVIMCp+4nP3CQ+BNIJ6Z/ZZXNOJZ3ANg7dQnPfRPGAiEA5lQuC6RXbFDPxv+H+0XIoZvvyXllz/YITYFZi1VlMCs="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.88_1608130973621_0.021718253288413925"},"_hasShrinkwrap":false},"0.0.89":{"name":"@aspecto/opentelemetry","version":"0.0.89","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.89","@aspecto/opentelemetry-exporter-live":"^0.0.89","@aspecto/opentelemetry-plugin-express":"^0.0.89","@mzahor-test-org/open-telemetry-mongoose":"^0.0.89","@mzahor-test-org/plugin-ioredis":"^0.0.89","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"141c297f478b630db7bdbde17437e7d0182ba752","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.89","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-uKWLpbM/SJ9dSNN0WAYSpGFgSZmd1z74FPzIW8FTxbl+dXnJ17+MXG4W/iF5i66VdNtMFB0wC8iwCiCx+I3Mjg==","shasum":"a5f3a2f63e48d338dccc9cbce960c90f092192fe","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.89.tgz","fileCount":77,"unpackedSize":132992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf32hTCRA9TVsSAnZWagAAoF4P/3l/4zg4jyVPwfrQH//p\n96E4hZbiWfLheX5viQ5umuape5xG57aPqWyP2c0R7ldX78Dy+27iOM2LanyD\nAnVdQgFCnY/Qa2y1YkwsGzUBs/SRs0qHxnX7lDOjIS+iqL7YrdzINhQ4k+MW\nbUQLzxK5kJJhGctExSpOJY88eZzvfpt7VUAlC1XGUTji6+jUTX7EgOMwyRcP\nTaOTYgMfO6+PgEztZchdWpt0AXX6ZJnm7scOKQmwGxHcVhrfN2r1+s8evatY\ngWM8ek9GVVZX0FaBbSFQbCmqkVXdAzF/GV1MG2j2f2gsQIqgiJaE4NYHmA4m\nIu4f+QQQfGz51pVvojKLQn1de+ZXIr40KHrLJ3i2WY4io8a8p1af9LO9qZ/Y\nwdrCjMMww0sXc4KCCbiunUIGYThoihmAmkE1rBnOwXeCgph5OsRKpbXCsWmp\nC8jnX9lF9GLLRq35HvitcD9ywbzRXDgPakUWIFOL9z6JB0/3b4kr1D5kYl1v\nP5/nKQc9bl+o6Jo60FgS5+3Ni51DssBrm7zksov37ZbdYDQCgJp8XzcaJnjF\n5W0qrkpeBTbSlOdpOwQnN44/QsN+Aw5mz1vxy5QpJpkQzo4XfkCfJ+bZgQWR\nyWQqt5hLYvMQAu8QciehX3jaluWbHF3qqEaZD7qiWBGeFM/8lGZfEcwgqIXE\nOZ3a\r\n=EDvK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYuFjSXJFs+R6x5neyzZ+AVj2Vc6OsPGc5O3IC5fZJmwIgKYfcQVyUyI4ASjiV9t4ka8aYDRlNC+rMgdEBpvapLP0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.89_1608476754882_0.7119236838273362"},"_hasShrinkwrap":false},"0.0.90-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.90-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.90-dev.0","@aspecto/opentelemetry-exporter-live":"^0.0.90-dev.0","@aspecto/opentelemetry-plugin-express":"^0.0.90-dev.0","@mzahor-test-org/open-telemetry-mongoose":"^0.0.90-dev.0","@mzahor-test-org/plugin-ioredis":"^0.0.90-dev.0","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"300c906976746c88b09815b5add2a2605577e1e8","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.90-dev.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-edCA1lsaxHdu/HHu38KPjo5MnjYBiK53fS5bTAjcDiqUzautsDiOJLtwORLXJRtxcJtY3wa1r5F82qapft59Rw==","shasum":"f2b37ec591f424ffc2d5187af3d0076e30558b3d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.90-dev.0.tgz","fileCount":79,"unpackedSize":137190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4L28CRA9TVsSAnZWagAATqkQAILIRqKlZNMJ8Uh5lfnm\nBevpbX8dX6fQjfi7U6NtMqgs8Y2ICCzu4WAJuf7ipz6WhQMCpXgeEXmDTznK\n71/fGh4eZj+uZJt3gyCKvGRttFhP1qbU/u+KFKifG0PICm7jlNlBOhKA7JEx\n7DnPm8jmhWxlXWg0kfphhHrctb0TO+DXWfnv9NsHnySLfO6qvtR2clvnEkuj\n5kxzXCcomHphnw2GXGcEGQOC54qvU1LQnB0df+LmUT/nYHqbBliBTaA6/o3g\n/rNyJ3qxTqTBMCOqmhT0WvNGlEk0ptNhbPc1Yq1SzfkwnBU8LfYGk5JI39BP\novtUeTX+tVFJPkL6JCuVyx7x1xy7fvcoLs/ERqbP9BUP+BRJSY4pSfPvZSTO\nwnXsC62RSyKkMK97+xGev9FC4jVMyAYyti84Gjn/OyNsNqtRTa6Rc4swRm2i\nlh7PtIhuj2g94QWnT0IZVTARuLhxuWXwoTjzrGv+FF3q2eWPpwf0f7HUnTlK\njEWNe9HGd+D+qW7WF5VWF2wLcKp3hg3+0Y2GheG+gzKQjJK14VxsYofDXuIi\ndoSvIrRYKdY9Ey1rr0DXCe32CZiW4U1N5e4sK6sBlgLBN5rpt1+oxUhLAEmK\nx6GDxINedl1GPmPRZTgUVpWTV75dnw+hBfXzoKLLAVlk0t3qXQGsfzURWY7y\nxhqf\r\n=+P6L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLphooqxtqBeOVkT2D7/AKnsIwruiI1gdcvwgW0oLziwIhAIhjPdREyQP5viauUOy9j95WL/VeyiV2N9W8Ju1YZMMq"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.90-dev.0_1608564155523_0.43290145771635835"},"_hasShrinkwrap":false},"0.0.90-dev.1":{"name":"@aspecto/opentelemetry","version":"0.0.90-dev.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.90-dev.1","@aspecto/opentelemetry-exporter-live":"^0.0.90-dev.1","@aspecto/opentelemetry-plugin-express":"^0.0.90-dev.1","@mzahor-test-org/open-telemetry-mongoose":"^0.0.90-dev.1","@mzahor-test-org/plugin-ioredis":"^0.0.90-dev.1","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"3deb44d8ba30dc5a37f8c32eb4dffb073d353170","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.90-dev.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-CY70Cw8JAoGOsNw79QAEpuXU27AE7ih6mstzDcc6XDXgX2EwkXX+8b5TycFKhaxFbHnWCNu+soI5OPcpfAqMWg==","shasum":"1cd68433062526c9532b6146b1164b5ee80b706e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.90-dev.1.tgz","fileCount":79,"unpackedSize":137959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4dmnCRA9TVsSAnZWagAArJEP/jgxvkH1KjzEDvHznhQo\nWdjAPGZfo2eYRpeRYEsDp2rOFDciOKDFX3mxJcd9HMxdEK2A9qYIWCl9j/W1\nnH6u8XJQYNob3dQA/AfzEZYVhZvYDSE04W9VBIulE3SrBjPhibq4U/IhsH+O\n/lzTp/sNrUfdrTDeNG6Hoh3VU8dTRLSKqffpuVtjQrp8bbA5LDBR5pq+Few1\nfPhN5jkU/JHjnz0sXXecI6JHzO1Qb6Vre1kQu8+o1n0/If2jCGXM9UgQS2gD\nzABSnR3XCI1/nwl71oUt+/76gqrieSXc/HwYbMMwvwIvk5Z5SNOXPgBIswYM\nWlloD2fWY2hRzJ7Y1L8nGH2blwp77ABhx8COFOiUX7fnBnGI1Jo9UlsClaP1\nWLt3bmbl3coeKeR1RENBrfCrVY6z5waxPTBfigzpV8CT1Jhj4TPM9n21fsVQ\nKbvcKzSCX5sciE4IAZWPKDNZ5s6ZKT8fIo1v7UzGoE95BAnsUPaHZL0TXOzZ\nGLu9dtxfIsYVDucFrPwTP8sJ/0Vu9niNKdxtFRsL4SGbcnOqeD4WZvDj/I+9\nWhHlNVLYhS8OmOeEK3p25XZOqFuL4RAvk9AmA2CXAPaEuCqLaZD4uuVDfQ1r\n/69BmDHmDkg1Y8stLG3fVQuMjl+hAWwgQAC2pnGyaYEzkTQJYwBDmlBSKwC/\n+Xsd\r\n=2TEW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwCFQNLjxwMss1F9QAy8up2RPIJtVKbMWMdmb0OnEoaAIgd49e8SkZCODKR8gL7c2obTMTfrE7aSIznSA5YMiAggg="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.90-dev.1_1608636839419_0.4305911414854613"},"_hasShrinkwrap":false},"0.0.90-dev.2":{"name":"@aspecto/opentelemetry","version":"0.0.90-dev.2","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.90-dev.2","@aspecto/opentelemetry-exporter-live":"^0.0.90-dev.2","@aspecto/opentelemetry-plugin-express":"^0.0.90-dev.2","@mzahor-test-org/open-telemetry-mongoose":"^0.0.90-dev.2","@mzahor-test-org/plugin-ioredis":"^0.0.90-dev.2","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"a2e54c7d016e11ce8998c69517ff5f63e5384846","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.90-dev.2","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-B8rEiaGasg5+/XYTQW6M+8XY75e5LWHYDF5Nzljier3N4Bwcau47aN1kXjbeeuMv1KffohLDVn2tYnfvRwiftQ==","shasum":"bdaa1373b9387ac6bc097fdeb799d5b0304cade5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.90-dev.2.tgz","fileCount":79,"unpackedSize":138272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4gpECRA9TVsSAnZWagAAcakP/A78M1Rmkks7Ci9hsSKU\nF+mzvPdRWQ5O/8H6/DozgMz4XvHMS4DKVek7FUMCdE+ElBX9cqTkpfTIGdzD\nrZVoDLi8WSseaQROr6aQ4RDAT9zqYrI/5JoG5R+Sqiprd0/A+aAvjYfYATtx\nZiPcJK44sUbBlzNs3thxUecs3XKu/Z9nxhxZiUttvIDiWWgEVlMg5eXqNcMz\ndUHPY2L00o1gkOKkNDvEJdqa9g4JnHxeBXCVQZxwjBU+WXAefGk7gmRsghhT\n1wJR96JwV/8dq2xabPqZJU7GVmeWKBbayZpErxL/caqLXcb04LPSyBJ72rrL\ncCfWa8yLmS4s1xHb/ZodzkgEaHBRZd3X+H5BUOJNi3AeSxtsiRHEZ3nj4aY0\nwgbZDP5WN76YORTelC4HHZTkmR4BHR1kbzoLJrj2vo3cv/FBo8zsHUnBQZH6\nTehQo0jG7WI/Bs3LeafqYxM5h8g4evgaAfpjYO03leo8DgKD82DudnsZx675\nUhaTxiYqdLEg1UUZcpreaIviEK2SOl2usDGrJi2fxRPl9MyEHnxgVz+r8KE5\nabZ37ckYzjbLfPAtg4USAhfSTMwkLuom9SLjoxRlSfz3H0fKMTJsIfBE4p+S\n/9kOliKkpfMPVyAPLQu7/RWVfNOMAPmMZZiR/Kwnb/VwyfR6xiKxqkEOCvIT\nIyJs\r\n=n5qM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZaGRVT7DwcZwdcVtZR4a+mhumRMZViDmgNg6UW5w/YAiBV9F9nHNaiJDCBy8sqc/LifNOGkbs3pgYo+buXt5iT2Q=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.90-dev.2_1608649283969_0.37023575222525906"},"_hasShrinkwrap":false},"0.0.90-dev.3":{"name":"@aspecto/opentelemetry","version":"0.0.90-dev.3","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.90-dev.3","@aspecto/opentelemetry-exporter-live":"^0.0.90-dev.3","@aspecto/opentelemetry-plugin-express":"^0.0.90-dev.3","@mzahor-test-org/open-telemetry-mongoose":"^0.0.90-dev.3","@mzahor-test-org/plugin-ioredis":"^0.0.90-dev.3","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.0","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"15697121ec8fb1ccc7984c5dfbb9199a2a0381f2","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.90-dev.3","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-stm6j0+siwjOOwimW3+/o/QakQ4W1xdnYbTnS/YAc6cTsDqmJWKLfCH8fEWhQYQQ1b9qxld4kwlGJSPeIXaxfg==","shasum":"93ebccced5d032d2e6fd40cb7885383b4efe07a3","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.90-dev.3.tgz","fileCount":79,"unpackedSize":138572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4veVCRA9TVsSAnZWagAAC6cP/0CtiYJTCtidJL8AZBaE\n4oPMBUfUK+pQI1X6qbS/VvvGMGITyamxDgOBdMTPddr0BuYFbIvQgBzkuJpa\nNVg24Uz9H6vizlMZWIOIpx8gao+Lb0UPdHjg5CsrWH0rM+R7leMjBDKk8R/O\n6ugQiRnSTCOhiKvf9GH70KRAMzN2ltsVTUgZ1wE/atYL077P8iB/ZfiNONEK\nfs0ffNhiK5OFq1cL6FwYfQL5TVJLdamz3HANZz00A21fLGvVCQ2kMJ9qTih9\ncW5G7vSUHjXC8kC3O98hHPeFbcdoeWU7oFjWrReQ803NiYoA0eKTbrG1FCs8\naMAFozEsV/TZ2BjvrRxzy3Is7FFrLokBCxz6tesEUIaMI7wZZG+RZpigwkVL\nCqdI5qUcIL5h6erjMzMsmFr489P+SRyrxSle3TsVeydo1xItTRO+cpdm8yKu\na2Irx6uNU02gr4lTIuYxxysdmSNSbULXRnVOUHHILmye8Hv5aYBXG9Y8eFne\na7pZPwMRbnU8ODfyh3w4G2zAzoi27kocxdJOk6HkqdfzKSY4QpMG8sKvVIOJ\nBqed7VWIPusoSZYK5zbNPDEH17nTPFlUSW3HbXsxb04U/ZPzqKoZj89aSJuN\n//4MhNsVzBMlBtDZCQH3pySQopNm0lZkaGTNA1IBwPWRZArxN+I/wNLWmbeG\nAVXp\r\n=ZY8f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDioLo64iYnrKUgvsca44p+UVktFj7TYyDVbBuxt/E+UQIgKUFIBuB29U26ST56EitB1BHd7pPI+///tzOGa/QwNd0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.90-dev.3_1608710037160_0.12248850635212505"},"_hasShrinkwrap":false},"0.0.90":{"name":"@aspecto/opentelemetry","version":"0.0.90","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.90","@aspecto/opentelemetry-exporter-live":"^0.0.90","@aspecto/opentelemetry-plugin-express":"^0.0.90","@mzahor-test-org/open-telemetry-mongoose":"^0.0.90","@mzahor-test-org/plugin-ioredis":"^0.0.90","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.0","opentelemetry-plugin-sequelize":"0.1.1","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"36af64cde56b9271e4fb769284a184996b8cf6c9","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.90","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-yiMEKw6kcNgPsfvhXzl9UH2uFwUqbq0T5qOB6N6zBwVoBcHy69MgTIZiH5fXtVVK1tNv3QriZEMQMpBN7a9v0A==","shasum":"50c3e5c555d00beb86737cdbb12503d34018affe","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.90.tgz","fileCount":77,"unpackedSize":133168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7cFjCRA9TVsSAnZWagAAeKAP/2/Ur8UQ1MmF2PZnJj2u\n08G2Bk7lUJ3h6/fCCuNHdOjgiG40xeEll3BXLCWbwy6fewk/dkGU6rHGgTfa\njO5xDw4kyPqce5/cDuBLwvtmW8Cize0W1XvceREoHGvYAirrE2o0WCfmpV+q\nNu7bUB8Zjob8f4XTYmTlfuuBGgAppmulMkcL+TByhT1i0TtWDAsJ4LwUkOxQ\nlbSlr5Vl9ti7QQbtREVffca6ILr9YwqPgzpx6QCxWHObc/4+HSk4yZ4P1/nJ\nZFToCNn+TIfEUiYhUXWfpqmkgU+evlrh2dnhRrYF5uVXBT3t1PtQgGIPbsp8\nGmG+sfZwT8TFx2I8p/2yVi24NQ9J9vjr4BK2ZK1c4h7ABD63l+IMIyaX4pbC\n6SAKpxXsnJYEGmD0xPjEElxUAxE0pVwZby/1WhsTRr78M4+my3iWLIJRD12K\nmdDD4E9uId466KiqcNG5Pw4yYmRQOJwHnwNecugX2O1EblSAovPLXRSwDwY4\nN1MgF8fvE13lyzmXmEi4R++TlDMAWVJ+lYMmZcmJ8vCk185IzZDd/EiTgUlp\npU2jH0d+ogvoDf/+sIXGdMLfc6KgPBu5kH6ULikoAu9zb6JLrx5Hdej16wrn\n9Xbo2zSB853RCL/YaZVYTDHvSAY3RkaywaoLBobl6JkE3Tq1K/YY1POcqCwi\nSJG/\r\n=b6AV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSYlUPkllDTuqICXLOZ/oAMB92EXC8byC/LY3M0eIdcgIhAIaxxlCqiWvqrO4iuBuhOJTIPCE9Y5ebvgFSOxunVtYU"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.90_1609417059036_0.2748613929013555"},"_hasShrinkwrap":false},"0.0.91":{"name":"@aspecto/opentelemetry","version":"0.0.91","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.91","@aspecto/opentelemetry-exporter-live":"^0.0.91","@aspecto/opentelemetry-plugin-express":"^0.0.91","@mzahor-test-org/open-telemetry-mongoose":"^0.0.91","@mzahor-test-org/plugin-ioredis":"^0.0.91","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.1","opentelemetry-plugin-sequelize":"0.1.1","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"91a0c963573eb0841c9238a7cd8c9d91006820a7","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.91","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-vieUmCXx1vFGloyJZTQae+Hobgw5edN1vjv3UHkNjcNgapq1GWtq+Gk9Hd5cKjNbPGTT4pw40mUeS0DHGwWt/g==","shasum":"9881e6f78c0011d6323574687a073ada71a0a13a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.91.tgz","fileCount":77,"unpackedSize":133556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9G3NCRA9TVsSAnZWagAALgYP/0SOE9uChRdgSjs7lmF8\nViQljTJisi/3GTWPepfsXtgHzKod/wBkuaHN8R6YVQvUhScbplDqAo/Et+mN\nI1Tijtij/AGdBL7xJo/nEQU4LToVvuKSWGGsjBU6qRvdI3uXNvxXZy8u9sEM\nUgLW4sTtgFsAuM5ngADrdkyVXe+qcD1y2SkFhF/45KgakcFA8EtDfsIc3fh1\nC3QVQsFgxugLPI0WrYJaMjLsW1jc8gULRMFgG0hvyJYykwTFOhaiCEjYlhWJ\nErLsqytvcgRw/MN9Xa4JsFmbU1zW1W/ZZgYWUh+u4lNkmm3CmB2yG9zlVynX\nkwISldRoh64i5lehm5dqODQNZ4lGqNmhwON/oaVJw8tz9hINeKx9iF1xQRSF\nrDzQvPteXHLgA8J+kRTM5yrT34n4koZ9Rm7hOCfCtIwDNlbC6OTAlrgYftkc\n2loAYC6UkFVaqH8W0pM21vOrR/DR0Qr2cbt+kHuF58ndKYDJKOTW/fJCbdSq\nK7VVUsM4n5u+9AEEg6bKYHEzYPjxgPyG4N/V2Rf/47kHR7aseQFK9zM/Nmov\nTlvBoMJHtdmsRY9WsmQ3AMivZZ3nD4F6zQoAZhcqSoJoJFvV/7eVG3G+F5xi\nF3UhLjn5J3sRb1ZmuB9z8pTKRXcl5X5EKLUtoYVKq6+ReHq9f3w+NVaXZn0v\n3ml0\r\n=h/2V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWbxI9PnKb61bjA4C1NtZYEvlX4anLmDGghjHElXhd/AiBri2acLhe29jEREwWG+qTxG8xiLobxECqQyKUBiIS6oQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.91_1609854413113_0.5563961379047828"},"_hasShrinkwrap":false},"0.0.92-dev.1":{"name":"@aspecto/opentelemetry","version":"0.0.92-dev.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.91","@aspecto/opentelemetry-exporter-live":"^0.0.92-dev.1","@aspecto/opentelemetry-plugin-express":"^0.0.92-dev.1","@mzahor-test-org/open-telemetry-mongoose":"^0.0.92-dev.1","@mzahor-test-org/plugin-ioredis":"^0.0.92-dev.1","@opentelemetry/api":"0.14.0","@opentelemetry/context-async-hooks":"0.14.0","@opentelemetry/core":"0.14.0","@opentelemetry/exporter-collector":"0.14.0","@opentelemetry/exporter-zipkin":"0.14.0","@opentelemetry/metrics":"0.14.0","@opentelemetry/node":"0.14.0","@opentelemetry/plugin-http":"0.14.0","@opentelemetry/plugin-https":"0.14.0","@opentelemetry/resources":"0.14.0","@opentelemetry/tracing":"0.14.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.2-alpha.0","opentelemetry-plugin-kafkajs":"0.1.2-alpha.0","opentelemetry-plugin-sequelize":"0.1.2-alpha.0","opentelemetry-plugin-typeorm":"0.1.1-alpha.0","opentelemetry-propagation-utils":"0.1.1-alpha.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"f8ffc256f04ae78add7346b736abc046f1544a6c","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.92-dev.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-VieJH/zxR/AKbcwlXHNanSUWyvRBLzjXTy6hUlFUtH639CutPAkcsM+mYCgA46I/wHaWjJyiI75n1dbXdVa7SA==","shasum":"80d3c6c801a12f8fc6b69a014be39fb122b1f2bd","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.92-dev.1.tgz","fileCount":77,"unpackedSize":134391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9Zh/CRA9TVsSAnZWagAAnEoP/3Qlhjv+Ah7RGMkFXX2Y\nyBCypWdnfzIgQ2nuDfG+34Z2ajfQDBGgqFqkNsgBQwYEWQjVNZFqGmOiMK5B\nof87qkMku5o++4nuHo8g2BrDQHyAIJzxMWwjfVLCbf90VOwkJzgO/NDPrSmF\nRFRO+nflYsdnc7dvumiRqcL+QsVkQz7kNDmJktBByEOcRUtay044Mhq65IW/\nvd7gEk2dlZFFEWGaRGcX05Da9/0B3KqeJNjBhyc+4dkTorsSlp/l7tpslIqt\nul8iiMFt/2hFE9ATqE8CBBA3rzVcKJoDnOf94AgPXGRrFHgx62Se3Z0mvhkq\nh96HWO6DjKe9VCjp78V2zetRfNeW6cgAXq/zvcjVbtV6DogMX1RyLgxWJCY5\nmq8S5aLpYKUFfQWiI7ifnbjvu5IwKq8XbTOQwuKIwIiMoLc3ZndBnDODe1I8\ndWZFRwk4TyMWeK3IWvPesgfKE1xQSAMAHIswK3pzmqDuitq5fbLFeesJnuA1\nGbJxPTAC4Vm+1mRj+4HZ4pG+kIAybfcEqHLSJu/5oIEwaWeP0XZVi9JrE0Ce\n6ng/0aRkljmD2HwIUurm19bS4B/mRaN73r/cmKqaki4pdYSIeAyvqV2prkE1\nnt4+NuuaGWWsAwxC+F9v5c7w8xdCdgNVp3OVPQZdvgzuBEjeeeEfxtCKsN9j\njjST\r\n=FPxx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrFmZMfBGchXYQ8pLpAVN3rpDk/IRFwenikAhbbCnw6gIgbrrml2syCbQ94i6Gflp/Hbrc5c8+9X42tN+PEkWc8Zs="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.92-dev.1_1609930878994_0.8418146135203513"},"_hasShrinkwrap":false},"0.0.92-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.92-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.91","@aspecto/opentelemetry-exporter-live":"^0.0.91","@aspecto/opentelemetry-plugin-express":"^0.0.91","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.91","@mzahor-test-org/plugin-ioredis":"^0.0.91","@opentelemetry/api":"0.13.0","@opentelemetry/context-async-hooks":"0.13.0","@opentelemetry/core":"0.13.0","@opentelemetry/exporter-collector":"0.13.0","@opentelemetry/exporter-zipkin":"0.13.0","@opentelemetry/metrics":"0.13.0","@opentelemetry/node":"0.13.0","@opentelemetry/plugin-http":"0.13.0","@opentelemetry/plugin-https":"0.13.0","@opentelemetry/resources":"0.13.0","@opentelemetry/tracing":"0.13.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.1","opentelemetry-plugin-kafkajs":"0.1.1","opentelemetry-plugin-sequelize":"0.1.1","opentelemetry-plugin-typeorm":"0.1.0","opentelemetry-propagation-utils":"0.1.0","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"9add23fc520c9b2dcdf6604695743b4be6519e12","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.92-alpha.0","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.22.1/node@v12.13.1+x64 (darwin)","dist":{"integrity":"sha512-ctlelzu0+5G8ya9W1zPP15+YA8Lc2WxLEEKwRzKnBpLTkFqLgKg0iMyZFeIIR7AzjdHIyKVq8vydyYEB9XEkFw==","shasum":"f411388bfd2d031ff7dfdb29120ad7041f4406ca","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.92-alpha.0.tgz","fileCount":79,"unpackedSize":137872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/ccACRA9TVsSAnZWagAAb/UP/jSTKL/kRuxu+318DnQI\nN7AlPmlAvR07oSE3XFkPVNNkbCE/zq/tNC39Fm+bso0mwLcdY506OL/xVjzg\nZeXcw6DK4fsvw08n3N7PhHlhl+R8T29M7sSxi9tZqzZUnQnuYRVDbWDLhufd\nSjjoOsw6PJH6aHaWO7M4csa6Ts3DeK6pG9GgV7cC6RemhQSxXMV5/lgR4OGm\nlNSGcbdLhhDGd4B5dCWp/6lsspBRZhWTeQ//w0/DTMCrixih6eXMtuV+CnNv\nb2ksr5gCR58GsgWJ3ZHkxfk6sVEg9ohYI7GjSRUF+e+pG4swI5bODsl6wYmJ\nVEkyJsPK/x7EWUXyhiAGJYkYDL1N1LEJgmZhkKTgEXr8/KQmPnYV5eCdVrW8\nRSQ9R9dQ55Wl09pW62qgHFOGDj/+37/zD+aoBVMaGrH61ReGgeZ3hJvugXn+\nbVMlFIjgf2TIw5eHlG7GRADYsEoyKjmMUpRg/tjjGbZG+NzHRvoPrAsWGe/G\nA+hLy+QsPFhkvUgs5QGboX2Zdlhn2tnCcbLCcgY04h+J6Qui9a5fEFL+6bDS\nye4umvZjxhXtRmPskE0kEARCJL4eaeTJgIt7Fbi2dULCRYntCvOik3ALNXK+\nC+MulgkhgjQOpoit4hRnkm5WtPf4NvEj25k7D4YAeTvtZF+RZNkWU6ebmUcI\nr8RH\r\n=Mgi6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHhvaR/qwwz0B/+9D2t4I9lEyLj/sgraKij4UodMgZBQIhAN9ggnTyMggM1h3pJquMUfzK6JRxaX4/hZiyBdGtl2cM"}]},"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.92-alpha.0_1610467071567_0.6006592623847433"},"_hasShrinkwrap":false},"0.0.92":{"name":"@aspecto/opentelemetry","version":"0.0.92","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.92","@aspecto/opentelemetry-exporter-live":"^0.0.92","@aspecto/opentelemetry-plugin-express":"^0.0.92","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.92","@mzahor-test-org/opentelemetry-node-fork":"0.14.0","@mzahor-test-org/plugin-ioredis":"^0.0.92","@opentelemetry/api":"0.14.0","@opentelemetry/context-async-hooks":"0.14.0","@opentelemetry/core":"0.14.0","@opentelemetry/exporter-collector":"0.14.0","@opentelemetry/exporter-zipkin":"0.14.0","@opentelemetry/metrics":"0.14.0","@opentelemetry/plugin-http":"0.14.0","@opentelemetry/plugin-https":"0.14.0","@opentelemetry/resources":"0.14.0","@opentelemetry/tracing":"0.14.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.2","opentelemetry-plugin-kafkajs":"0.1.2","opentelemetry-plugin-sequelize":"0.1.2","opentelemetry-plugin-typeorm":"0.1.1","opentelemetry-propagation-utils":"0.1.2","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"e4d9e300ed134beba33b48bad696484109ad3ffd","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.92","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-USD/9WVSpFCRcxU95RH6tk6gmSNULE5nF71MtvSL7IBK/iY82ftRKYRJwj4UiVrZP9X7c0Stio9QwiaTKxE0gQ==","shasum":"a475cf2cdb6da80badc82b78765b62e195e1f303","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.92.tgz","fileCount":79,"unpackedSize":137493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/tPKCRA9TVsSAnZWagAAlooP/ihQwdfwjZop4i2ie/fM\nv68bmMkJhIbVdvkI/ap1Bqu7XoqC6VchS23iQP0qkc2Dq0VJXM7JWFTdh3j8\nuOxal6EMRDPUiLV2x4VofiYqkS4NmJa62j+q7NbfXEycT4eL6VyinG1H8XN7\nHePUwUshIrO+523eoswymmL58IRSQ4kmXChsWGU2RWVOMV3JVB9uu/4UxF1I\nMcOkdL9SsW71L93GMsNeG6xTlfEp75cVLljtUXqoY+k7UIysOZ6DpUzqQ+k5\npES8A4dCNRoOU3A+BXpNtrQoegxm1dvkKU8WGPpp/NEalISuN580UAwZ2Rlh\nkuGBC71NqGTS+G1Onrfh/vyF3AvJxxR9Ymk/2bC86jtRQJ4E5OVeg4hi3byh\nyUf/JLFmkWp7XL2nSx6DjQzX8y0uZPIINlPzdsLY4S3Pltrq4xRwQ4TvL7VP\nCrwX3LISRE40pSIWhQE68AxHUyDMzbNIAnbgi/u33jJuo/tuL9gxTV9+ZdT0\nJyCxfzV7xCfM8SgU+ByZ5le3lNDaqnsQG1BAEnjZJvmJoH2xWPjUjHWJ/WVD\nYQGHgbQ1o5dc9XROgT/q3Ij8Po2xx+cpJFwRzHKleNJWuNS2Ptm8B8inAa/E\n2/Hiw1vun8Opf06JPwoZFG4V6IVMR+EL117ciS90YEaHS9MqAD6yZ/sddmWD\n0ssf\r\n=pdJ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3sZcqJfctio4XjLWp9b17mBAdYc8a4f2cEIqGNP8jeAiEAoBCqg8yJuifR+uDLjpmZpvF5i7IDLSIdZFStjvA9HiU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.92_1610535882495_0.4111447302864055"},"_hasShrinkwrap":false},"0.0.93":{"name":"@aspecto/opentelemetry","version":"0.0.93","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.93","@aspecto/opentelemetry-exporter-live":"^0.0.93","@aspecto/opentelemetry-plugin-express":"^0.0.93","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.93","@mzahor-test-org/opentelemetry-node-fork":"0.14.0","@mzahor-test-org/plugin-ioredis":"^0.0.93","@opentelemetry/api":"0.14.0","@opentelemetry/context-async-hooks":"0.14.0","@opentelemetry/core":"0.14.0","@opentelemetry/exporter-collector":"0.14.0","@opentelemetry/exporter-zipkin":"0.14.0","@opentelemetry/metrics":"0.14.0","@opentelemetry/plugin-http":"0.14.0","@opentelemetry/plugin-https":"0.14.0","@opentelemetry/resources":"0.14.0","@opentelemetry/tracing":"0.14.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.2","opentelemetry-plugin-kafkajs":"0.1.2","opentelemetry-plugin-sequelize":"0.1.2","opentelemetry-plugin-typeorm":"0.1.1","opentelemetry-propagation-utils":"0.1.2","shimmer":"1.2.1","socket.io-client":"^2.3.1","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"0f5fe3b866b4717c76c3ee67b1c892fca22490a5","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.93","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-+j5fNVAyb9u6cftE8ckra9dUQ6IuLuUVbSGzGrGEvuONTSFZ4llbsL1ikINlIrewA3xvwVPvAmB35sLztzT3hQ==","shasum":"81515257a1973b6528056d862bd29b1a6c890eba","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.93.tgz","fileCount":83,"unpackedSize":139968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDsV8CRA9TVsSAnZWagAAmosP/jXvf+muhtkdSOBGjUf/\n0bGrBKhvueVFaEf2m576epHBqvgtsOimcryJGTq8S4gMqwsgHzJHGMHQ6RGU\nBk5HtZEJTidKpjqTHXqajBH8VZg00UdmP+gH+tzVpnD6umhwcW4wf/RXdR7i\ntBORjTyL5AdC+lc3WVsMstitwL/r8Zpm6Y4y+3uru6HIX16CsdECMnLLwcWC\nG+5aW5+i89YhMNyaTvqBqr9kuh24NWUaNcf0OliChncKesx5YhiUxTN63T7/\n0tNTP5fKhAiEl4POWMUf9hUCVvHmXie912BWogu0HQItE26GqDo7WTElQyRJ\npaa4eSNbdxxTPDn4zNWVxNGKDJQO2n1vZaeo2FfvTeN85OvgCiw0ClR1mItV\nUBpaD/V90Y02d53j2RUrhQB9DtlLyICS+qF8/XgtmcreAtgKfglE3uQqIgx8\n0B/CUlXQ7g2zvnkitLNK+MY+4GYT7IjRmBK2pamo+fk87fdbpdqJDtTFpHT3\nXyd3FeAFA6/M091K6qQbgqYSpzm7i3Wp2r/501JKPe1wtjpTVagme8hlJNvF\nrq1ySQYYfNhqhJtazc9YsYE2wLVY4juwTn44/j1WMjwd06SOc07k1DLxJFDH\ngpmZOqj+L8iuJZeomULM6OVhLXuRbd27Hg8C0Ze2xUZlJc3RYMmqPA9keQ1g\n4k+/\r\n=31WE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/U100xbjOERFWdyG+ONf/5vHl9WlnZK2w9w9Lm5Ew8AiAtCNMkB9QI+iIvnnhwKr08mBBGpPtWII5muj8cAWrXXw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.93_1611580796478_0.30417413023937634"},"_hasShrinkwrap":false},"0.0.94":{"name":"@aspecto/opentelemetry","version":"0.0.94","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.94","@aspecto/opentelemetry-exporter-live":"^0.0.94","@aspecto/opentelemetry-plugin-express":"^0.0.94","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.94","@mzahor-test-org/opentelemetry-node-fork":"0.14.0","@mzahor-test-org/plugin-ioredis":"^0.0.94","@opentelemetry/api":"0.14.0","@opentelemetry/context-async-hooks":"0.14.0","@opentelemetry/core":"0.14.0","@opentelemetry/exporter-collector":"0.14.0","@opentelemetry/exporter-zipkin":"0.14.0","@opentelemetry/metrics":"0.14.0","@opentelemetry/plugin-http":"0.14.0","@opentelemetry/plugin-https":"0.14.0","@opentelemetry/resources":"0.14.0","@opentelemetry/tracing":"0.14.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.2","opentelemetry-plugin-kafkajs":"0.1.2","opentelemetry-plugin-sequelize":"0.1.2","opentelemetry-plugin-typeorm":"0.1.1","opentelemetry-propagation-utils":"0.1.2","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"3f58cb6bc4b53c28673aec71739c4a9978072a06","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.94","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-InqmhphX2yNdwiyS8LDERWvPnSOka5DwzpkmbJF4g5wTK4Wl55cCfh5Xiy2T++Tgq8w5kgZQnDzaqRlK8l/nzQ==","shasum":"22327bc39caf309ab4e198eaa9ae59929285c0e4","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.94.tgz","fileCount":83,"unpackedSize":140321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEBIeCRA9TVsSAnZWagAARLUP/jONdLuTLf1pQO5z9cvK\nERGK2vsUmLWaK/aZ4CaER7qNaXz6A+YlwXs5nM6zCLo8LbckJCp4ilRVsfY/\n8JfludAQwIhrLxvgMbL9i/owj2QoETmlgSKf1MypE5yUpX5Po5iUH/jiHqEi\n4CXdbalG+nQQNNBobdfBa6q85aQM76hLJyMlhCIS1NjtpnFC+t0Fga6zmIs2\nZrKD0ELcuccvLYIOoyKeTxjKaSyEPcG8T7zq7N/tW8Md5wbbyrA9SrM+K1Ay\ngU5bqktZZUpZCCUJa0Hsc6SUBdPcbmwTvryfKaE4B8AxyL6jD7ifcEM00OdP\nhAlNdM0OFOXayfuOJICErGsHhDTNKrQ0mcJ8/62QPT1TVFVcgwZcZZupdy9V\nEdmMiYl6WcHZaxRMJ/aJ6RHds91wcRusUupQO1Mv8WmRySwW+ENPrIR39utz\nqCZISdxDkD7ePUIYBgVIVclK1aBEncDC7ZSoiY0+KTMjLcHSoin0NW2VjtlG\nnQfdgScozKsqalNIFmP0SkFYMKpiGsuLmfo+vsciC4TgjwWnqfoCIS4Cy7zV\nPfVl23vGMxmbKDMrZuaMm0O4LsK/2XCtqPYPZz8Ab1pM1EPlWSyAQPtXrXqk\n4KV4JBfEIv/bCz7tAncmJRYbqbnJ22FDdnCzwVCCE27g+xxhgzq3nt2Uo1JK\n7hmp\r\n=YC7i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEYoz/PZRc9iWXA6lbZc/3EJPRrSOFpwvi3G1Kyoo3IwIhALlPefhHGjzPcgmta3ze5gnwrs2XiYnCUCzMlYY20un9"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.94_1611665949649_0.8677608077676724"},"_hasShrinkwrap":false},"0.0.95":{"name":"@aspecto/opentelemetry","version":"0.0.95","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.95","@aspecto/opentelemetry-exporter-live":"^0.0.95","@aspecto/opentelemetry-plugin-express":"^0.0.95","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.95","@mzahor-test-org/opentelemetry-node-fork":"0.14.0","@mzahor-test-org/plugin-ioredis":"^0.0.95","@opentelemetry/api":"0.14.0","@opentelemetry/context-async-hooks":"0.14.0","@opentelemetry/core":"0.14.0","@opentelemetry/exporter-collector":"0.14.0","@opentelemetry/exporter-zipkin":"0.14.0","@opentelemetry/metrics":"0.14.0","@opentelemetry/plugin-http":"0.14.0","@opentelemetry/plugin-https":"0.14.0","@opentelemetry/resources":"0.14.0","@opentelemetry/tracing":"0.14.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.1.2","opentelemetry-plugin-kafkajs":"0.1.2","opentelemetry-plugin-sequelize":"0.1.2","opentelemetry-plugin-typeorm":"0.1.1","opentelemetry-propagation-utils":"0.1.2","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""},"publishConfig":{"access":"public"},"gitHead":"7563224ac2005eb407d51757eb72a2402a96399b","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.95","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.22.1/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-ei6X38skLXDXW44Pc9xE+t2ypK7R6rSO2FQMVez9a7XPrQ7Im6zPGmDs1cmvT5eIUZiccK3aLTfndh6iUEesdg==","shasum":"627fae28eaf450656530f62dab34eb71dd1e7340","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.95.tgz","fileCount":83,"unpackedSize":140725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEDYeCRA9TVsSAnZWagAAkPgP/jXJLj8LrzrugsM4u6KR\nzQxFm2MCCLXH2lmAXFOJ2IKCSo8b0RcoJgr9Qzex6kkflgid5hhS+YXLeO6v\ni6dcfAWFzpfxHf52unqk1D62RQdwyqaJnB6ju2e3C6+v8QldXx3p4Gi6TNwA\n+Dic0Zrb6ho0Z6p88hEOZYD3xqeHZM0eB8sKeCOG6oYpBAdddtOYtQMWnLHi\n+hd41PY5qzoXCRS0d6bqucaorSuOFwDmwwIyf0cOMaPrvGu84dphoFh/yXYt\ntD1/U+QqsnfS4B4oo9n3OrJBmSMM3vQireoT3JAmunfoJ2I2NZ0nt2yOkEVi\nezPbvSR89NfsSZ9qGMWgh7OXDkRKdzo3f9lV+nknJgHWjZBnlYDj5mFOU0VW\nUUTAuEkXYaw5TCOAPqlemKPJlesvzs9dn9Ax1koaELD7vZIzN9vUlvjmxXoA\nDIq0CNPy9+d5qMEQMzkUznuI80TAwenQvzxtJHGo/w3XChTp2k7aOy72C3hR\nYuAVfo9jrZnXt2sc1rdli0Wda/f22rd+wYXoiGtUpXtdhvhEFXHeMQU9h3zk\nwTJL9mmULlqsq8tvPsXyq06JeoAWOYGl48GegTsZjQlqW0ddaHwl+kzCw4ze\n7mlyGkBm4TKV5KzbIi6GfwTclk5Aam49Z35gmAYrdOovu3GONq4YkRqhVQMN\nZZds\r\n=6DTc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2zfoO1ziMPiWFx3LcDaSyBF1BW3fQcyFfEY5xQlP04gIgM5qrBMcktGiyE3HZ2wQr/H2k2fva18xTm14DYY1pSf0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.95_1611675165718_0.1824639978355831"},"_hasShrinkwrap":false},"0.0.96-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.96-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.95","@aspecto/opentelemetry-exporter-live":"^0.0.96-dev.0","@aspecto/opentelemetry-plugin-express":"^0.0.96-dev.0","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.96-dev.0","@mzahor-test-org/plugin-ioredis":"^0.0.96-dev.0","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/plugin-http":"0.15.0","@opentelemetry/plugin-https":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.2.0-dev.0","opentelemetry-plugin-kafkajs":"0.2.0-dev.0","opentelemetry-plugin-sequelize":"0.2.0-dev.0","opentelemetry-plugin-typeorm":"0.2.0-dev.0","opentelemetry-propagation-utils":"0.2.0-dev.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"202508dd1686584c9cc1368097c8b724c7fb65dc","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.96-dev.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-kLKT0SWe/PYUa1DU3yF5hga5u7+iFA8U0DN1VUyjwgmhSyS6ewFgP4T/bG8FwaSshMS1lVtkXafYQCdR35fGPQ==","shasum":"e2b7bd5ecc12c8df90d89e87ea1f2b6aff877d3b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.96-dev.0.tgz","fileCount":85,"unpackedSize":141401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEXWfCRA9TVsSAnZWagAAbmUQAKTp9XrY8JZDA4tZwEza\nJNFoTYvoFvFIsYqbOuCGATxMdSdNSiB1rXB0zacuhclLRn9O08Y/nhupFN2c\nVmJ1Pi9EYSbUTWb/Oqi6oLCnPFwWULBAMjTzlTki2MJpWh9eulGpLAtKnYAe\nbc12yW824LoNWSiUyjpI7wKVNSOO0N7vKLh1whANc6bosta3DrYUtBaCsgFS\nY2/eYG4cQDX4KoIGh1ipef1gFXQv2V9293BFdskAiG5XAC5z1zo13AA0hdJa\nv7yd+LIX1rrEb8mkqeyfFEuLvRXMop/HZB9tVTi623gdpb7f8hfCi5rCrUF6\nYQgFO6d2Z+FQBea5IBoSEI1PTtj45beOsRHIaLGQZevbaajinN2kTa1i8C2C\nFaLeUb87QFviscYR4xgvPf/1X6m4juamSSkBGJsk38AxNpFX4H1kw9Z3MR/b\npjU364l0+laNWXjgchsuocCnubf2TbDipVwQ4H8Vnm/tVAZQAW4w4kx5vi6j\nDdDPaI1Qo6tWcdKAEfkV7SS4jv76ci124mpdljlKebWcnVjazvYt97qY53Gp\n46G2bF6WYTCyaQjyWFlQveJTs4jeiTU/dLSixeQCv3tqNNuQ4Lm7toWip9oA\nmqsBKN33PyPIsCzdaqWdE2sYhLfvH51OO4Qx4LTV34u1G/R5yUXtVTyZwbDp\nxlT8\r\n=rJwM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXC+dpwq5IxYerJ850Tl46o0Og61ceskNRlX2kH/BhLwIgPpjwOZHNs3CbTOdC/7YORdQ5oA5qFwNzuytHdaI0ZO4="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.96-dev.0_1611756959292_0.46747939400221017"},"_hasShrinkwrap":false},"0.0.96":{"name":"@aspecto/opentelemetry","version":"0.0.96","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.96","@aspecto/opentelemetry-exporter-live":"^0.0.96","@aspecto/opentelemetry-plugin-express":"^0.0.96","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.96","@mzahor-test-org/plugin-ioredis":"^0.0.96","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/plugin-http":"0.15.0","@opentelemetry/plugin-https":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.2.1","opentelemetry-plugin-kafkajs":"0.2.0","opentelemetry-plugin-sequelize":"0.2.0","opentelemetry-plugin-typeorm":"0.2.0","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"55e808a80eba0d384a5bdac8382bf25fb6f1f87f","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.96","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-BtNCCc6mLNTfx90+QNS/zz74OpT7MbVqp9bEaBtrgpyk1V1V5YFAU9lBM6HIxECK9o7nNfFFUe6XTagC/N1/Pg==","shasum":"23f1e7a04c47ca31e9840906631ff7ec1e0245f5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.96.tgz","fileCount":85,"unpackedSize":142202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGVtSCRA9TVsSAnZWagAAKsQP/jSSaaOLjyyhYPHAC4DS\nrMtVQSdLWFbl3G3a32KvLW86w1ri4dTH/d4xSLvQ3xwBHHFIPrE04zAjHAz5\n+qJMOlrHm9+KQEd8OUt8c72atbvTnd+axm/xM/NU5mCwnkMIfqhlK89Xxzy2\n/0v7biqErefjKb3o8+p/XZ7QbbKgJNCsaznBkcz9d39boHoenEct7dFH2ah5\nBbu6jzChPz4JIOvAb0z6i3odaLek4z9PKLNPUstf7jcy5cNQKYyb1pfotdUf\nWoqvlUBdFxWeZruZ0EMb6JASoAJAyWfLQkUdKmdXxX/9I0UlzF5eGb3M2X8S\nTZpgHKDqUB9d+hcpb5U51O3APghUT0GcfHxe5Bpm9UChvieVRo9icjF0rThM\nfqup4em3ATw0SlGh4huNSKMASspatcLza5IC+sognx5YvxbSryXwSZ4pOClb\nN0sZG9tFqGqfUUdHn/FJRPyTPRih/XKRnU6tPrTos7i+EYM8VNN1Dnvsr7wz\nDgnfkSP/VU1KeKlCDEuzC4M8eHewvxePRjWYl3BRvErtnEidsNaFIp5sEAB6\nvshLU2WLoqImm9UzODO8L/MJpwTFs1/axM9x4YrpUtRAER3uLMo3APfgCzdX\nQ9gtw/KZ8aI/Z1GGsfKXzI0rTY685Mk9FrYaiC+KWqIeSGLlFhctqCewEu+Z\nDaZF\r\n=gg7W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXlQzP+noxKZCgG0bKKD5Ni4LgDq/Fhpy1OXLeqlfASgIgbV5CPTBLWvqc1g52luN2CwECQyz+wJnT9oXZoCenBqk="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.96_1612274513542_0.41142659847948027"},"_hasShrinkwrap":false},"0.0.97":{"name":"@aspecto/opentelemetry","version":"0.0.97","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.97","@aspecto/opentelemetry-exporter-live":"^0.0.97","@aspecto/opentelemetry-plugin-express":"^0.0.97","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.97","@mzahor-test-org/plugin-ioredis":"^0.0.97","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/plugin-http":"0.15.0","@opentelemetry/plugin-https":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.2.1","opentelemetry-plugin-kafkajs":"0.2.0","opentelemetry-plugin-sequelize":"0.2.0","opentelemetry-plugin-typeorm":"0.2.0","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"03075471e2869847b8cbe9dd4d80fa1469d29fd0","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.97","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-MKluJ72IRUH9xZiPw8YnbIRzR2Yx9UhZxpY4uMqOQMLaWQkg6w4MnWwUyJuF9/w329IJuo1PgHxm96VCJrsnRw==","shasum":"e20959b763d0f440264f2068fa36ab59c9116459","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.97.tgz","fileCount":87,"unpackedSize":143119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIVHaCRA9TVsSAnZWagAAy0IP/R+sHQpFkWgheHz5vR0v\nSCOBuyGsoh96EgOyWc8ieSkqMgmJx2MR2ctig+iQMotwNRlnifPk+kB2MEhZ\nJ/eewvfx476Hlh5ezJjJSkwwpExrnru86OcjpqRNZ7EawPTitQva32YAP62g\noChNQ7IgenQRyOUuiIJLW7pLNmvM3OOcTfCZ8yQ+BI/D4hQjQBzExG3YK9hl\njB1f0uvPhd+c5aUbsc0nuwi2ipaVyhJpxojuShP0PM6djP8Jk+kw/evMIhN6\nO44xXVI96sGFScdiA6u79DVW5UrHUp2cTYxP69vOUw2g1Q6hpcU83P2JCvr6\nFpo+94IEIz2lioRXcn/rbcoJWEZ+UYxCUdA8GGvQETtV1kePHy8yFVKX+kv7\nYGeAEdYc2nAQIloeQDEArlzCKWsKZ5ZrqOV6yjCECzYjB4Ok/S/Un7t0Wb6P\nRXA5v8uuSJb0x/MnbvQBeg8fVvTUMEAh9B4gM5HpnkBf5jedIivuIWJxhDG6\nQ0TR1UzfFZCl9kBtjJW8xjJS7QQyd5hjhi3bAkdvWBLnUUvHN4FZBaLwp5c7\nSyLMdACojlnVvHMiZFWLeheEP1QMlSbe6ikdze1N7gNW1NPtLkUlsiSYU6XO\n8ehRE+vYbW5VdIWmtuXygynV+oX74NyxIVOhD9AdcMFNLfPdtRo2gHS/b5V1\nvmFR\r\n=Ku9d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICovkitvNYXXdcC3EqrZL73PU8/+jO7seYHQ9TxCVVoLAiEAwEcuavK55IalJB7XS4WR/Xqt0KST/Y6d9z0qwjVWoMI="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.97_1612796378281_0.7975403446657368"},"_hasShrinkwrap":false},"0.0.98":{"name":"@aspecto/opentelemetry","version":"0.0.98","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.98","@aspecto/opentelemetry-exporter-live":"^0.0.98","@aspecto/opentelemetry-plugin-express":"^0.0.98","@aspecto/plugin-mongodb":"^0.0.98","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.98","@mzahor-test-org/plugin-ioredis":"^0.0.98","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/plugin-http":"0.15.0","@opentelemetry/plugin-https":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.2.1","opentelemetry-plugin-kafkajs":"0.2.0","opentelemetry-plugin-sequelize":"0.2.0","opentelemetry-plugin-typeorm":"0.2.0","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"23392f0484b0b50b8060ac66c0f322dc1305d5a2","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.98","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-BtjLlRA3qqYinG5L0/8iGJbs9fN59Sm/H6VJntTotGFWsrAgACUhfXxJyDOfzffWAQDaQamw+wyUeA/bqpvQEQ==","shasum":"37af6305d2ec7e2e11a6ce2668098b6ee6b468b5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.98.tgz","fileCount":89,"unpackedSize":144051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIkqACRA9TVsSAnZWagAA/9oP/39RV7JNjWTkKHTt/Qed\nT7TqJVpGO+S8mF1KO+++W7jvncfy6G3tFkiBA4c67OrU3Sep+5zeLCwwmTsf\nZeMEW0Q8fff53fsNpq5QNwI3HPqNAmwQLVVtNRl5XPBNGFn4kgZAuA4Uyieh\ndual24r31Atwrnvl3R6WVIhmBfPvS/Pd2E1omyZhkEoFTogupa/hcEPcLeVd\nw8/nlkHjR0IQe66rOhNjX+hZp7lf46fs+0vjD16/KaKBeZJ6ji0yNAZ46T4c\nDlvGmEr+fNIlmhN/1z62DGPFlyf/PBdx0M/IFUr13HcXyncrAUF0GeFJATZt\nA8luVevOd8TLTlkCEnZxPkXSlFSnpClN2oqA1DT/dvoyXzxAGUvqf1C9nfR+\nSITVK19whk+iP0u2Ve2tKeqeCbuIO7D6pFpMZJmEajCtNC+uCF2TGc9uVHoR\nsb4q3HIzuQZljf7Ff9FJRNBkq094KaxY5Rut2K74PtDKJPRLUePgiznQymuo\nxoDwesOlRDGoHf9s/mZ2cVlN8ar6mW3IfZMqRChon2eRd45pGFCJMhCLGqlo\nV+a9sNj66veXBpK9SkaeUBxZ3uEFi1u4+hk1oj3P/jh+UGqeX+ak9Pn+wgKC\n77LFXS4GbrxQPFN2JvXNjJ+jWLIDbao5JTchQ1lDMTvqa4pT9TCLj4Y6QiLk\nB1cY\r\n=4Pyc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCumELTc7xUc+9rbKvdFmmvrND28rVdKkHEHatK0H+jnAIhAJWF5XLMIz41c5ltI3d2DbA5Hn/H0Iug3GALmoECbsKo"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.98_1612860032380_0.3123090140516265"},"_hasShrinkwrap":false},"0.0.99":{"name":"@aspecto/opentelemetry","version":"0.0.99","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.99","@aspecto/opentelemetry-exporter-live":"^0.0.99","@aspecto/opentelemetry-plugin-express":"^0.0.99","@aspecto/plugin-mongodb":"^0.0.99","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/open-telemetry-mongoose":"^0.0.99","@mzahor-test-org/plugin-ioredis":"^0.0.99","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/plugin-http":"0.15.0","@opentelemetry/plugin-https":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-plugin-aws-sdk":"0.2.1","opentelemetry-plugin-kafkajs":"0.2.0","opentelemetry-plugin-sequelize":"0.2.0","opentelemetry-plugin-typeorm":"0.2.0","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f75acddae26f621b8b93ad8c761d7677f2ccf625","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.99","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-HQ7zCgqZDeYG51p+BhqxrZVKyd5hyf8AAfAb4Fc0FoGhNaDA4yZWZOwY4hpYTNVSxjiT9mEO5nuK+XeLDIyB2Q==","shasum":"21ea335876ea73c96bafc3a970cb424755ea7bf6","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.99.tgz","fileCount":89,"unpackedSize":144740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKNEQCRA9TVsSAnZWagAAWWIP/203NuQf59kjpd5tGUEh\nMw5YJv/7L8oZDdXOoUdkRbmQ8tB2GlZEgNLhzl+1Vp4ZBV1R+tYIEUUe+1H5\nMGwktpje4ve0JTaB26mHGb/EVkO99uOb2Rp7nKm1RiVOBRmRAJZS33207GUm\n7bRYKkeTAlDa9vDTMECSJndc63Koa22X33pYMRzdmhe58xbwpEVzR3B2eZQa\n0LRXiElt+qNrJptFqbBmU+C7FNTxzOUlwMlhaqnWborz6xFM75w9qIh0SdcL\n1ZXcy+ru1/Z+coXF21qC0CMD60NG6JFusHtZMCpugmdTEOACG2/iiYeArmeX\nItzCBI4zXYnNFpjZdcUsjppbE5lhazaWFL9TD7NNlwbiYjaYnA7WfzUtQpAU\n0o+GT3TxJL1legsk9Iaa/Bq2ktNpLwiewbe0jLeQZgHG+1x9aEJJCjFA7zfb\nzZtZIFKPH2n5qhurWgEGGVmROZO8sAHL8toh+ptBo/CmKzLjMi6MzChjoSO/\nKPkOdg65N7C/JO/TgwFwF8lfWlDJ2mpipJ7kJ4n+ZoGxHmdn/4dOvurBm/2F\nuve7MRgS16gz3Au/XMF7qMkItB4bbYGaEmxbXCHaaO9LJxXwiEhPMeUTpqr1\nk5aUcYKYLEtPKWclXpTmiK5XcvWfdLTjl6Abr3GPM7u6t+l0wM7mgvsTd1vi\nPYYM\r\n=xxhr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhUwcg1auxiJVB36D76XeJBfG0zx0ykDv6K8JRKBJs9AiAxc9gVOTi+t9mDR8ylQ6QPJ39KfvWKuA2ltD0+pfbocg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.99_1613287695899_0.48248246130193473"},"_hasShrinkwrap":false},"0.0.100":{"name":"@aspecto/opentelemetry","version":"0.0.100","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.100","@aspecto/opentelemetry-exporter-live":"^0.0.100","@aspecto/opentelemetry-instrumentation-express":"^0.0.100","@aspecto/plugin-mongodb":"^0.0.100","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.100","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/instrumentation":"0.15.0","@opentelemetry/instrumentation-http":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.0.2","opentelemetry-instrumentation-kafkajs":"0.0.2","opentelemetry-instrumentation-mongoose":"0.0.1","opentelemetry-instrumentation-sequelize":"0.0.1","opentelemetry-instrumentation-typeorm":"0.0.1","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"666e73c9d3d8720f0baf552d8c9ba165b1b751a1","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.100","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-GRgO8USlcRKAdFZBHa6WAibDF2x6DhEMZ6HjJWfMsWIYGiU/GQlMVdWxY/iuqVEMzb+oqsjTrPKeNSZhhpvs8A==","shasum":"4ab73d138dfeeae17cf2b981c5a136e8794d1f81","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.100.tgz","fileCount":89,"unpackedSize":146272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLTCACRA9TVsSAnZWagAA/FMP/1bbBKJrgvIQlXDAlJZq\nPy5jEapv6bFAwAKm89RxRU3Qd0vEsNa6or5bLskOLLhVjnnpYZqPzk3lcqx5\n1h8Xy78vtBYceHITxP7U1uhllQrQE6J/8Fe8Obv1oIfquVJsjCzVCuoE7LLa\n1l5wyCPnUIEhCJMGAFTIvFcvW8VALXWt5c6iB6Stc2Z/zSSzfr4joROFIWA3\nSUaGhtGWMMnMocH8+Q5A+91lSw57qPkcBfYT8n6ekTdw43fACZ9gLdRn4Koe\nLhxD7abNMdC7dm5V6wbOI1e3bu3imlspvwK9q2cCsmQEd5F9dMhydTnjjKGK\n2yTgZ3QmbavG3wEKvU3RCQXzBRF9Aj2i6d6pTphgrTKaUmwMOe3ULO0JbOK0\nJeOGTvjFPTfTyG/uCe2iwE7koCdpR2gVEweoDCJ18oJF3900kfqspdaT5lDV\ndrmAAMVc4T36QDbsYjAOWUr39yD+OCU+o/EvbSN+/IOCOI5icM6zIruOF1Et\nDgDvJ9kca0EyCqbHKJx0QHZCPvLtPa5RS0W5akq5MXunyAAZgzaG9RAS9lEd\nyaUpC+MX1UnJ6JAxx9eJMjNVf8MNaKKFwYv5ZNbF6V7/ehu6s77Itn3Uovs0\nmAF9MAcuR0hgxIkTlUlwCOaxlfOyNOoCRqqqooQF4RK27aBlXcBk4VY7uRkA\nlCPK\r\n=n402\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvY4ry7TFcwY7jLUXHlOztQDqhGJeyAjGJxEW3DyvFHAIgKi/qsaNv6z9WUeARXezhAoLUSb6vaSRstLfFeuFGCBY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.100_1613574272240_0.41850068065109824"},"_hasShrinkwrap":false},"0.0.101":{"name":"@aspecto/opentelemetry","version":"0.0.101","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.101","@aspecto/opentelemetry-exporter-live":"^0.0.101","@aspecto/opentelemetry-instrumentation-express":"^0.0.101","@aspecto/plugin-mongodb":"^0.0.101","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.101","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/instrumentation":"0.15.0","@opentelemetry/instrumentation-http":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.0.2","opentelemetry-instrumentation-kafkajs":"0.0.2","opentelemetry-instrumentation-mongoose":"0.0.1","opentelemetry-instrumentation-sequelize":"0.0.1","opentelemetry-instrumentation-typeorm":"0.0.1","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d613d1554ac87e6bff0d74c36c308ed2c3341470","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.101","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-RuprL6nUTBhxRT6UyZ6FWit0WRWdKxED87tqZv0u8CUCf4H72WnO+Oc0YDt7H3ynyTh3Y1WswvJ6OUnzvHLwYg==","shasum":"2abf5a55acb0a9cd1356125018b075f94ca26837","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.101.tgz","fileCount":89,"unpackedSize":147101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLToaCRA9TVsSAnZWagAABEgP/005kG/OQWrLpPZ2YIY+\nF2SiI9I+R17yM8NiODWmdY5C9J+VXRRXcuqxf4iuiUUTM1OThb0Eqdg4z3hH\nAma0454dFtcdhKhWOfJf0geRgpPZl+8+kZpCYY8w0o+Xco9j7UtIxgf1poXy\nJywKPj+Ng28YrVMUbzrZSlAxoLWN8Yp11n/IEkoQas+lgZ0NpQBq+08rAvIw\n2qkR2GVUnlcHOLWkllwFSTztRFfMg/dLbrbbUJr56l1keomFH+BgXFFNA8sY\nEu8OcU6JuEmSjs5gk80tTzj2feYsz0zVNNMFIS5+2KJaQRpBJZk70ampJqLk\nydP0abWTa2+VV5q3ETFi0Hp7UHSjeiT4nMKnJErOHOV+ayadZ/1iz4xpvHfi\nRljshruWoK89BEFSOZS97aKUYn9KgS1tWYwhht4rA2YIjEYjqf/xMTUdaRuI\njxMaiLe/qfW5Ekgff6YR/99z1DJ0vJZxEcyZ703SY0DR6sDA8zRKUXk7usKP\n851vKTNvRe2xlDHEjX5gm2RjETJDCo8Jwo4ZrvE8+OmLDIug5uItQ6nW1I7L\nQKxcky7a71XaLF7SjXGcaRUifxYSRvvAQZjp9K9zkTTxesFBBBro1NsDB+VL\nji7PwGlO5+3jXmP5QA9tmh3c2GLIvmgOZ4m6GdajLFVAmMPw1XWIJ9b5jlTw\nZr7S\r\n=qEBw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgkt7Ohyl6y6KnjhdCAccokRbkZ0XH2pjtvh5f4zppkAiB3Fec9XCrkbGeDESQufTZtvHRK0st66clNq3iqMdPLrA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.101_1613576729601_0.8404270270663461"},"_hasShrinkwrap":false},"0.0.102":{"name":"@aspecto/opentelemetry","version":"0.0.102","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.102","@aspecto/opentelemetry-exporter-live":"^0.0.102","@aspecto/opentelemetry-instrumentation-express":"^0.0.102","@aspecto/plugin-mongodb":"^0.0.102","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.102","@opentelemetry/api":"0.15.0","@opentelemetry/context-async-hooks":"0.15.0","@opentelemetry/core":"0.15.0","@opentelemetry/exporter-collector":"0.15.0","@opentelemetry/exporter-collector-proto":"0.15.0","@opentelemetry/exporter-zipkin":"0.15.0","@opentelemetry/instrumentation":"0.15.0","@opentelemetry/instrumentation-http":"0.15.0","@opentelemetry/metrics":"0.15.0","@opentelemetry/node":"0.15.0","@opentelemetry/resources":"0.15.0","@opentelemetry/tracing":"0.15.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.0.2","opentelemetry-instrumentation-kafkajs":"0.0.2","opentelemetry-instrumentation-mongoose":"0.0.2","opentelemetry-instrumentation-sequelize":"0.0.1","opentelemetry-instrumentation-typeorm":"0.0.1","opentelemetry-propagation-utils":"0.2.1","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"546f2d970cea07c4d226a50ddaa53a7f88136627","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.102","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-6T6tUJi7kBfYLKnkgDgJOH6YmGHpiGW2a8wu5bYc27+XqFjQLITZw76pjO4UIV6rhJgkgYeisQzW3fzQZKJvnw==","shasum":"840cc3bcad1b8d20f59a98d450e5d9debe6e4087","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.102.tgz","fileCount":89,"unpackedSize":147459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLmvyCRA9TVsSAnZWagAAbKQQAIiqe5WSV5w4C+6npOQ7\nH5oIZPHMommq6YKmX7cGm60muZg0BPkMYK34Ce1j+KnzmXmZ/Dqw7yOLKWms\nrE49j32iTbCuHza4qokRQa36ptTdZgTciTZqm4xW0apZAdJ+COql1rU1RKqN\nzjEML3tYAXlQInX7p0LQU2im82hsiRb7PP/xXmwE/uoxwNHmbR5NfLgbjYN9\nl980wgnsy5tOmQWYd/hjAuLGDLlo1xbC5eseI0pxB2bDipAHVoVpfW9cwI8X\nIrv/5ih0MvfJyRDEhjftlZDjALBiDHX2E3/os5cZQ9iJLE5CeyvGr+C+bW2U\nMgN8mTV8072peJPiFT419sTT3cHSYLc26XgN1hRykpR1/aZJrqVXURiDBEX7\nojouNg+4zKXqLOzidZrePqgdM5tEsg0yLB0fOBTlRnblphsBGtsI5H2Cv1oc\nykvgVW5mUNsL7GfhMtXaLd0G9Rjc7zQEpuxRUkPdTG/LCuL6aHxOaN09tL3g\nPCJap2VO5d7XScryEQvQRPL+t6bBjvwT+nb5Yv26OuAarlc6aHRwX02FyNF4\n6iBkgsaZbizsBk/q8O/rr4qrFNGZQ+7262hSI8UIPAEC//sB5W0sX/cntHRl\now763BLaM2bsFxRpFQY2O3CI48AWYnHp2ZChNQ3kVXt55ZrR6790WjmFxa0c\nhozt\r\n=LJS7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpj3tFAqeHGgS/SVUAB7Ay5Tgnb25/8mx7wTjqbNOlWQIgXSjC/wFMhOd7irpI4xHB6Fv3fV/EANyaSYXlKkdCIks="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.102_1613655025823_0.7806459943089592"},"_hasShrinkwrap":false},"0.0.103":{"name":"@aspecto/opentelemetry","version":"0.0.103","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.0","opentelemetry-instrumentation-kafkajs":"0.2.0","opentelemetry-instrumentation-mongoose":"0.2.0","opentelemetry-instrumentation-sequelize":"0.2.0","opentelemetry-instrumentation-typeorm":"0.2.0","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a410d594fd253e0053ae228d269773d8a7897bde","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.103","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-azzXV/OtsvW3KCEoTwtA/Xs2M2dqo0q1214RwRax1gxVZgTpZ12LkKAKOqF5kv8vFiS/8I2hvRhmr80U89McTQ==","shasum":"84f3a6068dc978b243e59733090f7ae91d6c7829","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.103.tgz","fileCount":91,"unpackedSize":149227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgO5CBCRA9TVsSAnZWagAAdmUP/1SAFCwqPSQcjlfeev3r\nQv/BUHKenFrOdxyh9Ysl9LfvpPG5HJqjRXbjwfGijzG2YsY9M4ibY2f9II79\nEUZ8LRANK9pFrcJSDtbVIW93jyYoHHLRR6Al/6JBXPmNnUE+2srXlNoQbP7o\nrPu1DtYp15ZlfNUWvThKWBaco8/dSdkAvkLOzqBAmTIRHeXpEnT1Z9gMrcpX\nUQkLCEBhd8LGCM+iMYEmdccXzhg88sIiHnq5+XUF1RPmm/ZyDsAkGBBvuykS\nasG1TwKiLfM7Ap/VZbrqSFwpH4XiPJQmk7wvKobJvyNDOtCp+uQL6pHu7DEx\nBJb4O8y9qQguv6HZhk7kgncE/UKw01Hf/IhY5Ln7p0gnkjwEfzOQzYWJlqJU\nWulv86YPjCKrcv/eLOD0Y6Ib5XmijNE5KiUohqHy9B89Y/2wmzEzCObMGeTd\nwaoQJC6IRY6ar63UN+XOsFAKDAsCsXWJ1I1Qi/mRTPaKkR1ollSj2NFAsp1X\no/YIma5k/rf8XC2ciKPBE1ey7aSKOvbfA0zXVmo2YBqRObmGWpTpCAhgw3LX\nk4SqU0vqg3ryHkKqAwSUbwJKseKyRvpoWWEiOwt1/02X5zrA+NjGkis2PxzY\nTrIjN3TKQyyxibSoJ0uA3Onh4qjnmVbKg96aSAijp0kgqC1B+qgGOWW4j43/\nK3av\r\n=6SW4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEibreYCsTBJ/Lw76D/j0Jqb4Ki3k6fUJ5Sl4+PBOYjSAiAa8f9qbNy0f3fp2mLczOgCumDm/lsK1AW50mCyUrX4bw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.103_1614516353046_0.9885268630048387"},"_hasShrinkwrap":false},"0.0.104-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.104-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.104-dev.0","@aspecto/opentelemetry-exporter-live":"^0.0.104-dev.0","@aspecto/opentelemetry-instrumentation-express":"^0.0.104-dev.0","@aspecto/plugin-mongodb":"^0.0.104-dev.0","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.104-dev.0","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-elasticsearch":"0.2.1-dev.0","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e8b8a0e1cfca53db2e4a170bad0e2b140a340d97","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.104-dev.0","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (darwin)","dist":{"integrity":"sha512-CQY02JY6dLLGZQRUtnP+8WeeUxpsOfUo1lSrJ6nsI3y5TO9XCgcG/uDL3LtpquUoEHePX/2GyfsWj48FtmZ7SQ==","shasum":"0aa24f588f9c46fad611dacd4b5d6238a3c29a8f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.104-dev.0.tgz","fileCount":97,"unpackedSize":153197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP0YnCRA9TVsSAnZWagAAdrsP/3Rb3lfEau9xiQTRP5C8\n/47hsDx5LRQz8yhOhclDWQrGmIBblsIaGMBJg8kxWMwWRDDpgtxwYNCtK5hC\nnwBQd12ib+aQh3Ij7cwk36Mre1a4bXb76QK34HDiduXWXgxEvSRRf6qVp0vn\ncU8rTkA72v2SaxKRamK2hD+Cr47TnNOof8Kyhl7+XX6gvqN8jny2n/2Zzq+z\nbL+vrXB6NRadPa2zMEjPIyvexVj412JqhmxzmiL0NFJWhmt8zpKP9BLZ35jf\ncWO2+D1vh1+RVuNa18QsZxzt0TDoxSZcBtHHxP4deuhOr1UJU8V8+HS3Canu\n3c7fGYT0pGGcwctoyZY6tiYAxUGXpmK2wnrdIgm3AQt19couOkelZyw0xCua\ndAAW7IKGzqxMkEWLzgT5wwJ04B/fudAiI1ukEfFM0Uq/IBJuGJdg7LbyikgJ\nBki0AhqAGtMg7Xg+cFmoBPjkjEjZdl9/xCVsbtpm9ttQHTn2YGVN41P78RWv\nz2RTGQxy7qAkqAoIA3J0vGeBBYFs9orHJv8qUrrra6MfQN/+IKmYBAEGFvQW\nMrXQ4Eobr/BOJcoK3OSvl9BwP5PmSlmJMZNB+nq2Q2fjni8d5hanGTRLl/Zp\nkEki7OFP5u7lWw1cLY1pPre0B09Xwj5an2nU7AlaIXm48roxZhFCqZ3oJiuY\nELzv\r\n=m2l1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJCom8SUOW/irGPwb/REuenr9KArIAsyyB0PfhBi/IBQIhAN4VZqouEIM1bPuU89uerJE4gA2Y1qJB7V0N6/EyZNG/"}]},"_npmUser":{"name":"yanivd","email":"yaniv@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.104-dev.0_1614759463189_0.6053560325065608"},"_hasShrinkwrap":false},"0.0.104-dev.1":{"name":"@aspecto/opentelemetry","version":"0.0.104-dev.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-elasticsearch":"0.2.1-dev.1","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@aspecto/opentelemetry@0.0.104-dev.1","dist":{"shasum":"3c17ca2023e9e3a0cf8ebef922f4ff77a6884855","integrity":"sha512-MFnVyvZvkEyQP5JxBqAzwY12UTxmSTq5P90r7l7aHIETqfC93mQaeB9WiwLjRCn0ppE0Moe2O+cjwL4JKd5uMA==","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.104-dev.1.tgz","fileCount":115,"unpackedSize":152794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP13TCRA9TVsSAnZWagAAU/AP/R/E0Kl183OlDOQ4ESaA\n/4lt8Gvo6/aP8NkzrdLM6TKmfj0zmYsJUg0IeylnFSP+puWadtC/+8w1DXVT\nifyiCCdhs3cjSbNbGvSwFkyb4j8E+qJV9gQJsgG52QOXx425m7vX2NpKnlTs\nBBxJhnbYmyv19GRK6HO7aSfk9+pV1VaRD2sxEiCitxbCRrO0d9/4R5lIc1nK\n7AljpPh+EAEoV8Ulb9VIjBVIFCeomHBN0Q9EniT6EwkldlBP2RwUYuDDeac/\nBHDueu/8Hdj9BtKKbQ4zLAE+xQVXUWy2Bv6lesVHODKrtan0Z5c2CDlIVMug\n6Pxyb59sfoZxtjUXki9ShjBMhBqPVnXdNiUlP6f5e3BjvufaCnE5DTuFIuIj\nFXXnR1tLnmIuZ3z5zLCYg5SZCzzEbB8Irpx9iucWzkCnSaYgTgPEpMYMCjQg\n4Lh4BcxySpCdvwuRbbtrk2Bd+yU7vGr2SGa1QCfcdDUtMaW12SSa45Y6jKNi\nYW0Utut/14BE55Kpvh+0Xn0mvZgPVyrG62Vvc6IF2KjfJmeCdgkzCE4RdBt5\n8pgcuLyXUEL/+jexVrTu5kVO9TyQkhxZBhJeECuL5O8L21gboFZilIKemOEe\nqBbtdQZ49YklcTOd5d/N3M3KVY4r3Rcm/0EPT5CYmVQosumwaM/ZuPAvY0IE\nhV6E\r\n=dDvZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0QTUEAQ6134aqmeSvfFWqCfSW/d81uaZPVySI6YfmYAiEA6JEEEA4wtRZqYo6RCe4wJJGyBBdb5P0w7Yd1mt5+EnQ="}]},"_npmUser":{"name":"yanivd","email":"yaniv@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.104-dev.1_1614765523069_0.6291829638662738"},"_hasShrinkwrap":false},"0.0.103-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.103-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.1-dev.0","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readmeFilename":"README.md","readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@aspecto/opentelemetry@0.0.103-dev.0","dist":{"shasum":"e0404ad2c72d44e4430e581481e969568fcbbd49","integrity":"sha512-Ezo/AQi4SB3TZNglB5fOI2kKZuC33fM4aqWCAqcs/0ZyNyVVXC94g4gucuIRCt+RlGWSzbGsedMh+hidht4QUw==","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.103-dev.0.tgz","fileCount":115,"unpackedSize":152767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP5JJCRA9TVsSAnZWagAA31sP/ilP6w5R26ftkL7tuVmS\nqunaLRvb6BEJg60rZwNtci9XeANgH258N/2O2fVx0ytgUZmtKfF9gZOGYyTA\n1VYIiVcwVvgIduokxj8dCka5G6hZU3F2f4gHb9c4obBin/LLm+hdd/FMWI7p\nk46fJHw8eNtGWTxyjZlDbu31hWkXdrdtBvYSQKQZjNDCIy9K5VuMQE3RYlLp\ncsVlttKygpG+agcefQo7Kg6mkLAVuVh9lSwqDTwIGFikrt0NA6WIdRSuBd3d\nFvx0VZG/B+ytkdxHP/sklbBy8JWH6x8lD62kvnh4JGwX9vLFfhaVWs31MmL6\nTANn7ZJDuKxrsQlwa3dkoztPfvz0/uu3K2bWOF+bi3Q4csYI8wdQIuTu85FF\nR2Wu+J2gwyX4ZBrNeO4uYBs4JYtsMnZSGaE9LIFDKvnPm/CItvMy0e+gT2ct\nu1AqFbc6QSGNF+yP//6dKi4+INDGiGz1Q2rM6wYG07n/bW7T8UZpzitbsuap\nEiogvsE6sE58mQMYcVla5E8oK2TzvvG4hW/0ExBTUFC0/WqanISwVVJUcp2L\nqwiduqy1mJ9avYj60jiuXeljk6PeKAb0t9YNWEO7qvblxPf2xquLEuUgKNJG\nLhUwE6X0N4upQCSYlCgMme8jSD6lAArpMD0/p2w5JTdfYB05MZiCMiUthX/8\nMnLb\r\n=xle8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIKv9FHrSt6GKpDhrbs4vMgEu9R9rgE2PHWgpB2afAXAiEA4SbZzAVd4xRh/EYuaDDH7KMt24Vu7JzJl/dZ7Z0q4OE="}]},"_npmUser":{"name":"nirsky","email":"nir.hadassi@gmail.com"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.103-dev.0_1614778952776_0.08879750301932221"},"_hasShrinkwrap":false},"0.0.103-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.103-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1-alpha.0","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.103-alpha.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JX5yRcPtVydYYz0pyLjFav2HX1JX+w+VyqPHpUE4MTle/jfTn4J9q52oBTcWPde51n91XSwOE8gJ4yRsnACQng==","shasum":"c9d805ea68895d3c0666a3b1de2b4ed4076c98ea","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.103-alpha.0.tgz","fileCount":95,"unpackedSize":150696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQKfiCRA9TVsSAnZWagAAjtUP/AtM3ntlaqCpQsrPxlT3\nk7ODOFdwNkEvzyuC00pHrv0AtNifBDueWNbuoFY3GgRW+9BJ9n2tB5JuyJLL\nCDhut6c1fynUu400bMkj0LaUtIU/nmJkU10GQ3x7N1YB7gd+D5oLm9Apn5m3\n2y2YnN1ktYS6/NEDDQJDOwo8c7Ar8xXCRQljMJRy2k8DKbxOUYqCZ/ctfp73\nVtuRWUFPwHO6Hgtxtgv6kRC+INYf2IUn/BL+xZxRGlw4dmoRrRa7vtokHa+7\nI0fZ5eJJ5ZERyHT13bQTcEUsEfN4M+hM32l8Uu9g0tDBQwGgd1Fkf9++TiMn\nI4zMWlbPA178dix8lT25qN5noLul5WrZmIQaqSYrNd1+xJB0tD1D1LEkGrIy\n7IlDTyPPf3SD2vuuRVGa87kmDy2Jazs7EdaTwmUA/UnRAuFCfTn71g6fYkDx\nH6l3sG2rgcqPu3zd2cghTr4dbEPX65u+e3rXIs00PxGOIj4i+o5e+SmsvGga\nBD3PlGSU3miAkCcq860MQGMC92X04wIFe9lmCXiF0dKca/FKSX6PGHM9kTXl\nAwZf9q82Xzfae/PIy0CV39e8mgIiVNAtbUq7n2PaVnFd5Z4Ykv3IjhZSlfP/\nQVUPibNzm0hR5HwPTZ/Ibxi8tOgWmxUq5FFdUCIemevR43cPpI/nuGmkJDFP\nSAuk\r\n=f3zG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCItiIB7gwE878aqlxd56SuzzDsSkoviCVlfcGZsW69WQIhAIWuGqm1VtADUTAbqZdy8To7SDq/HXOQuW5KOv7DLY4D"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.103-alpha.0_1614850017615_0.24314149647815841"},"_hasShrinkwrap":false},"0.0.104":{"name":"@aspecto/opentelemetry","version":"0.0.104","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.104","@aspecto/opentelemetry-exporter-live":"^0.0.104","@aspecto/opentelemetry-instrumentation-express":"^0.0.104","@aspecto/plugin-mongodb":"^0.0.104","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.104","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.2","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"eab45e2a9a1270c1fd8407a88e4f7792d10206bd","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.104","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-DyMLEIcpgOojYb5RmL1I+HiLiD/IkgLNdsnsIF9EJgMomZ0m+uAHEmzlWw1j94N0Hia5FoZo7TGJi0hQ0VXNPg==","shasum":"217c4c2c0fbfe068319583659234ec49bb4b43d8","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.104.tgz","fileCount":97,"unpackedSize":153387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQMg3CRA9TVsSAnZWagAA/DUP/AjbipwJfEAWNwM1VhGN\nQ4XrrI4R2J7uXD7Xjnku6LI0SG2qLc0E/XszN4CYDptTSKfJ08ZlXbtTpIyf\n32l7LKMCgQZOkc0TlB5TsCRvjte+cB5z8qdsJ4FPpbakNdPdWPk90SRqmjbZ\nf1SLK9Uk18VpNj/ujt+kk+033fuzg79416t8qJsNSoQlXIEH3SiqE1rZXcUd\n8Yx+czRnptX3oFPyXfYRgI353AbVwgY3IFjNoMmJK5faG+KZ+ZWXL/euTcQl\nlzAJC6SKU10DNlz/5f+DZnRVW98fw1w6LA92OerQ0SSlEjebidnsbjxFqgli\nTEOsnP/qh8ys65eC8MMotdaKzinWdjNHHQWBvDpjJtT4W8dVgqwcUP71CNuO\nA9UT6IeuczQkPp8ii9vmCIiyKvNBTKtfqXX7Jyqpvt3qCys4n5oMqkS3NBo1\n/cj/R60nQN+SuFsKDkd7boCOvWpmacpxYb7LOzWWwJD3hCEYo4ANz4KstYAs\nDAbR+3s0T97RY9uLGxZYyrYz0XFddl2liuWgAi0rq9/eR+snDNbkIl50VbIM\nE6s9xO89A96UFbnLgK3wN97n7EC/OAl0UMr3v4YSOz8v7Y9jQMRt/683rKKe\n6G20dXOGzI1T1WxdB8NdjxeXnnE+Eb2mKWAGjqGwH1PfMNYQljbfRaZUqseA\n1f7p\r\n=tXt0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFRyhKvpKCY3Z8BarYy2fBAq0la3WfQ929LbrIXYsfqwIgAKtJ5RjkUSonIP4/vmjLp8saoHEBMDVxc3yYPXICfr4="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.104_1614858295390_0.8340804824761832"},"_hasShrinkwrap":false},"0.0.105":{"name":"@aspecto/opentelemetry","version":"0.0.105","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.105","@aspecto/opentelemetry-exporter-live":"^0.0.105","@aspecto/opentelemetry-instrumentation-express":"^0.0.105","@aspecto/plugin-mongodb":"^0.0.105","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.105","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-elasticsearch":"0.2.2","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.2","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"00695d2f993f5b13bceba351a2b86a1d17c52d37","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.105","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-VNQDlDlYxj0QokhrLElCGXMN8lAHxTvQ0lt7kAWRbGno4mQKIyk46aWxb5kuvMdJqzB1ALywGau36xcZ4LL85A==","shasum":"6368de3540ee00d5aaca8462de4a4f5695c56358","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.105.tgz","fileCount":99,"unpackedSize":154958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQOG+CRA9TVsSAnZWagAA9uYP/2U4k7T1fev2ToFv6U8O\ne3nevoUnbysxSVBjrUAo4N2fkBzvQfC9ToIk5+xDhfUVbgZnPFBZ9rkVMK9t\n2j3xdr8NPypaj34pixiqWuhMhPEToaWDM811c/NjjZgTD3oOOAT5QKUbqXeC\nOyiMldURcY6Ccw4cpLkHiy/SX7ykSd5y9wlNjIr2VuPNthwRI3ggZc5slMvf\neoSaEcHeKyt/sM4QoZKGbvVg9pz3qFtW4TW+Cz91YLD/pJEJd1+ForlKIHDg\ntyUXVUg+oJ2wxRhwjoYy/05R6MKnxCLo4yxYJvEEVj44FXESghaMz/xB+Tat\nNGKbH9Xna10f55K/m06wtlP5/MV/2aes7ABi0xx5i+481N79+m0F9WXKVG91\nL9+DRLfzgfID2+toTIliCp20Iur0D3xJCHtiKiJ69JG1aPp9jEMpobk+Grsc\n5w3rXZTRv9sfUDBIJUpmtm8IdsTm6ZMEp242DLA5xuASMchzLRROwChrH+xg\nYK5nNnuaE/JUEBIhXVN8T406BRfi1pUlUQGWIjYSzTVzwUt0006TSclGkuL9\nQwRrf/aXhP76qbirGMAQWtTKdG4SadMCYKKjPA89OifpRQ0EnrqfVVow9zPF\nZiK4236dEOzeoPtCTzIdhj1jXrRPdqm70TTPTTUwYQ6lY46ys+pRWyItt4/m\n9zEF\r\n=/hMo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPvaFMJ5S+TmigGenUJ+34hipFSv7UOiV10VQ6dEKaFAIgbkv8tvBjMnoNNvtuOA0idJaVLhot50dNRAAZ4KUtfPA="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.105_1614864830110_0.007499775486873972"},"_hasShrinkwrap":false},"0.0.103-alpha.1":{"name":"@aspecto/opentelemetry","version":"0.0.103-alpha.1","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.2-alpha.1","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.103-alpha.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8GvctEmEjXMuU/k/g8mnLx2QZhcdZ8fE7KQbyIUoQ/JSSsd8ArPOtCObUveETlcrVpcfdtlO1PGhome8GadKLQ==","shasum":"f30ee31ef2f047c9df8075ed9185489d8d10bede","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.103-alpha.1.tgz","fileCount":95,"unpackedSize":150696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRKgDCRA9TVsSAnZWagAA1okP/31HgrWG3on2XOWSEbAC\n/Np6+Ol62HrCCsvw1RCenGi8AZPe1uGPiV06q6QtVQRsFNe3hT0uq1JepJW4\nFG4rczyPTeyLuR56VQNphV9P9L6F0OOLvNYZ/d2/tzDOWiLEnvDe4GCjqInv\n5VoBTUInzDl7tdvBJT+8cco77Yt040w29tiTMwHIkuqaPMn1QttdozSaa/V1\n5o2zQ87HLge72tSyoY1hKD0CAxtuiiYTQhF3Fsc0Ngo11kAtnLp5fFkafAED\nOeM/z7SEHOkDyyRVjBTUR/eJKA4dqGau/r/YZvQkiaOCPJYGhg7jCUoVcw4Y\nX//Wm5RT4gJWymeIsDdBzEmRtNjDcewdPMn3f6LtpUJSQ5mytlXjaWOyuGo8\n/qxd/+hJ/qZABHg+LI2ILx0zkQHxwrONwvvQQhW2T+wOqKjCTm1jcLfm4ykl\nd5T6ZqCbE1mJn4z1RuNHLlRUZeyQuOYG7Vp7PXHT7ZUXTrScyIp4tghyWiv1\n1nGK4onqaOans3PnGSFtENjTing0VjxCLZ0twKeBV14de+usT4iDPhAxPD8q\nL6vMUNCjQUMmhhopIdM7zVOMoTa2noLyQbWougNV6rIa/e2H/ACG9keAewEq\nFilRkE64HIlGZbVdSXnt1ItuCqACVh40H1MUJ/YQo+/Z7iQrzMkqSYDUv1YC\nO7+h\r\n=Bh7j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmimbZkA6U8STxGvBMEsSgLYWOOSXUFELNtFcKtsXHbAiEAx9Cst4g5YXuP/oqw5caYeKuY96r2nKcEcpTWrbRRK24="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.103-alpha.1_1615112194693_0.22564543549311455"},"_hasShrinkwrap":false},"0.0.106":{"name":"@aspecto/opentelemetry","version":"0.0.106","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.106","@aspecto/opentelemetry-exporter-live":"^0.0.106","@aspecto/opentelemetry-instrumentation-express":"^0.0.106","@aspecto/plugin-mongodb":"^0.0.106","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.106","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-elasticsearch":"0.2.2","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.3","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d2890af9ce167399b1845edda08dc818bb1b5e66","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.106","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-jiaFRlkSSnyfqYUnXbesuyNwkMQcww6i5CNLl9FtSQ+zUZdH5s/3cIKskhrU9BojEPo83CD9vsBf8K17snCS/Q==","shasum":"dd38501609ea74f55d57c9177868d02bc4e87b2d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.106.tgz","fileCount":99,"unpackedSize":155321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRPYgCRA9TVsSAnZWagAAkSoP/0AqQNNypTlJNaFqXI+R\n3UtBvkUvJ5OSXKq1jJtV0xL9IB+vY+7682+eAIBFK5Ok5HJ6aHb8kFYcPsUX\n7mc/QxmtyqwNUD7Jq4K/llzgr0uxFstiB5ZNlwf5DLMUB4q9qJTS6QZyyXnh\noBVhPXJrxm9tvDuvOYTvP5heLBlV6809eeMRlL4OgteU6sDo2x3XliUuHBeK\njbsg3XggPeKOgRU6znafnVqOTBtFPztedXHhiYu2Rr6KHwFjI/HlnG2CZ/EY\n5Hetha9wgXN0ShMAjW+1bu9D4Hvta0ZTZM+VJijoD08YiUJO9n2hOV1EhCFU\nGv8bxGb3ZkJGXSqK813b6eFbPZPSl0op42hMxRYiT2LjOo/U/4ZBXoaWhsMM\n3LbjrDwarbjdgt717o3vBvNUiv5KOxeImbtAOsb8pZvT3K2psgKk/vrWwqXt\n+rUNETEBov3qdajC6S9Jo8ciEsNXgJd9F22Szzm8x7md2x6RMd6eo3fEZ5jD\nlkZfHjKQHT+eJ1aG6HTjvYArw58ppSIOp2cMxibfFSxf1g81JUa5k0mXVDhI\nervetAYKX6l6obNMuWxdEjpi4YiKVN9zL4vSlAJeqTtkjgh8eqN4fA9zBsRI\nvfyEmpE7h+QFLpKU2DU4EiEBMiaKsGHYltwelXS0X6Qgq/7HLH9H8NMa8aCk\n7O9/\r\n=1xeg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Mr1woJvkeurmTxHiDDvH6fs8e5EFSxVeGQoL8eGgnwIgd2ehRT1QBLUA4K7VQC06X9+TdeFFdhBnz6ggqdncDFw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.106_1615132192057_0.12281365993420024"},"_hasShrinkwrap":false},"0.0.103-alpha.2":{"name":"@aspecto/opentelemetry","version":"0.0.103-alpha.2","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.103","@aspecto/opentelemetry-exporter-live":"^0.0.103","@aspecto/opentelemetry-instrumentation-express":"^0.0.103","@aspecto/plugin-mongodb":"^0.0.103","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.103","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.2-alpha.2","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.103-alpha.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dMoSpJD6/bCC7imZyoQoXWr9XdnBkqrNcXDraWxHxvkkYhw7hDrRDZkEgwbKG1znHRheJ++C/CdS5mXim3uyXg==","shasum":"0d051786d3612cb5d0acd5ad43e040533a86cc18","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.103-alpha.2.tgz","fileCount":95,"unpackedSize":150696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRPlgCRA9TVsSAnZWagAAXtQP/RJICCbR+pPIq5F40SyX\n1xNt80CSRcG0G2h1IAcgVHZ4GD3oDNb4TFkoMbLLkHOLEsQOJDPRchtruxi8\njVQ4hxlfnEA/CviKOxoP2b/TJToQE/uUy9a6uncUjWwSH2zrzZ+2lxmeyqPD\nxPZNDe/7bi82mhc5F972jDrDVC/Uam/0J8AJ6i2zQ9GS+2A1BGmQ72rjydm9\nWziBxyZMZ1L6jusvvukqhDn6jtnTCS449xH2emZ3d3G+MwFnXmQfvG74qxxX\nDBzRt3HNI/4meBG3CNylOaND9EmJ5kW5ShZ2o3LUmFIaN7I1aQkGE/TMPjOR\nYNEfzFGhdBbr68Ay3tR3t4S5P7inZvhxAXn0rxf4UpqQBbqvLhCyVWpaSsBe\nilldYamtY7vl+hbR+dUvTDryGg7SzC+Hm9/2GgXQJweop82oOzOb28ra7GcB\nrKhU/rGaHYuIqVS+TJ04PtadAd8MHBdMrRozEf/OYXxI5xLDTYBm1PqjrdLn\nnGmV4JkalagKgjgVjj9QztJMhE9PCZv9gVTWUzWvuP1NuvcY65NAocuHyu2b\nJ+X3IpMhQvCHUa/Ab45Gb4d/kuoJkrRa3I4a4qEEtYDVKdMkvjRu/CPMxJxv\nh+QON+B71rVuOZ3jMX52kJ1nW2hI+VAcUri/93XQ0ZhLTSGeTDtIhCpguwHD\nCBGU\r\n=Q+tB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJNDIe4b3X8JkSo8lJ72A+KE9WrTMmjUtyQ3eHinfCngIhALvs9rsamjYvb7r53AVFf3DtHsf9JfgYB/1xy70sXWMJ"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.103-alpha.2_1615133023832_0.781551073682401"},"_hasShrinkwrap":false},"0.0.107":{"name":"@aspecto/opentelemetry","version":"0.0.107","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.107","@aspecto/opentelemetry-exporter-live":"^0.0.107","@aspecto/opentelemetry-instrumentation-express":"^0.0.107","@aspecto/plugin-mongodb":"^0.0.107","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.107","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.1","opentelemetry-instrumentation-elasticsearch":"0.2.2","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.3","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"629b9065eec3800f98c107e889c35c0df468b3b9","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.107","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-8clGGBuakPFPT/hwkrCMOLc5bZ1FopA3UxTQyayIANN5Uc1Jy4pmpOpYdtuQXgp2NIN6/o1gYAikICgPAOhZ4w==","shasum":"168f3ed8d69973187a3dcd2a4bf49f9b91346d47","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.107.tgz","fileCount":109,"unpackedSize":205435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSiOBCRA9TVsSAnZWagAA1ykP/A18DaYLoIYG+M8WUL9/\n2/2ox46uciPBK+jB3FZgCi9pvFdEjjAfH3EdJZjhEo/2daiRE7JNnBpyOnrw\nBgad95Wr0FSqgvYEDzpAR3lgoEjmDV1NBJMpdPXDhAu376M1lyjQJslyRqpy\nK7CaiTWEaonvOXLWR+iivU4p1LF5+XDAzXdNqNxOe6yQnWkz89UcvHpywM+m\ncKziek0uAy9uo/QAU8hliPInjK6XBB1GX7sjt2IxBECP7PdR8EEZ5OX57Wx+\n1RUzGGsX90q2ZAiWC/3nutnY7ifW1dwcrTGCjTHMswcvC0CU3hQIbDw+AXxR\ng1Fn/5pdUhYP3pW2TijOrujxvO/Mdon03crAs5ftaOjfI03Wh6HTQD9WYfqu\nYZmdfGpd8nIxxL0XuSD6Y9H4k9g4PI4yjwBZp0KQ1yAYNlT8GYHB3T/jGxS1\nvjb+SkD5dWQHAaKZ+YpRQYSpotMPhNsSGIwJZx/22VanVq46nSJxTHODZaXC\n7wPbjwsaLQY2f3rgAMA5YPc4ZexIs1P+sv6/Dvvi6kiDsDxb2Y/wHOSHBDhD\nr+tQI2HgoPGbWCw0T/m6i4BPiptjuiFWvp0183Rb42ABeP4mze1kDusvOXND\n5XjgvdNBrDPoY4Ez0/aCD/QTg5Z6rSnZ5tpToODEAkSa1cuMjmG5EswGQCJW\ns/zS\r\n=nURg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaKnuRBNueMdHB7f6xJxu6xrSGnIB4D88i4r1DR3v8AwIgapUhM8ZtPds0lzQSHOerrsK67q4tqCXPcD5drhbOcmU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.107_1615471488792_0.0609609114664631"},"_hasShrinkwrap":false},"0.0.107-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.107-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.107","@aspecto/opentelemetry-exporter-live":"^0.0.107","@aspecto/opentelemetry-instrumentation-express":"^0.0.107","@aspecto/plugin-mongodb":"^0.0.107","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.107","@opentelemetry/api":"0.17.0","@opentelemetry/context-async-hooks":"0.17.0","@opentelemetry/core":"0.17.0","@opentelemetry/exporter-collector":"0.17.0","@opentelemetry/exporter-collector-proto":"0.17.0","@opentelemetry/exporter-zipkin":"0.17.0","@opentelemetry/instrumentation":"0.17.0","@opentelemetry/instrumentation-http":"0.17.0","@opentelemetry/metrics":"0.17.0","@opentelemetry/node":"0.17.0","@opentelemetry/resources":"0.17.0","@opentelemetry/tracing":"0.17.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-aws-sdk":"0.2.4-aws-sdk-v3.0","opentelemetry-instrumentation-amqplib":"0.2.3","opentelemetry-instrumentation-elasticsearch":"0.2.2","opentelemetry-instrumentation-kafkajs":"0.2.1","opentelemetry-instrumentation-mongoose":"0.2.1","opentelemetry-instrumentation-neo4j":"0.2.3","opentelemetry-instrumentation-sequelize":"0.2.1","opentelemetry-instrumentation-typeorm":"0.2.1","opentelemetry-propagation-utils":"0.4.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.107-dev.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jCE5QKcS2UWRLvYYIOOHHZcygqmBYcpxenPhqmbUbHwfQaylLH/ONtm7YGgiy+FhmrcLGr+OjiGowdvLIEeC0A==","shasum":"350008813af53f7efdd92661347931e18157af49","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.107-dev.0.tgz","fileCount":111,"unpackedSize":206743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUKcDCRA9TVsSAnZWagAAmOYP/3y5pE2EM8cCN0rWp5UZ\nguoOz0riOF1+VDI3a70mSX3U2JSdtvVtWH+iHHTJtjoIpCm+Ju/NU+qn+Gog\nsF3a8G7oerwv8CpFj+gLlfXCy6ilhEYRkXkmWHSEBwOw8xWpk2VRsZYN3TO1\njAW54WfkOBtUjQaUyoWrpp1NfJCJfvWhnDvnUIxk9/i3acbKqa3lsgeew95N\n6Y2R4lL20Z64F9xHVAsSetbwMw92f7Gr02yxOOkSiIKEJ6aMWBg4d7HfShWB\nOvfWl4cVeKRbp4osJrmqU1d4cZSs3Axbu/T2ZQpTZJdGTz/lho7uAeU0BAaP\nqi/91GBRvqtGg33cxR1vSFJMss6CslIEq7PPKEmN7BJmJKWZHf2cUsIaUerl\nJG8sNXRJf0N8Cj1Rh/sj7Tbc4P9nvmMwBNKhZXy1h/icyLnkDKAMAuDPnK1J\nu5BKya+dCTYfktjvl/+jwB7L0XaGroltnQpWnHsoMfLcBgrgyg1L3CrvwmIw\n9vGEHP9SVgrEk4rwIHrDB9qwbg405g7dle3A0y9glOzjH53V4BtTOAj1ph20\nNwUDAHKP8uevJCsni89GWVNcPJbHJdCV1Rt+t3AQivvf80zZP8sBEIqePPji\n5byEsK8RlAUWQLqlGd1yXTwPomhHXYUjWT9UqeAc03E1ojSV37rsIWrTjQq1\nxNnr\r\n=q5vf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCydgeZthe/EZvO+KGHZPHFfHzirzOvub02fjZY1XxAcgIhANdeXX7RH4ko0J4kWcB4Ob3ZA230o2M+ozTDIpIZJvUY"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.107-dev.0_1615898370637_0.6854649121874676"},"_hasShrinkwrap":false},"0.0.108-express.23":{"name":"@aspecto/opentelemetry","version":"0.0.108-express.23","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.107","@aspecto/opentelemetry-exporter-live":"^0.0.107","@aspecto/opentelemetry-instrumentation-express":"^0.0.108-express.23+74c187e","@aspecto/plugin-mongodb":"^0.0.107","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.107","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.0","@opentelemetry/core":"0.18.0","@opentelemetry/exporter-collector":"0.18.0","@opentelemetry/exporter-collector-proto":"0.18.0","@opentelemetry/exporter-zipkin":"0.18.0","@opentelemetry/instrumentation":"0.18.0","@opentelemetry/instrumentation-http":"0.18.0","@opentelemetry/metrics":"0.18.0","@opentelemetry/node":"0.18.0","@opentelemetry/resources":"0.18.0","@opentelemetry/tracing":"0.18.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"74c187efcb047d63ac9996629980aa78fa18d26c","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.108-express.23","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-SCRGq8HftVxw+qI3a6o3cCiW059RyzMfYvw5aZ/mHQDF/ctX0wPnwqcWlBI4cJsdjBQiFVedXLrImiEqDM462A==","shasum":"7d1c5752535be205c3d435e5a6c9f3b166760923","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.108-express.23.tgz","fileCount":111,"unpackedSize":209832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVxEFCRA9TVsSAnZWagAAsogP/29ZIXy3/kTGRoM7I2Ib\na3qT9DsIYg+C7YzkIal46zs798aAIsOKi4qmWk6GchMnPaNKmarEP/hBaCtv\nIm6bnMDBBx6CARFrFXoR4/QbYQa1bVdDcYofZ0XulT4S2a5No36OmDj97jyj\ndbJIUO6iMuS6afrrZxUUah2vW5RIHUkhaAiY5Mq1EdT/6fHbAhNaegMnwYVd\nf0+KgPldWWhqG58HX0VxomsEAxJet0HTzKgLJv4pVf7U+gRUgl8VMACNyb3g\nP4HhDR7Vwq5cJ913RQFUwDqMhOeBeqkE7DDaORyuBgMeSe7GSbq/myq2RfM7\nd8ez6YKgUAIgjYX+DbJLciADbr8Do0GyyZkShCkH4MEvTcSIAkAojVouQNOO\n+ixhMFx+jcUJYxmJa1rwxbS4M7ZmAFrbDfICQT3eMPmnT9Vaa4oTHBPoEVCx\nw1WIqFblJD1AaUcNbJC5LLqSmskIv7xktV7yOY30c0G/dEjegsIRkbxQDF8m\nDpy5L3MlTU7+SKxIHQayXQ3PcVndF6RsvO3t3TipqMJCk06H88dX7CdbYBL9\njJsOZMKvzaEY7ZWbynVAbRydrzhNIyP1Qxic4aB8G9eRi8t1Ketk63m7qvOj\nsaph1zNYV3U3/nt6UhYTU09Pba9MAsJ3JliirX+puajKGyGM904RmmdTeYJv\nKvZL\r\n=y1mL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/T3AGmzQYu7GHNHLiDGm5TsvsYbU6smgj13RnxbGUvQIgXPvjSkEQPYAWQBZI+6vKP63niqRDwBNucKmFrJNXRxk="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.108-express.23_1616318725096_0.9122311889342685"},"_hasShrinkwrap":false},"0.0.108":{"name":"@aspecto/opentelemetry","version":"0.0.108","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.108","@aspecto/opentelemetry-exporter-live":"^0.0.108","@aspecto/opentelemetry-instrumentation-express":"^0.0.108","@aspecto/plugin-mongodb":"^0.0.108","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.108","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.0","@opentelemetry/core":"0.18.0","@opentelemetry/exporter-collector":"0.18.0","@opentelemetry/exporter-collector-proto":"0.18.0","@opentelemetry/exporter-zipkin":"0.18.0","@opentelemetry/instrumentation":"0.18.0","@opentelemetry/instrumentation-http":"0.18.0","@opentelemetry/metrics":"0.18.0","@opentelemetry/node":"0.18.0","@opentelemetry/resources":"0.18.0","@opentelemetry/tracing":"0.18.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a5d6b9f82ca056d8944c9126c84a3d45048c7a9e","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.108","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-CM6YbPOSwEW5u7KDrpWA9Mo//8AygQMJbk+657TZEcNsEf7uQutG+vBEyVXZya9sdO44JB5kSxp4Wt1w5BSffA==","shasum":"78b174ea2383c6d7f2cb4bad3573a7d7d6cb9fc0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.108.tgz","fileCount":111,"unpackedSize":210604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWwPlCRA9TVsSAnZWagAAYZkQAJxDdqiBXyPp5f32d18w\nCKXD1rINYgleT7fqZk0w5TD5enfi5KP9F+Y3TNVIu/cfvz8lm5Q3ozzVbASE\nZrbgtYGTeDdOlta8iEAf2IEizas8boS7m+Riny7SbohsRGXGTqTCMCjkfzBE\nuK0sGFO1oCYHBvISiAI69Y7yV+hwk5M/7waIkYmPA6h7UR+g4KH3siO7JNB2\nr+RFfgpqaw/enK4HUwgNKltVHU95NBWiLLeXrAPdVotN7xOExUIUN1ZxdYSX\nxNrWhwsbD3mk4VLVkn76Yg1i5i85OirKay9jjAgBHbK4w7077aQnGd0hrX/Q\nS5FgOmrPYVUE6Hx+JLRJrJ/811FThGUsKY3BaJzYOPZYhHn3P6fyBAlUYJ62\nAHywkZo9T9MFPQWoOoIDqW7NrmTdR+9erQ5o9A8f1kn87ihPthbgFyRsD+4k\niF4VIxAbWOkmNP5DTEGrU2YyeY2nwNAxMouTKHUVlF5nynHBzMMQMruwBF6z\nLM1VLXMy3+aIopjJbn7pCZsmUoPEMG0w/7IRFGBrPlQ8VnD9k/3WPlqAcvVp\npwGWQru3yRIKMuDMRASXBzNt357qvloU8/gwMNBLFpaRRSxbF0R4puZkpjC8\nPjrFSS67mUpQnZW9LEY8cAHbnAWSSxxbdrQb5BHYtoIyDPxLf+vXP3OAXWh9\n+VCt\r\n=C0Bq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAcOWSD8oMdupyrqJcrWUPrLiTMPb78D9AmqaoSCMDpAiEA89CvHjZRd2LwLzyW3W1fxbki1FCTU+61hEg3Bhoz4Gw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.108_1616577509082_0.19199547669432082"},"_hasShrinkwrap":false},"0.0.109-express-context.0":{"name":"@aspecto/opentelemetry","version":"0.0.109-express-context.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.109-express-context.0+4beb650","@aspecto/opentelemetry-exporter-live":"^0.0.109-express-context.0+4beb650","@aspecto/opentelemetry-instrumentation-express":"^0.0.109-express-context.0+4beb650","@aspecto/plugin-mongodb":"^0.0.109-express-context.0+4beb650","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.109-express-context.0+4beb650","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.0","@opentelemetry/core":"0.18.0","@opentelemetry/exporter-collector":"0.18.0","@opentelemetry/exporter-collector-proto":"0.18.0","@opentelemetry/exporter-zipkin":"0.18.0","@opentelemetry/instrumentation":"0.18.0","@opentelemetry/instrumentation-http":"0.18.0","@opentelemetry/metrics":"0.18.0","@opentelemetry/node":"0.18.0","@opentelemetry/resources":"0.18.0","@opentelemetry/tracing":"0.18.0","@types/aws-lambda":"^8.10.64","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"4beb65050ba278673c1a21c77e1d468775690b0c","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.109-express-context.0","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-Gra73+gbm5HUsY+6pPACB18b2LyjExUXUKQwRj8i8Xoi1zw6C51vtTS8MrsprRIcBVy4SDoQmIOb6plXhzh6aA==","shasum":"6c9bc46e29c1de3f59d6ba2ae7399a8692667942","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.109-express-context.0.tgz","fileCount":111,"unpackedSize":210760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWxxJCRA9TVsSAnZWagAASnsP/jeFaYSGWONWp/ah4FQI\nUqVhwBfSBaDF+Ut+ekfmtd236AuZtFWpFPg7P1jsKmOUW0HY+HxJZGSAHVHW\ndRjiXayd0wT+L2+n1RKygk0k1Oznq2fLvp2q11QPC8il+TYYdV/4vFhur1jD\npCOlv/zBoJ7Lc5PWat1ESxM+2evkjqSL3vjfKYMCXMcNVNnabi1bBN07KDHT\nIJsq+v7GoGsqXWaEJ766kRJFK8zaxF/9Zh16JcxGkGiDP8Lq2CoGWExbst4L\nI7q/7qlqsgggA8VQ3AXWxq6I7S9QEtl0wL2wmuaUB+mqaJzVkaR2V8l7hynO\n9j8SyuxAIa/tv2D9Q9rxXIiWxkJHSPCcPf3mfBTRXwW671RwBxmPGHp6Vwd3\nq8SQ9mdsXQS87giZLAEVdKURNekMd5uGL5YXrt0TJ43FRypzpjZVOwcImAUK\nxhimywq7wEMQ2g5qIBCIpgrIQD4nTIQdSv9f4OSdE0EipRySoYYLaRQtaEVM\nsQEmQURqrvHBPXNSj4Eze20FohVlxBywxR7pXuorAz7jOh/LqCU7MqKRX5jN\nhzDgNHdHa9ssANHCrZ/zPy6VLLdTBHwYkOSU5PNMy3BZho/DRWw0ItKzhgoY\n3sBuYPrVTTgOk3YprxHZaG3Er7cGWbyzj4GHATsmIqmosjVRYC5AiMO+9+zR\nOKYL\r\n=dHoi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1LkE8Rp6GU6xxFkLFSYsRGl7JZ/5n9hmCDJscyCQyHAIhAKgg28Q+Q253NFfmEbZhNbhtGesInXY/+91AQ0CGQgAb"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.109-express-context.0_1616583753332_0.1445416031612241"},"_hasShrinkwrap":false},"0.0.110":{"name":"@aspecto/opentelemetry","version":"0.0.110","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.110","@aspecto/opentelemetry-exporter-live":"^0.0.110","@aspecto/opentelemetry-instrumentation-express":"^0.0.110","@aspecto/plugin-mongodb":"^0.0.110","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.110","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.0","@opentelemetry/core":"0.18.0","@opentelemetry/exporter-collector":"0.18.0","@opentelemetry/exporter-collector-proto":"0.18.0","@opentelemetry/exporter-zipkin":"0.18.0","@opentelemetry/instrumentation":"0.18.0","@opentelemetry/instrumentation-http":"0.18.0","@opentelemetry/metrics":"0.18.0","@opentelemetry/node":"0.18.0","@opentelemetry/resources":"0.18.0","@opentelemetry/tracing":"0.18.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"43c55407debde1e02c6c3518dbefb0242967382c","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.110","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-rhc6gWxGMSfN3qpxqGInWkePTUgPwQk2yeLdLnehZbN9vvCy+4fiUOgcnp85zpIQThHfZzkdJXHJY/M68bNPAg==","shasum":"3609afe3928022d4128cf1dca15d6f70cff3bb97","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.110.tgz","fileCount":113,"unpackedSize":216700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW2tbCRA9TVsSAnZWagAAUNwP/RB4J3VUxu/ODbeIQdaB\nsDpaNhnupRzsuQbemHHKrUARgwoEyuwVqbYDQFZhc45hqjDVPO4Q07ygp64N\ni5hGwXN17Nt9cT4oKqEw7HAoTG+N1J61tGz0RaSvaBgymdCykrZyzk05kiov\nKPE/l/4NbY6ht8tN7T6dleTrXbyrmMKXNWUHscWi6HC3AGsg+4ZTsGgdsC7q\nqugX5+Oq9tzjT1lFClRG6eqBxKN/tGLzCfk4jLT6oiPazYKhe0EJAH0J9vrm\nhEwbCwNTlDtp073iNVsb0jt2h3SEtnrlN5kki/y+ODtcjNE5bXnOZDghghjl\nnk4zInX9s+hCWoMtxWScqfaUJDYAYxzfxEr5N7CxGlT3CNVJMbkRBDzQ5Wm5\nTd+xeI49Ofia2BdRQIu7qlrXU8zj0H4EBmCYGX5rJDdlX0skOmD4t+aMruFZ\n33Jq9MOMMXl1nqPE5JLY2XMa/aV9hCg40ZpO3Yy6pXojf3FsvGQmUdJDa+N7\nXM86R2fy80W2tQXXadnGaxAjIzH+sWRj0ehJRpieuUn8zVRd+JyD7lcu8szw\n5VvSaR4zIKfhX5d0mFIJQfm4o8064DOsFgvD87aRSUOsZm7whwej94Qz69dl\nu97sNGlwnwPPpMKlEJbJpES74ZJxWP6CjWi27JnkEqkvOuvymQRXWySuwLJb\npk9N\r\n=MrJh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8D4R4x+cbk1ooc1V4z60t3rhgGL0fwCXwuwTc5atn3wIgGte3i0TykyIHE+Mv3t6mQTL8z/y5u6LYBr2ivB5hpu0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.110_1616603994995_0.21171501003415583"},"_hasShrinkwrap":false},"0.0.111-otel-v0.18.1.0":{"name":"@aspecto/opentelemetry","version":"0.0.111-otel-v0.18.1.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.111-otel-v0.18.1.0+1d6626d","@aspecto/opentelemetry-exporter-live":"^0.0.111-otel-v0.18.1.0+1d6626d","@aspecto/opentelemetry-instrumentation-express":"^0.0.111-otel-v0.18.1.0+1d6626d","@aspecto/plugin-mongodb":"^0.0.111-otel-v0.18.1.0+1d6626d","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.111-otel-v0.18.1.0+1d6626d","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.18.1","@opentelemetry/core":"0.18.1","@opentelemetry/exporter-collector":"0.18.1","@opentelemetry/exporter-collector-proto":"0.18.1","@opentelemetry/exporter-zipkin":"0.18.1","@opentelemetry/instrumentation":"0.18.1","@opentelemetry/instrumentation-http":"0.18.1","@opentelemetry/metrics":"0.18.1","@opentelemetry/node":"0.18.1","@opentelemetry/resources":"0.18.1","@opentelemetry/tracing":"0.18.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-aws-sdk":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-elasticsearch":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-kafkajs":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-mongoose":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-neo4j":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-sequelize":"0.3.1-otel-v0.18.1.0","opentelemetry-instrumentation-typeorm":"0.3.1-otel-v0.18.1.0","opentelemetry-propagation-utils":"0.5.1-otel-v0.18.1.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"1d6626d9371c90f91c88dae9a4ab16e431aed1e4","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.111-otel-v0.18.1.0","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-9o46NJcFun/us79mw4BlpihPX9061OM/JiJTUf2VXceTKNCBuZgog5zYt41KvAYaGJ1K8K0R0ChTzHZpiLouuQ==","shasum":"ad9bbcfcfb88d9b0ced18f8cfe3ce9ac37e10202","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.111-otel-v0.18.1.0.tgz","fileCount":113,"unpackedSize":217298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYxbFCRA9TVsSAnZWagAAG7QP/jLChwqVE2WUWh36NzDG\nRO9rZIE+WitfbFZtGtf6QAlEnhV7wRKCib9kyWNYGzCifO+hY4vFykKRwZMr\n8vKBecjTd7nUKCWI6cq1/LhIsE8KZ3222DQHUQ04H0aK3iITn/T20ApHv/Fc\nCE8Go7kJWGKj4DFYedgZW/mGO0oUL8MNPkRSGSyFsGNORJIW9SdjJJVY8AV8\n8f2fj+4J+AebVKYyUZXeN9Yb9LEtBp67nfr89i6oS1Ctx7M+V9+Fe3hFsbsy\nScHhw8no6kQHx+nkE3YXbH70UL9/lHMN6Qm7YJ9X1+WrAovlNAFckTR/Bej+\nxw73V7KW+BVPoXgMGFqtjbAAPivqxLDEACdZnRq6hX/BZQ9gpVOrQX87MdL4\nZguK9qZTRGbO5Tb89uKh2xiBHtkJgIG14PasBDDPCQ8EmYqsUZolE10oakya\nx5XGsm1CnDhnEbNvx2JN0C0cHBz0cR+zyPeWiBGOMK/xaZMST9n0mHicKhQu\nXormpbmFzevkUr/tvc3qBZcv9lk/rEqOxxik5FiQbJjAr9TmfvZ9w5IiyaX0\n2Ey8Bc7Pjfchty/2jUSysEc3LWW9VZKRQIcFFEfEj3jCiWJRds/SEijX0a84\nk0h0exACojgMsVXQr6x/CrMTV/bFZZNHTkkZ81Jil/n27z9sNcYuXQeaQH9X\n84UB\r\n=OhrA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHld7EOWJp9u2IdfigR3Tn73NoG2IEgrt8pbNzatHVPVAiEAo7VI88H4y1rK8ZKMxzNvcOoyYylSImrBv7l3UqLs7rw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.111-otel-v0.18.1.0_1617106629255_0.2453483683181441"},"_hasShrinkwrap":false},"0.0.111-otelv0.18.2.7":{"name":"@aspecto/opentelemetry","version":"0.0.111-otelv0.18.2.7","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.111-otelv0.18.2.7+e13aa6f","@aspecto/opentelemetry-exporter-live":"^0.0.111-otelv0.18.2.7+e13aa6f","@aspecto/opentelemetry-instrumentation-express":"^0.0.111-otelv0.18.2.7+e13aa6f","@aspecto/plugin-mongodb":"^0.0.111-otelv0.18.2.7+e13aa6f","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.111-otelv0.18.2.7+e13aa6f","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e13aa6f70072f4d3425e98cfb13e6141956177ca","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.111-otelv0.18.2.7","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-4TGr8mJJ4sc84HIYj6NkqQLvCpuPbU+8RZkPVKMgOBpm8cycgiY9Yi5TKA01MwzLi6d5fVO0c6AZSkp05jWDfw==","shasum":"370162c45c87a15a13f245d81d27d06fd32b87f9","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.111-otelv0.18.2.7.tgz","fileCount":103,"unpackedSize":167518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgazG6CRA9TVsSAnZWagAA7LUP/13cqu+zSnKoF6AqKLvi\nao62uangrZGFgTOtXNkfffW48is+rEYg/c+W7ZFcbRnuDZOTu1EJ+aZ8IcTC\nyix7LG9MKkiSS9aJ9zNP860P40jaGI0b5F8Somj5C760TSR/eduGMMnK+sKB\natLcUj2foUNesVPfp4JldhkfDdVgBOZ7ph51B7VNqCpTcsjsP90XmJzBOkWX\nUdSUm4/LrdV6zf5nRQ5TaRwUFgCJSnTrXlt+TEtJH7+B3vYZtrdbuogW3m1c\nk+ZqL88Z3tk+H5CR+rbQqZtyVHvDPYezPoHUVweiVeceHqPtTRQLLGDyJwm5\ngQiPVGfX6mkCckqgUZexZwiPBJHVhqnI7igffLVj1yx/XsyEg3s9LtzNuOYD\nqOuumY49LENhIcz+Ot4XNd9zQfWFqrZlXY0YG2uaZH5lNfbj7bTyjoDx7f2n\nYY57JAGAxRwOHLNcn6yln7kYh4e68R+Vg05wbJR+cuSVMDtB2ZBaeKwkCvDY\nziuPcpoHA9mS+lSQ7sN18gSfeNIaifNuF5eaZFOa605djzHsethCYbrRXqep\nZayHVoTUPFGIxoV90CoGAjlntmVmUnethAy2Ln1Hh2BZAiGQc4QhAPzH/SYF\n5EQyDJNV8a4QwCsTz+pb8yBTKY+hr5BzV1zVZadn6AaE7siIm90UmyxWRZwt\nfsrC\r\n=VHjC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxRNiOK/S4Urq2qMqA3B+yRhBAiK+QYquiU9ojlj0rBAiB7Y/RXe2Fld851T0UVi9n1bnKJEtc/5GU1Z+njhavgRQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.111-otelv0.18.2.7_1617637818107_0.2576507860607733"},"_hasShrinkwrap":false},"0.0.111":{"name":"@aspecto/opentelemetry","version":"0.0.111","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.111","@aspecto/opentelemetry-exporter-live":"^0.0.111","@aspecto/opentelemetry-instrumentation-express":"^0.0.111","@aspecto/plugin-mongodb":"^0.0.111","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.111","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"dc7392eaf813034ee39720961d9ac638dc11c0b6","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.111","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-UrIZBneKrlm4IpCHTJ2QckwbUeZQkm81KmNXIrIwlycNW0F81yN4p/mOx+x5BFjb4KCmhrKje2IUc2mlbAZEsQ==","shasum":"b026fbebac06f20f88acfd45beb2a40d9c318856","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.111.tgz","fileCount":103,"unpackedSize":167737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbAg/CRA9TVsSAnZWagAAMjcP/2j3eQMKeql0mwJzeW2M\n2DYhAkz5XvD0KR2URh3Mwf1pE4e9grwyd2aLlqu68Ds0OHa3vRRI7Wuz78R1\nnDNJPguIusPAqURHiPBHU4xli7mhxfeRcGCfzjCJT/5lAL26y0dCcQd6tRB1\nB+zarFWjIsnsJ9rVI5cqQqtbkSD/WW4Ifea917XTDU9Af9t3c4Mvz2xabIT7\nf8bsC7/Ze1F8a6hYqcTWuFTzXa1gxPQl6ptwiDpb2bnI9/Hh7LooQ9BPW2Rz\nA/bv366vOxwaeK0ee62mCxvwyCRbCEe3Msh0eJ2wTv3mcsoFk6M62nRADkWC\nTfr6dtaPgxBhGabaXlDPcNtPOo+9ZnFzNzoSUw8yTjQn8OV+yBpIvkiNAf/M\nZ1U0X4qV2LvoZ2DGguRpmH7y3cQ1rvAWq9kJoF9vmwMd7gb72xLdAlMkPpBu\nbsUK2VjqPl3aBLpNGWHyn0GL9REKlz6yENfkV7+R++4Eq/ouO3E6WhXp8oU0\n4h04Gd+1CQ1bU2AGbvYDtnRFQmoEimL1z1GAkDX/3Gq1IAQMhuSrXcQBq+UJ\ntkNBZ7lW+nOiDXgN0gXXZJmTs1m12cmBMFcqqsQ0mWQSa5Z19QIrLpHtQjA5\nCSQnOwqat4Qq0LoFsrWtCKo/3y+MzuMaWk/OQBoMLWNI9zJJVIDzh50NHll+\nHH3j\r\n=Ellx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWEEvzvPZh5HUOUzShVNK4rg+c6lVZZATdtEcyVVOwLgIhAItnNqqq63yc3N5Iq8F+fQgBUgcefHZb9RwUYfFAdqvX"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.111_1617692735448_0.5984290623036699"},"_hasShrinkwrap":false},"0.0.112":{"name":"@aspecto/opentelemetry","version":"0.0.112","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.112","@aspecto/opentelemetry-exporter-live":"^0.0.112","@aspecto/opentelemetry-instrumentation-express":"^0.0.112","@aspecto/plugin-mongodb":"^0.0.112","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.112","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"c038dbcf9307120ec4abcf2b59a2f06b77c75e24","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.112","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-aDGe3JZHnq8iZhJLUUXwGUbwA9PKGxGDtoLasU3neBN5YI5TCyXj8nrB+APvXlDlQ/uiOJ0sOyKhE3V1r5o/PQ==","shasum":"8d128b60ffabe6d8e4ad72a7d4fc1d9c808954a3","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.112.tgz","fileCount":103,"unpackedSize":167916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbDbwCRA9TVsSAnZWagAAA+0P/isjRk7DOm1ouUdCrxb9\nehFWDnthWkai51ntQWbzwYGK/w+Ni3NdeHOHcdHiOfMebStB6HFS97P9Q5O/\nMZrUQInsl6RcIZMCnx9B/sN+LTa+JnEuaiHUhvaOkQycsGmFMXnzULRyeGuV\nCqmMgZBmMk0CFr9/GIIBaUGRAsTqwXryuMmKqm6LJyvTf+pk7SKsV5V3R+wL\nDQl7br8Y5yAL7tKUVslvB2O6VIdLoU64OZq6KHef0zxWWF/SaU7V38jXMX4c\nFUHiW7eUHrERt22s7nyA0Try5Yskq9iY0YGESQCxnTxUNcuzbeDbqypOpJyz\n0phGfJjwSBZRy7ecevkkI9vFCa+e7OwAaHamb0sAjW5xr2DPTSo5GCQPwICv\nKpgrahMg9iROJPl4QIrX1/j6otjV/gH3CVW102SQm/PtQTRqtBEnLy8INQ91\nkc9u2gZGg6DHnh6k9gaH/2Blgb0yrBF4aZ6fDY2xAsJ5Xj0UHAZxyC0CxM9+\nAif+dxejGLhCWDonEb8RT1UI60/u/aq3suKAjbBIMZKC30mPBzkz0BNS34PL\nHfYD/wEGbrNoRAo6mPiWkph0YoPlB2f6HoA6Ru5PZiBmt18KxBJQvjZnNsf2\nph3lgGshILMbabZ2C3NVngjIwBnbUN7Zv81bo9TJ8JdtvQ5AsjDzI/UgWXic\ns8xo\r\n=Khb2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCtVc0nlX7ugr0q6yGbbcmrchvkWdDtj76f4slE0lc+QIgHBMFtHUrzWWEAmC6AHEj4cqZBhkzTeyej9kBSX0jwxY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.112_1617704688412_0.42908305540668135"},"_hasShrinkwrap":false},"0.0.111-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.111-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.111","@aspecto/opentelemetry-exporter-live":"^0.0.111","@aspecto/opentelemetry-instrumentation-express":"^0.0.111","@aspecto/plugin-mongodb":"^0.0.111","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.111","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.0-dev.0","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7817956bf7add38494b0e1a31b5991eabb005354","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.111-dev.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0hh/VTNN0aglc4j8GesoqpfULKsasZj5g5UHqHkCf1H93YCswaKU4PikgZ92qVGfI/pM233UN0Px3aKLQqNkLg==","shasum":"e2ef3b24651dd19d547ff200e04345d18ebc08d2","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.111-dev.0.tgz","fileCount":103,"unpackedSize":166871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbE0kCRA9TVsSAnZWagAAgMgQAJ9Qm+f/Ivo5Ml0/DhFe\n61HO0hS9nhAZQFIHyNKjfOdyMWulMxNq3SgcgQqDZdz2xC1wx1ghS3MLu/pt\nTU+KuDWfgKalWUg8D0VIc6JRTOJDuLg75aohHPQPHPMvMKa6MO/Ab3G7QZOA\n6vnfgV5npE9QQsDzqLEL9VfoDrHpTj5hcZcz8c851uRk6njeap/ilS89Ro3t\nvGOabrHuTQQU2iaQLwvZ0lAug8n6x0jTokGb+q7CgrRExjB/FmMgNTg6HbBU\n9mQpPNBOIQQwhIRtYrV2jK6vE3mWwNKajQTEFfs+RcvyL4zdp+Y0OUwBB1m1\nDQZb4ngVjy1eM+sKu8A4tyyaS6JzPC58YmzQ5fLvvUqVi/t+N8pKMj6aKkUb\nUVpVCEPrrXt40PQoXsSWCcbl/CFATrBM8hNypZ8KRs4ld+PskMEk7qAnw5XZ\nbDZwQp6sXHdSWWVJYORjQzHcHKE8p5m1es36AiD0WSSf9t0ZeUNE84y7J12t\n0Ngr1F5HTMY9aiyBIWw4FgaJuIMEBKYB2IkBQPwyuarm1IMcrjI3xOjtFaCa\n/C8Zy5+7BdSOL5i899GBLetVTYnAgba7UAT+ycVeCBqYcccMW1JjUt70orZ3\nEp2EmxSuT4gTXEoV3Aw41Bl5Y2+aSktlg3pWErsJZ6XKVaOToHdw78TuV0QA\nTYck\r\n=vf0G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFWY6aP5mREmOc1PvTD3IdtQ38QMlUEHdtqg7KZ87QJgIgcrbFtB03Fmd6hixgY+PL5vG1d22cDvYWH392qAnweh0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.111-dev.0_1617710371827_0.7905124298495536"},"_hasShrinkwrap":false},"0.0.113":{"name":"@aspecto/opentelemetry","version":"0.0.113","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.113","@aspecto/opentelemetry-exporter-live":"^0.0.113","@aspecto/opentelemetry-instrumentation-express":"^0.0.113","@aspecto/plugin-mongodb":"^0.0.113","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.113","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^2.4","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","@types/socket.io-client":"1.4.34","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"88fbd2390cec6f8f15c5d9a671ebc61c85292dce","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.113","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-/yxoqm/7B6XIuLVO0DWmT01K+tZX3jadWbeRU8VqvNO+DgkAosQAx/m4e79K44Vq0m2KuIcm3hsVsyZ7vHtgXA==","shasum":"1a6f8b8d3108633b15f4e882f7cb7ef4860ccf6c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.113.tgz","fileCount":103,"unpackedSize":167382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfFbgCRA9TVsSAnZWagAAJ1QQAKP3iVDIMwjVdUgyFGAR\n3m2ByOdCrINkWX55tSVdhUpqo98cHa69OMbBZN2FHWmTzZkqcJq8hILik8mg\n7OAtWZLg+JXCGYFooT453oZUNUOB1W4jKWcccbT0fZGN/zgCClK2UqSEgzci\nH2Onaj9sGmg8jxwi3tpzrj7+jos65G7goyzjaDpaaNb3+0d9uKDbEyI9N/zD\nGyRMjLwS5HUX+759KkU0Z5/4BJCSOd1mrGTlhWhfk+q1JNyZUZ7Y0J7BWVNy\n0oEOv+YaWs/VZdbuyNlL/JqKUzQZWLtyov7f3klQlcidjq82W1jYX96YGgQw\n/4J6U6+As+VD7danIzgDAZ1T3UY5K8b8UwFKorRhPoglUawSsB9A9mhK5CMa\ncA8QL8ANsKmulPL1sIIGpS25wsatCjIeuvWbF19xK2I+oKn0q9KtUoacVoQI\nc88nxjHgfzQn0m9zrBz1iSRABSD0I9bjhZ6Js3gnul96BnIMqpJkCW/odDjb\nyXZdm0Qojw/VlXDRa373X2lbmXFYDLNKQpG3CLzVer/AEQDfiMtF8apD0cgy\ncVTpCSQl3h702+otwoMW6bVL/M3oCvqnF5DaMsZMIOtC//kTyxIB3NNBUUxz\nVf9d6V4rW2qc4gaZhBTC+t1YLAIZRKali+Pat/rmDmzaVVyQeRe2/U1ad3CD\n05Wp\r\n=ic03\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+PTWW6gW0FvmPoFqHlkbdrOL7V2xOmzdAQao553k3NAiEAsqG9/BUjB1GPOvqkRExMF1JcarSAJD8jzNo6biicaMU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.113_1618761440486_0.696318595248858"},"_hasShrinkwrap":false},"0.0.113-alpha.17":{"name":"@aspecto/opentelemetry","version":"0.0.113-alpha.17","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.113","@aspecto/opentelemetry-exporter-live":"^0.0.113","@aspecto/opentelemetry-instrumentation-express":"^0.0.113","@aspecto/opentelemetry-process-metrics":"^0.0.113-alpha.17+5090266","@aspecto/plugin-mongodb":"^0.0.113","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.113","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5090266d3337e871f4efc64423e51ce1918e8e5d","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n|disableLiveMetrics|boolean|When set to true, metrics will not be collected\n|metricsCollectionIntervalMs|number|Interval in ms for live metrics collection\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.113-alpha.17","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-iA3Gcjl3+k7a72Wo0+M24lh8dmWlyygO02+s01WBfUJqdRaZAincy2RhkfACmzBT1V1UCQ58upKfvvUexGzfsA==","shasum":"81f0c7450c465f452282bfc1b74b62642cb02edc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.113-alpha.17.tgz","fileCount":103,"unpackedSize":168978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghSLaCRA9TVsSAnZWagAA8t0QAIVRwE9uDLSvZD9s5r2Z\n2tokT2rRDgBWz7OGHfsKkl2RPWR4sB6in39vKMbH7dt0n0bQe5/a1wnZSvN5\nh5PAtHajuNaLKpekgpJyEVqkb1mixFMaKxAnHYYRTWepNlkoBbaqWq9ELrXQ\nb2MpizDc1YQvtJhCUVckwSHpxYuICLiEqNUCycAOeFKmbFTGQVpGDMe6xiP+\nAe3DyxovpP36RUvZGOWmEO+G0ISboaTVbTgYzWR1IyakRW1/mzdDhWXWgdK+\nkuzfwR86VE7b2ZgFIVDQ8vQuH7Z94noRIbXwm49v3mB4CLHz68j/Ov7HaMYX\nHE8x0pgasLI/mxRaDXQwCkOfKHAhpaLAlLcuStswz0V5glK65kGGjxKkW1Ox\n1nb29kp6asPunEiK2gw1nCeRYlj3emq0DKPDqq8X0R5XECXCmkFwE8zJc8bR\n5p0wfV3RYlUIXSe076/NrzGB8KKHHumCvPHvmTLcSkcZotJudGvsAsTMoWxL\ncDwxci8rkPCYIN++lw0awTKeuhgZa6kurP0hbQq1y3LGxtEmkNGyNaTi181l\n90SMJfcNNUazoKY97Ve+/bkOpEsS/TtO5I0V4fEJkPoRfg5xi32kutHrZb7w\nbdLpidaIexId2QhDIK/HOrp/SWWekDVOL6bUpD1BycLNKup/HA7E4JfcjWmW\nk34a\r\n=Lcbd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1xPORm5vFpqoL7E2zXJLmv2+o4uZBG4/L7i+AQnlbgAiBwC3A6ypZGjuGR86Kwvp7qJoCBeTPQfe0fcw4Q5Mlz5w=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.113-alpha.17_1619337946475_0.9457441028710729"},"_hasShrinkwrap":false},"0.0.113-alpha.18":{"name":"@aspecto/opentelemetry","version":"0.0.113-alpha.18","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.113","@aspecto/opentelemetry-exporter-live":"^0.0.113","@aspecto/opentelemetry-instrumentation-express":"^0.0.113","@aspecto/opentelemetry-process-metrics":"^0.0.113-alpha.18+42b56a1","@aspecto/plugin-mongodb":"^0.0.113","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.113","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"42b56a1393f33d79ada4541937cb08d7b3bba740","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n|disableLiveMetrics|boolean|When set to true, metrics will not be collected\n|metricsCollectionIntervalMs|number|Interval in ms for live metrics collection\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.113-alpha.18","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-7MhIotdBmDL50c8mTdcqmd3f/1fB4cRWdkVFzEeLhcCo3dbLyJIrq3IoP+jI03FTEKYW+8OtUf9WIncLHUuhNg==","shasum":"d5f4faad045a461dd5e35bb1234ff26c592b08a3","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.113-alpha.18.tgz","fileCount":103,"unpackedSize":168978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghSX4CRA9TVsSAnZWagAAxFUQAIsG33JOq5xNSHYhB5S3\nD9ZlWVmPXbtHLNlnqiUd2a7/X42y8s8FxByGm+6TEEXY4UTRLBkbOmY/la66\n5eZrtooNeRETh3QOqdfrCD4BE9kjE6MuGburU2ja0of7k9vp7ySymisH+z1j\nBz8Wp40/kvpih/rpABEIyoCcuJbCKZsOfQtCaAKkVCPiBDono1FJ+6YNzCpP\nlJ491wuY2fb2iV90Lyi+ngxf1O3xBaH2LvgNhqx4dR7DBxbhi7YjODxdZb5e\nEw6bVX8P+jy0r36ohhUH6VP6i0zZ9ppZ2BEYA6Ea+ujMwW2zQa70V+AqqZgY\n7TGAja3AiqskFuSjEDAnB/zZ5UGiq/QRgLIUrXVx+XL1moBIxyATDGeAodFJ\n/4kKsyyaTcRIhbrWSIx57zITsQwJIhKgANYDOEq6XhX5flrbi7JlTo3tygW9\nHScFVS0cLpbPGvdNPiTAaKz3YVaaVdZZuOeE/WPvZChemAx2UsiER1lE3Nn4\nwbs6KAtKRao3O+14so266bmACygvru1B93ZznllTEpE6r7Oq6vnXIFp1PBzN\nCUuq5WuNLV9dFhWA7zUaypIdSe2pkRDS6NH07xcsu6g6/4prZ0sW1GEezq8h\nZew/8N34GNaZS0YIT620VYLJjvM8VQIQ7UqEt/WCsBuWtpWMAqLBA3EaXquI\n72gq\r\n=lS/U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnvQi64F17Am3v/51U20FYlUJj7pzv8seb/ikPeWlnIAiEAtSC6q6GV6NsAoxXiYIMKL0V/5SL35KaVprc1YBLs23E="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.113-alpha.18_1619338744122_0.6360465314393029"},"_hasShrinkwrap":false},"0.0.114-alpha.0":{"name":"@aspecto/opentelemetry","version":"0.0.114-alpha.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.114-alpha.0","@aspecto/opentelemetry-exporter-live":"^0.0.114-alpha.0","@aspecto/opentelemetry-instrumentation-express":"^0.0.114-alpha.0","@aspecto/opentelemetry-process-metrics":"^0.0.114-alpha.0","@aspecto/plugin-mongodb":"^0.0.114-alpha.0","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.114-alpha.0","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ec2ef9c31e0a9b2b1f6b1b288f79736e24477f43","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n|disableLiveMetrics|boolean|When set to true, metrics will not be collected\n|metricsCollectionIntervalMs|number|Interval in ms for live metrics collection\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.114-alpha.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-icEfxTh2WGH8YF581xth5163X//JrTZmMwZT2OkChZMLbWahasBenp2VuTbtKSk2p9OHA6WgfWsuB+RS/T0miA==","shasum":"7803cab92c2a4ee72322196993791b8e5a53b7cb","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.114-alpha.0.tgz","fileCount":103,"unpackedSize":169784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghTNOCRA9TVsSAnZWagAAeuQP/1uBlRPpXsFHf/I1aKGm\nexi96ZYfZhwn173GQ+yqTKqAJhoZDpDEpWynNUeceQLG/8Lo+LWWs4N7tRoZ\nnd7SfsziPWiSY30aRpp1Xj3Ixf+xn0/WxuJod2Lh+TAl9sGDgwxly8CrA8nw\nYN225zsI/gRKC3e9PU1xaFdeQW68oTfZznTvrwE55y9JPEvvceuW9YlvmyBw\nD5wuKssF7woh/t/T27ChD0JqFvy4UaooUNfBxZqVnxfV1pp4lhoduEyFIW8E\nz+pzfWCOSetcJDMW256JTn0yk1LhJCT8Oevme8WUoM8nWkj4+dOQYkCMzCP/\n8/IiPu8xE2ZUdCY65hwyb4fWh9WNDx0k4yAkxxvBM4Z+oj8vApB8HS6F6Gsj\n+bqh4YWXNd05s4YyV1Vzu+C7r3TLy1LF61bAlXFCYj3l4+IHwz8/2qZfocI3\nYDDlZ1d0ndGpI/GqMPjfZxkf8zE3v7WQQR3k1hnKabjJ49lJMkMcDJCawA4X\nkpV3SOAmiG0TMpTog2FUgVIahcsaZXTYmYwyL60jgKj4VNKN8J50FaOaKRYL\nMHWRLU8YuqAD30heJMinC0wTwB/R9O/0W0jAQovAwAxrKHB7Qr8/gJBn1dLo\ngu+AsElZtiOirDNtVZp0+UvQQ8vDOIQVfbXgTc04XAsm0A+m4KwxrtF1IAQi\n/IWp\r\n=XA+q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC0wHRpij5dSy+GAt/0KN/AEJSkomK4LrPu+pbapovFpAiAIlX16tBRgyiG6NfYElfvFrW3zRzfzeqgZOeU8Y26OCA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.114-alpha.0_1619342158396_0.27891027213330166"},"_hasShrinkwrap":false},"0.0.114-alpha.4":{"name":"@aspecto/opentelemetry","version":"0.0.114-alpha.4","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.113","@aspecto/opentelemetry-exporter-live":"^0.0.113","@aspecto/opentelemetry-instrumentation-express":"^0.0.114-alpha.4+0da60a3","@aspecto/plugin-mongodb":"^0.0.113","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.113","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"0da60a387f5abd6b6f1a151f14aad0dc113d35e6","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.114-alpha.4","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","_npmUser":{"name":"amir.aspecto","email":"amir@aspecto.io"},"dist":{"integrity":"sha512-o9w9jZMAhwxtA3X+0a7vQZPRgFGNyBoaNEt8jpVqcLRWvufST84kl7eut2tUqvBFrOdETYLRUBmAc/v/aOgjTw==","shasum":"76faf1108aee6d6904af92fb8564be68ad7dfcb2","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.114-alpha.4.tgz","fileCount":103,"unpackedSize":166606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghnRVCRA9TVsSAnZWagAAZlsQAJuGfAs199W6GrrtIi3i\n2nXS90b8zkGYhAFCugk95oaiyFetWsuLMn9+RgouEdoBo7lOyT73yKtwPnv6\n9vAGmJXzBboGE9sdOPE8WejOTqZD6FDSiKQFSduSj5RB1nLOJoIzyVbpERd5\neYYA82WL1mDtmrVm+BsGNZLdCJm7QABzMTpisuLiqlQC7ZlMOX436hl+sdtq\nagYLvc9rFPwtiljC5XFR82eO5/kTSgO8xixVRHf6QVahYmQ6/F0Sk6QJDiPs\nCcaFQOoTroszMsaXHDn3SV3S8RCLG5Gu+4Ayx3tpINNR8MQTJvt0uU8BzzBe\nartolX7VdDKWWxgFWeIVNmJ7Fj9dZ8/KsuBoWHMoJiUCeNwUElWT5HaksP41\n3FEwYAPhhNbK5QCGqKwMNvM/KcNw4Jw5CHUElFiWfJFAvGkwRHQTkCSOP7zE\nNIGX7aK5Y+Ub66e5XEUQ8rfmjZbdqkQXi8BXzVkYvDR4ppkLsnlsnhrf3IWs\n7VWvT6kw5pGvzJe5uiKgewOAys4rA8MtC0WvVYm/2acJ/RYNvlSi1oPjIAl5\nN8h9LZ2uADossVx/IzSyoOB+LP6H+PCRRq4/2AZAQK49GIxu80XSLsghQnP9\nAzW9vCjPe68vFb3xO+EOwfdYKnG4H28SJfqk6BPYQl8DqqhbHUJIeVh7I7Zi\nk6fx\r\n=NUAU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1wRhslXLJR7ZayAati7iyBLZXiXH3aXwKsvXOk9XXWAiAwEh4XnM39/TiUqSBkax7mwaWIUo9nu+ufFFuTFPIEbA=="}]},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.114-alpha.4_1619424340953_0.4013229882710625"},"_hasShrinkwrap":false},"0.0.114-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.114-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.113","@aspecto/opentelemetry-exporter-live":"^0.0.114-dev.0","@aspecto/opentelemetry-instrumentation-express":"^0.0.114-dev.0","@aspecto/plugin-mongodb":"^0.0.113","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.113","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.0","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"b6b412bfe2a0471fc23977b75c3d8054772833f1","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.114-dev.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-pdo41K9cTZ8VYuj6n63VDyHVUsJg5+IDWA2vcyFB3kqNscU6FnsxZGaSGosKAcHRNCqefijaQSXDUsai4hZQUQ==","shasum":"35f6647e7f48dfea9fc0b3efb7320d5dd6ae9c9f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.114-dev.0.tgz","fileCount":103,"unpackedSize":166795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghrK2CRA9TVsSAnZWagAA7Q0QAJ8TCOHVztIK5aq6EJMY\nrdgE6UP91P76d9OVHXMlusYcyy5iqMQU+l0gWesm3RmL8d/7wabjrnMs4JZq\nDzn1+CHLVh01FqG4hv6Mfphfnk8Tt0fpMcH7VZBZXUnSm59m9Lcdh/ZJosdR\nx0f2CWZuLWzjbf02IaV+fhs51bhNcHFM3J3GnjYlmjTDxsOUyRWDhtFnT7Al\nyHdxb1fvOkwX8AtxPGzPRBFSOwwrhNpdjPYwY5Q+biN6EbZjf7UPhEgJpCUz\nTl/s5FvUYE6U6CVj7LELzX0qtYmQ+e6Uki4iEZa3dnKX75bmWUYjIM8tO81W\nS7b5/Hp5iCnV1OYaVKZcJwGAaik6djo7aZnmQsPX0o7OiuCLSLyeHzstNQPU\nadbzCKcK91y3YoFNidxC4jCoKiCXZZS2E8XTGhu+5k0GnJB8wCbsCGX4O9U7\nS+Fz9HwBdmZIl8HA4ZPgRXbhxVEQqYXK6BDJN9Cx7JZwMTPVkH4InAWz8WuH\nad7x4gB/8xpEFW7SXO8AJxfMSFjsa79KLC1SAJ+z6lMOD3P7RbaoSXvfuYdo\ncl27tTKnxGbXZZWXAPje2gRP52D+e1ZBwvY2IZ8hCAs3VFBDaA9e/Qh9Yc4V\nofs1pPOUhdzefj6N4UpxUwPRal6foTDuT3FuuOA1LvP0gz+GXg5lsJlMAkS6\nyGXF\r\n=sh/b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5g9q+qbwL8P/EbBEHIjWZoqWsAVEkbW5+A8bPzRDKFAiBKnroFm/JaSrahn1d7G3m2MkMIAEF7o3o+nBbTGUSXGw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.114-dev.0_1619440309512_0.17131197843163815"},"_hasShrinkwrap":false},"0.0.114":{"name":"@aspecto/opentelemetry","version":"0.0.114","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.114","@aspecto/opentelemetry-exporter-live":"^0.0.114","@aspecto/opentelemetry-instrumentation-express":"^0.0.114","@aspecto/plugin-mongodb":"^0.0.114","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.114","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.1","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5b2bba34e93b09f6371ffd423afa4fd4183c1f6c","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.114","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-AgaKUodQ/O/njT0iIiVK7f7kkQgqu2L0mytgToE4rdPkchsqyxvzWFRFTxcpUyXdtGES/z5QR581/vHn6M/WGg==","shasum":"da2ce8cdb029f3b6eca72803a5f0055c3d2cdb48","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.114.tgz","fileCount":103,"unpackedSize":166932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh7TbCRA9TVsSAnZWagAA4iUP/2mZAzx2QfAVpXM+Rxld\n9N5J5sMRFkH295oSuZmAGsOVWsC5rQqpa2/FR3rLOQR7ha1qQu5+aEI7S7zs\nOrR8cks8GfmY+IR9VIsBcWR/k4XwLnOplnBEALAdKwyiBcRsLDEwfZ6grOmy\nquJt8ln0/Ymq/1sfpdNj/clHAIkYM8JuaYqR8OowrjEVP70yxm7NB8wj2fPn\nGUF3h0NLhKMTjOevTIi6vzFE0CI1G6JHeOmJqpYrg9zjp0/2SqCupKvgQmVn\n0K2q9dmNF4/Qib1NlzVk6lcsi4ZNf2oKDJpYetUQ0p17FHjKIJsFondiEsE5\nTlE9pB26IpjbCCKx+G1wZ6S9/X80lTSwYnJiV2gAfFGamSJ64Vk56j2t6sBL\nWLguqBuTPmsUl3TvRFfP6UxTg9IGXtPw5Dg+sBqUU87n4MhgZyQpVD2faW4F\nHpbQeLmWMBNufQQqDKpb7kOjMqHmOL9qWWigahMTj0hH7o/hrihdSaicsNF1\n2p6wcUvcx+EMgSkktFlIUX0ArFVEWb4Kz9tFixse7qvFB83RLvQkk0NG0Vxw\n1ITbwz+cvR2EXZVDx5mafTSQKoGt8/s2mgvD5LubYI6+V8EEL4FFrDWhIxFD\nj5FaiMK8PrS+qkfafVqmLLBW8CTpwgT9elCt8iksaOlXQZCcAbVS2+n7BAcB\nLBdt\r\n=Wrso\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGw3pHtPVugf6zNzirkrj56liRGXOxVqL3sqVZdt+oJcAiAM8p3pHBzZjKCQKmFDIV3xYcGNDkRYnQEDQUcMczkJQA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.114_1619506394981_0.11676495231496253"},"_hasShrinkwrap":false},"0.0.115-dev.0":{"name":"@aspecto/opentelemetry","version":"0.0.115-dev.0","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.114","@aspecto/opentelemetry-exporter-live":"^0.0.115-dev.0","@aspecto/opentelemetry-instrumentation-express":"^0.0.115-dev.0","@aspecto/plugin-mongodb":"^0.0.114","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.1-otel-v0.19.0.0","opentelemetry-instrumentation-aws-sdk":"0.3.2-otel-v0.19.0.0","opentelemetry-instrumentation-elasticsearch":"0.3.1-otel-v0.19.0.0","opentelemetry-instrumentation-kafkajs":"0.3.2-otel-v0.19.0.0","opentelemetry-instrumentation-mongoose":"0.3.1-otel-v0.19.0.0","opentelemetry-instrumentation-neo4j":"0.3.1-otel-v0.19.0.0","opentelemetry-instrumentation-sequelize":"0.3.1-otel-v0.19.0.0","opentelemetry-instrumentation-typeorm":"0.3.1-otel-v0.19.0.0","opentelemetry-propagation-utils":"0.5.1-otel-v0.19.0.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"3560592806b9ff39dce205130c89972f21e57d83","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.115-dev.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","dist":{"integrity":"sha512-+qom+wBfECdubmZ34TsDSA9e08wqWJdOCyt7u0YJGI15yxiYAf2sUK3TUaPtG+Hc+c4QHN2RmNEFLFJih/R6rA==","shasum":"0cbb2d7148560879bd56bf561574e37d27606d79","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.115-dev.0.tgz","fileCount":103,"unpackedSize":167144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiCyhCRA9TVsSAnZWagAA3jwP/1nTOdDmUmfj/HUVggh/\nONVsn2vOH9o60hwbrwG31oJz6pVUx6QmvImFkhwfrGNXnudVv3Nw5u6xTxJV\nO0ROZ3vwSAwRsE94rY0L9WNiWK5HF3HbsIa02Wis0eRXYeLLBHl6+IfqBO3L\nfUy3W4kj6It7cZMhjQNogb9t7UyIV2sSAMTAZYalWmeKt40e4SM0SYn8ET1S\nVXQbTPtedz/DWM1UYT8qx+Zyna3G6RcSknmaVmd5DiMvyMlobucRftsZ+oNv\nLquvMOpYCQeA20H1i5dpQh7jE2x8x/Oh3tiRyRfh+P0WYbWaVhW1hlRh2ZqD\nRfZnZoPBNkr2GvnHDEfW1S/PWcC2ZHFC9VvJ0kU+js7ssHpdXJgz6Z3NokKF\nNxCkPpL8AIE6/XxIggyR45aKYw7IBr4dHJDxlSw5s/wXjIfDTv2Q1Hgyy7/C\nG5IOh0ZLKT0QNctrX464nvOkUMXy0aHqNUjZIu8UGrbcmpDk2C7HX85+tlQo\nohfJCHnkeq9SzhWnIJ/Ay8nKnF+zaMzUoT+L0wZ8aB18PCyscgJ14SOrLoSj\nFQObeHrI1yphAKsi8ueitUUwgvN8SLGWlEHBSF2Jce7Af3OKnj8Bu6QgA1A4\nTgL8S+jVJFHBSdVNHgQGug0P2sliXwCGzeaswM5ZrMLEYzb079/LEIMlJM6e\nK1cS\r\n=dSg+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAWNZCUe2lrinJmG+Prp3JK97jXDgv4GCVR8PI/sHqGgIgJiDJYH/VB8w5lmVQuRBVlEbSZsGJuHN8LHgE+nrrP+c="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.115-dev.0_1619537056655_0.9288999303619621"},"_hasShrinkwrap":false},"0.0.115":{"name":"@aspecto/opentelemetry","version":"0.0.115","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.115","@aspecto/opentelemetry-exporter-live":"^0.0.115","@aspecto/opentelemetry-instrumentation-express":"^0.0.115","@aspecto/plugin-mongodb":"^0.0.115","@aspecto/sampling-rules":"0.0.5","@mzahor-test-org/plugin-ioredis":"^0.0.115","@opentelemetry/api":"^0.18.0","@opentelemetry/context-async-hooks":"0.18.2","@opentelemetry/core":"0.18.2","@opentelemetry/exporter-collector":"0.18.2","@opentelemetry/exporter-collector-proto":"0.18.2","@opentelemetry/exporter-zipkin":"0.18.2","@opentelemetry/instrumentation":"0.18.2","@opentelemetry/instrumentation-http":"0.18.2","@opentelemetry/metrics":"0.18.2","@opentelemetry/node":"0.18.2","@opentelemetry/resources":"0.18.2","@opentelemetry/tracing":"0.18.2","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","opentelemetry-instrumentation-amqplib":"0.3.0","opentelemetry-instrumentation-aws-sdk":"0.3.1","opentelemetry-instrumentation-elasticsearch":"0.3.0","opentelemetry-instrumentation-kafkajs":"0.3.1","opentelemetry-instrumentation-mongoose":"0.3.0","opentelemetry-instrumentation-neo4j":"0.3.0","opentelemetry-instrumentation-sequelize":"0.3.0","opentelemetry-instrumentation-typeorm":"0.3.0","opentelemetry-propagation-utils":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e144e61b5240f815c6d5482b241de7a9ea4f12ff","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.115","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-ohmwDi4MaY1FnNj+6Z78jbGeZC36T6DhfgqFVdJPiaJzZi/XYpZOMktWlDwHTHZwTnBYXUtXzYaJQR9wTRa4PQ==","shasum":"f1835bafa13372bd8814e73c49ac3bdc2f839c68","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.115.tgz","fileCount":103,"unpackedSize":168384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmNSnCRA9TVsSAnZWagAA1AQP/jpjdyjDNAetSuXFSw25\n60tzdWn3MWFkuNB3ngAGnc4nYXVQ6wSwy9MnHgFujl+Opf/lRAA1HmDA9gYY\nWUNHT+LhcOKXZYDlgqaNPRy2iOQZnUmj8VrUgu5Mg/iOLxBe6Q6fclkN3d7m\nPV6vBF199OdBH1rmSmVtdd/SSenmRaPReBb6jSu/LXGTRC2kKYscDSLpnxwN\nLzdwBYI1ocNUoTKIf+u7iizykeI0TGc26t2Hs3SsSP8jsDsLjcDk1+Ad1tup\n4WBa70/8QBgLVlO4aJ0x07yKqNg7oVhqSYia15k6V89D6ZiJJac9ZhSeU8CC\nCXFm+BFaYCVBlsAa9nWsieZJXjxJe3z1DSp26k44dpYAHLrBw5ctNSyV8M3u\ndXItSw6Z3zPMGiTuGRU+ftjxAMwLqZGF270QyeGBBaq7g8yzZIV9m5RPfLr3\nFdu4qND1d96d8ifaD+H+QpRMe9gzwU617x/uIzBVCe70vl5Bo5mRI2w4vEg6\nK6fTCnVOpFoiZUotChSR/ASrbSTGZ2lit6FxElXgVmVjO2flERyvFLq4sfp2\nJC8OJqGPGN/GTZLR8Fi8dN8PErTSueg5Ry7OD0W7J/bCY/eEUPosbPMSW3Xx\nIE3KZnqqVRseuBXwY0V98X4f2BaojWn/BOK5yPTjFlj+31pd4AqlkHT8F8LW\n45FF\r\n=dHaO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8+gD+yeJwlJaDqyEwwXxZlaXmreISKq/Go+p/at+jcAiBs7yR18SYNe02dhnFHlvepwHCkxtf2cmv/7DIMqAUffw=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.115_1620628646535_0.8559162175772348"},"_hasShrinkwrap":false},"0.0.0-2021-05-13--08-21":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-13--08-21","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1-aws-import-one-serivce.0","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.0","opentelemetry-instrumentation-mongoose":"0.4.0","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e4358b5a34c8fa2cd0fec288aa97212a4c05b031","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-13--08-21","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-l5PDOo5Su2XIwHq6Bu/6XWblX2GDZLIooL43Bb+Lj405jyGYZ0KJogs70K4Dw4CfpmPfVlOjSYCy3fQPuoW9lg==","shasum":"6d8ead72fdabe8c1458375b1d1068ff454eec8f1","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-13--08-21.tgz","fileCount":103,"unpackedSize":172550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnOHJCRA9TVsSAnZWagAAzHsP+gMmigrleJraEVa28vKW\nChmKdFPitUiK5sRhSJoyFZW8nQz+02DbeptoF3dtuow4o4uohvAJlOQgI49K\nnBAJXnO2GjrDxbpGeYWsl7b9cun/AaPd0r9F6W4/v4+kvRw8sDTtb0AR1C0c\nFDwL1rlVafidvipjI53Oz6TIZEQ1L5LITP9RkCa6/vHqJnSTJfaO4LZkMsRp\nF5sWjrT+PDGGplbOnxBYDY9l5KDgXVsry9BBbmZR4C2FphA6x/LdQNTFuNgz\nD9VYyubdB1uFo4NeY2dsoy8jqX9tjuCLK4wx3OH9rh9UPUVI5l1rJxkgxId3\nK36PsV283UUWU94OBJYtYL3J53qK54xVH4YI0rCcZS7Qw/1wO/uZM9eSXcv3\nPxZu1LaM8Sq9vWJiN38k/AAj09/9TjS4E1HX8HGmdUbeOl1kkb/5wxQP5DE2\nY/qEHOaOtY0DsCQMLey4ISjnyYq5GxtKrnzpmdgLRJwIID37D6NwITmllsBR\n1hPZLfDRutd138xuxvdLhkj3G0SmnbdoslAQf3BtMfhNIGCtHlPYbj2+KYXo\nviDZF1gZeh1NnC+DrlPhyolGTvSqgVTbENgcKLVgUSFyvA90Z5xm7vee4YDu\nFtve9gBNrliNzb99uzUnAkMKIupB4whBxbvfotEP4HsMIug3qcmvVuWJ6oW+\nXW+k\r\n=0CJ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6qUj4feGyrGfQF186gT4vFABHQ9+Aa6DCGrCJDXMLVgIgMlNTDGVe/uwTBz/bn1IrzAcu4vweOmGGGyzDgrR0sXQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-13--08-21_1620894153395_0.9483086921544619"},"_hasShrinkwrap":false},"0.0.0-2021-05-13--09-11":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-13--09-11","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-05-13--09-11","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-05-13--09-11","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-05-13--09-11","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1-aws-import-one-serivce.0","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.0","opentelemetry-instrumentation-mongoose":"0.4.0","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"384e8be4ef4c86cb5e3cdeb17ae905bdeef57c77","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-13--09-11","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-rdvRG3XVGCEyidNNEJVLLUEUcymZa4OsIVqruyNQRcIxENZkqWorsBH7tOPbyQEFUd/jKGwKv5si0HXO4lxnFA==","shasum":"3cc7e73f591c5ee0a308737c5d261255363a6b3a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-13--09-11.tgz","fileCount":103,"unpackedSize":172779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnO1fCRA9TVsSAnZWagAA7zsP/RV4FJQz0N0MPtvuR1Q4\n1DGtTvidHRPwpTZICWnNSCeoMMW+veaBsMtjdjFfbZy3dr7BtNMYPlpW+LSk\nG4oYTdb9d0jEUjv5Ev8dqRt6PddirXM+aHJW5+UeT65oXKmrHgnln84nKath\nijPKnW/4lKpgHWqxPyGdQpfCUTuMfxGgIGVzv7LRnFfm27XjmbTX+JCw6Syy\n3h9zsN29OUYZ2tGZSUlS8uZURDdZ2wqeEqGJF7adVi4TgP0y95HckL36MW/j\noCnuXOtEYFwW67f/wEouMBdgO7JR9HikQLn5bbHznjfkxFHFNLe7wloLCd2M\nWyUVzSHopW2ADbvhDDFx1iqRV2LKkbIIA75La3YxhWh2w+KSZzYsLvQouCg+\nkek6qZHOVKtDnX2QqSyxiF8wQP8eDh6SBFQAzD8KAQwSZKjAHa1TteB1MC/j\nBscAcEPH/XT3vzhDxnq8CDyjQo4k4h2WSXAUh9t8IHA01+FcjiuzlpHoDwy0\nGrPEkp2vMfTQbvlKvp68FgC0jZVKjrc6Jd3KfSzqqTYJqNwo8L1AciH6u1tx\nTZbDtycpET1uYLIDQjI+/BxABsfRqjRhb3oQwMQ1prA5y5RE2t8Ccm2zkEkY\nCpmvD8h/SlsAdJ7mkMXEmfTAvsQDxWsT2BEyGXDMPRsIOsyHlBaEPfzNGGE9\ni3DS\r\n=97Sd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCic9P4wVRt46Al1Q+emxlq8/0B6XMIGihA5hbj2ruRhQIgVHYHvDAAQuuWUH12TpqnOp9SqZD3Pl3gX/i/PqPRdWk="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-13--09-11_1620897118770_0.14421763926757936"},"_hasShrinkwrap":false},"0.0.116":{"name":"@aspecto/opentelemetry","version":"0.0.116","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.116","@aspecto/opentelemetry-exporter-live":"^0.0.116","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.116","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d41547aad743ec22dc8305ef6881ece61a7b247f","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.116","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-Yy2kKBfq+xohdCjhI+VjCRNIHNmeZys/G+qyPClF8AWMgnlEnZZL16sIYMltVPSqdrcIC1VPkSOolUJu/OQIdA==","shasum":"25609f1f3f1e26d073b2cc7742424b15ebb5251f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.116.tgz","fileCount":103,"unpackedSize":173033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgo2EUCRA9TVsSAnZWagAAnh8QAJgIXbwh8HBG1K8Abvg0\nuh7Z+iSSeNhdIx7qiWhWXfP01lOTyl1JhQPpQ0Cq8tQsY4kuL7HhYvFrkdAG\nmKjrbfnfL/wP8pB3EIxUUGwuNtyU6nINNqYpQRmQpvoinArR7LkimDpg1niJ\ng/21HiEMiIGv7Y0jhewYUq5OGJRujBdgMmSnuB4sdjBCfRuz3/HnLAkA8Bg2\nrNXFKMPxqHaGal8tZ6f5cDBlD2DLCXwCSWi63a4VkGtAl8c9BJdrdsgneoVj\n2DM3c0j10HpRn5SISSVoh2h9s0bFsnIiXNzycRZpg8jBf/mSirbmO/2xoMbU\nYBd3WKSSqc/AMVsmQCguOBsFcgWyXB17y8SMS/69mRHghgJCxXajEi7AnW2X\nOGn9LRvlCzVLPtO+zmuQH7Jv/Ja/4ZZC3gb8QD7XcNOe/ILga2rmFoGRmC18\nJGGj79HQVUU+SnHLgTJuFgBrpCFOgi7e3eMHslsbyjMeygm4pk3KCGnsnjwu\ne7djCf6xfxK7KYNeSxfH/bDUsJtYLMosi/Xg+8woPqIK514FrGVrqXocfkkr\n+o78nQrzHVIJ2HMtVA68svJzK26czaPS5f3HuKd4B7zRTJhk8hmS5cOI+eKI\nBmnskJVW3qy7IyXA/cRKWDPZi+JYUFW6LQzAZ2KdXlVH8YJ8mkE4a7j0DMSC\nbrwC\r\n=xYYy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/73FUFzTv+kkkJqmio4mFeI/lmjMaN4W3jybEuClDXAiBmEgFbjgZVYsWmFfy4+vkk6yva0RMCRKUcq9NKWQPGtg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.116_1621319955588_0.4325453262114196"},"_hasShrinkwrap":false},"0.0.0-2021-05-25--13-59":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-25--13-59","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-05-25--13-59","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-05-25--13-59","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-05-25--13-59","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-socket.io":"^0.0.0-2021-05-25--13-03","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"aad365e5158b971d1d6c8b9dd1bf4810b2d0f46a","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-25--13-59","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-aok/u2mXwlPDLEM/rloL84cwiycOR/teJ3UVriOE+TWmF847Dnqu5yVyMnIUs4tsDGso4xcPuLjUoeJVqSHE1w==","shasum":"6f1c669826f4e02500da68a1c446a280e341335c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-25--13-59.tgz","fileCount":105,"unpackedSize":174206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrQLlCRA9TVsSAnZWagAAcLwP/j8EKMwsk5CCZ5GElHbe\nQb4l9T2EHVU3JkTbjieOPBplF9P3bTEJbik7UW/amg9kwUfdY6n7qiSaG2i0\n3te3pdicRHHiuQJYgjVTAHtGJthgUhe9+fa4Mp1Qqk/Epu4vXH0neJOf+yCM\nNnI7sZ8/iV7bj16c4j4vt1hIaX1zlsPaqyLfuiB5OMjoOh2VKq951rnQsMeX\nEVMQih3PPia42zq+mzqy/BWPFtKfrWVXMBpel1A38xZnccu5/hqG8WlvvjDU\nWH9LZPvpHh3zlxLhIg5DulP9pZg0w0TLGICY36b6HnotgPorMaCKVXJuBXM3\nvfFIw9pzSekP+1gA5n38ih4lCB3i/LkurQR01fATJgkl3hfpWjzBvJrZXHRe\nJqfUNbfgW++GSn/rB9GWVYyJjL5N/nxiC87GUFt2w4jvUqUP1LW9t1LrGOdg\nS2MlRqoqMva6EKjlKI7h6/SyBTIxuw3nZWig+Cn01NoEQ+KD1JmNVAVMQEUN\nbYaSXPOq6KkEhU/lxjHOAkRQoN1H/cIN4w0C2LZfiMLNTNegMiJmSv5oOaim\nKeKoyQ6kMsKoSRxbi9XUd/lYh5JRMWxTCyUhzYPeXRb0NHepIrrU6YswXOD9\ngFGq7yB5laQHum8oDrRqIndE7FrQei5gRSyweg0Zv0yvmH6qxMsQ4U7DBaNh\n6rA5\r\n=w3H+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCjlPXj+oHgTlHFbBZSVTmFGgzGwLZJk7DodRHPImeuAiEAlQiNY/URn/1S+KENAhAFsEP1tV5QkXYt/AuI9exe1PY="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-25--13-59_1621951205236_0.9107316811892967"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--07-48":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-26--07-48","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-05-26--07-48","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-05-26--07-48","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-05-26--07-48","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-socket.io":"0.0.0-2021-05-26--07-22","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d565ea89acad819fcbd32d48f4b506f768d4df58","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n    * [Isolated Mode](#isolated-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|isolate|boolean|when set to true, enable isolated mode for [live flows](#live-flows)|\n|liveExporterPort|number|specify port for [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nLive flows can operate in 2 modes:\n\n- Connected\n- Isolated\n\n### Connected mode\n\nThis is the default mode. It allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n\n### Isolated mode\n\nIn this mode you can only see flows from one microservice. Also, in this case, all the data is being sent directly to the browser.\nTo activate isolated mode use `isolate` option like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n    isolate: true,\n});\n```\n\nIn isolated mode, the message in the console will look like this (with `port` parameter):\n\n```\n===============================================================================================\n|                                                                                             |\n| 🕵️‍♀️ See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?port=59778 |\n|                                                                                             |\n===============================================================================================\n```\n\nNote: In case the Live Flows port keep on changing, just add an environment variable `ASPECTO_LIVE_PORT=59778`\nIn order for live flows to work in isolated mode when running the service inside of the container the port that is used by live flows has to be published (https://docs.docker.com/config/containers/container-networking).\n\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-26--07-48","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-utUR7kDgd2X+HuYg5rETIlSg4r1mGtjRSTPdZVswXYdv6qOGUvCtHzVnGQgJR6A34UmAIt484sR3LzKJ0KkXJA==","shasum":"aa9f30053cde902787446e5d49810a23c756c61d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-26--07-48.tgz","fileCount":105,"unpackedSize":174205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrf2HCRA9TVsSAnZWagAAzUgQAKEkrUSLOaikeFR4MfaV\na7LplA9ICKu6bN/Lbo5yy8cvHqnavNYTJjyTGTwlZoEN8YzYir6SJ+F2KTqC\nTRhBIuyUQYlfCiuMLb3qke0uwVDTOgTjP5+G0DCchGntX+xK4IMRQAJQaj0s\nfq8y6z1J3yNNh9W4VGNrA1q+4i5tKjAlDWo5j6tEydkLb4tcXRghDZbraNUU\npLGHRHuqIMRYCkPwcdnIGgcVToEpha8wfpIuWtO92Ins16Q3t3p9F1dzSdpF\njG6mfs/7vrZCqdhYHYWt/rgp5+G1dabfoqa41T1gK6lkII6gyaI8laW5Stfw\nhZv1r/A2GM4jCjB9CW2jd6G5VcOQmFf2bjzyLPWdz/88Jf7zVcsGPZj1Sdrz\n8h7rpoggu+l+rFf7WA0hNxSZRxrT8IC5JwxcH4JqKm2UbpRivuxOrY5CR+F/\nD5RlgGAke1Me8NZZwE35l04VZX9AUy1o2c6ow2wGUP35BBOMzUq7bP2qvOo9\nzDJUj/3Xkclj4oZQts3XTmIwOe4CErQeVF+m4wqqblleJfFvhGLyTlmpvvZ5\nVcIaHR/bQVyNJJWRNFyGCKTwSa0Oxi7nmMGxcJiP6ngRGUgA8a7Ll33wkAd1\nZd1mqGmRefAn+wZq+4G+8xIny48acT9AuyAKB7a8X393qC4uKQm5HYc+datq\nG8rV\r\n=KRF5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHm5UiHyl+53MOqd7vbLUk7m/uZEpUzOLYv0EcBr5lWSAiEAlkgBQ4eDS+37BweRqO38YZHvNbXcG+qCaj91FEQdz3E="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-26--07-48_1622015367106_0.4283109100791418"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--12-57":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-26--12-57","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-05-26--12-57","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-05-26--12-57","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-05-26--12-57","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-socket.io":"0.0.0-2021-05-26--07-22","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f624ecf9538412034f19bce98ae48f954d36f9ed","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-26--12-57","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-zqlEx/OM08RwVgu5LhdC8UUGaZFZXajfE1lNUyilPssJi7ARxWsRPWGfVaMb9K5OiX0heGiR4cmhxG/xnCQ0ag==","shasum":"55fa2d40b17f4e0a690674b1d23dec35dc3007d6","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-26--12-57.tgz","fileCount":105,"unpackedSize":171231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrkX0CRA9TVsSAnZWagAAKEIP/00cWNzyb4tQlGk547SK\nwAtfSIIFlrE86abUPZwjDvVnMqTyank+eqmJJr2rQIxmeY4jNs91RhSrBQTl\nCyuk+3GhuhwhKM9N6lreM3e/+uRBYmA2NKHjIGHhxNW+Xsn0ccxm/VQQtvr2\nLDQxJBlZMwtWpmovbN32XiwqOOhyEBXAttlj2RpWlMZ3ARH7KZ2S9sP3rIaI\ngNylCz6B+ooSW1xujOznTMjTDnwG7fi0xrvo5cu0T9mhvyGSLF1WWYyVipFl\nxCDfOi2v45QOVABqqMu2wOdrhJ1JOlh0KutYWu3/SlQxIX934hrQsX/HxD13\nOsdSQSC3CVRXT0LqODwBTAE7Ej9TdXZsx9GS6T5XHolgbHJcB+cBCYg4tc+y\nROH5RY0kziAsAEosOt29x4oOkDzTPDnFDM4wAudE3OWFmrj1/OIrMtYLaZ9u\ncTDwQFdued8vtF1Hpu8a56i7tLB9LaGrUdSGCBRFcZqnZ4DGWSjx+3duFN05\ncS9bNEwNptgkqPvVYr0zGt1eBvRIzhGfawncHqe+E2LzQ4fdel5QRGXoBKMA\nu8/27AEQj1gWgPpt+W5BDiYVGDWws44jDxf/faCY75EHWI326AyxAbxqY0PJ\n3xT5UInUqzWxSTn9Bz7wgvxGwrczOXkGOHEeRf8o4exNAMZQzp3zzyyPmMHr\nPN7X\r\n=ffjy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9LsAXR676mBIFKMW1bqfSimkFlojeFj3cWz6n1a1sTAiEAmcyUVA6C1/TM2dajxV87hGlD/uQjyZQoDLVTc3vLFyI="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-26--12-57_1622033908438_0.24526415955297232"},"_hasShrinkwrap":false},"0.0.0-2021-05-26--15-21":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-05-26--15-21","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-05-26--15-21","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-05-26--15-21","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-05-26--15-21","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-socket.io":"0.0.0-2021-05-26--15-12","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"tsc","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc -w","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"374c4946f1f821d5a323574059f79e77120422d0","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-05-26--15-21","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-zdjIYcUcZWqnyNVHRDaDfaBT4/WECZgOaHi7FIbd8jhLZykICPhJa+oufDTyi3TS+wLVudb5M0CG/Q3GTIWEGA==","shasum":"7add220c67ca6db9d2475d3e08f5790ef451c185","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-05-26--15-21.tgz","fileCount":105,"unpackedSize":171231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrmeJCRA9TVsSAnZWagAA6aEP/27J7lk5PHyT6j9uRlaV\nYkGBJSXf5q1BBy5MU1xo7Wa228w4nAWiLk5fr0ACn5NFVBmogSnOVUFjrMcM\ntlkHc4JDgwzyQB1WlsBF+D+ywZfp2f7RZpzIzWRujTryeVYb5ic+VCss96zh\nLncQz6s24ILGg4quxmSdycRNXMX/9AV8okJr+DddClwnVzTYf6MrRexHkBwQ\nhSQpPRqhPQfn/IcyIej0mU1JOyPOpD+xoamuw7DM/x/GrFhyKt4EvNDbMD+0\nyg37wWdfqwEepS97uQJ34hXyoZJGXpm+jNbzZN59BdXVNSjtRKG2V/AIouxM\n3w4ZlOWaxV4JbCb0abWifCpnbJ0i0Bu/z2cYkfCuVVlFaj9VR8VdhVodZeAM\nBEUb0gTyJyVIVd035Kuc7nZSEOAf2mdVwujnC3aX+dWfhBjdzQmCOpUVeAEu\ndDFTHCStYc7RxxOrKR+9S9cNbphse1mf5YkvJA/QKozpva4C9NX9/HvUWyPr\nuIhuIqFZSrHwJFVLzPbZ9kfs/FV7/snMAJYsemYP1WZOT+PmVTJPChkKr6Rp\njk4rbONgEptiUZgdQhZEyEKvZ8bsTvqlQUdsry1CwCZRso3FtIMX2t9TpTcj\nni9UhW9OpAW4Def4ltQCQIG5xfzFSaBj7Na2cX0kMW26gq/N4pE+27v9viMI\n+06+\r\n=WyEQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXthNZea21G+GnnsyH1QepEBROgNbCvuJisqwJ0N33kAiEA9H275tg0uEEfAEaLA6xYxwvHvRCKB6cF9LMRPNHp/18="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-05-26--15-21_1622042505133_0.3646086013180738"},"_hasShrinkwrap":false},"0.0.117":{"name":"@aspecto/opentelemetry","version":"0.0.117","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.117","@aspecto/opentelemetry-exporter-live":"^0.0.117","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.117","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^1.0.0-rc.0","@opentelemetry/context-async-hooks":"0.19.0","@opentelemetry/core":"0.19.0","@opentelemetry/exporter-collector":"0.19.0","@opentelemetry/exporter-collector-proto":"0.19.0","@opentelemetry/exporter-zipkin":"0.19.0","@opentelemetry/instrumentation":"0.19.0","@opentelemetry/instrumentation-http":"0.19.0","@opentelemetry/instrumentation-ioredis":"0.16.0","@opentelemetry/metrics":"0.19.0","@opentelemetry/node":"0.19.0","@opentelemetry/resources":"0.19.0","@opentelemetry/tracing":"0.19.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.4.0","opentelemetry-instrumentation-aws-sdk":"0.4.1","opentelemetry-instrumentation-elasticsearch":"0.4.0","opentelemetry-instrumentation-express":"0.4.2","opentelemetry-instrumentation-kafkajs":"0.4.1","opentelemetry-instrumentation-mongoose":"0.4.1","opentelemetry-instrumentation-neo4j":"0.4.0","opentelemetry-instrumentation-sequelize":"0.4.0","opentelemetry-instrumentation-typeorm":"0.4.0","opentelemetry-propagation-utils":"0.6.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ab205424b01cac1bba84eac094ae7938c442207b","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.117","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-1InfdTkNe+f8UbfB3Z8YbkBzE0ofRK882njEJ9BnvMeOJ6wPpuz/OUCmpyp//uZxPcdmdUxrGLxii1Cpc0QyAQ==","shasum":"f3af92fe5ac44aaf192711af9c4a241ec438a3f5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.117.tgz","fileCount":109,"unpackedSize":183934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgs1JzCRA9TVsSAnZWagAANkQQAJpizmOEe1lxfDMGmEjm\ny7jbDmkjPL9JT33YC46ppOf5baa1YSaTQP7ieByShzD9vaBnN8I5b9+/PvEz\nt+E8XrHL/9omAo9edFn0S/3Gr5CH6OqQ5ndzRKXvc14o7SyBldXzK0xtN8Ft\nz6wLwLTYMRO9o8+zbkx94gpsDU0fALhyg3pwAC0PkcotZPMs5GYzmI1gn853\nb5lSvR8SN8vt6229wXZ8/EwPUGoqLNKi1V9lbQcwbTnXDQwIkooPbI7/qKVo\n+G+np5NSewcTZb3392nHg/60OefJrGNXbKQtpEjB8MIZw3SgT4GbDBZ2Y9ef\npMwLrPnrPxTvEqF/B+QLHQVey+brKlJe+lkWeHrcq63kFrb+a4LofJgCQQVk\nIIubtWL5RWC5MPMBDGz+Ow8MCiXUH/YdThPCpgUyZKhJjvfEo2msWpMGYO4r\nxJpYpIC+SPJcdTUNCIzVzMwHtzbVBuzasvtAQUTPFNOH0BBmod9QNskOoKIA\n81ym0LlUHMTm1ln96E7gXVoBqysUMNPgJ5SKWNfdqWi6tsqQnrhJCN3kLkYf\nqN30S86sy2ZmDcQDlgdOGkOVaIEvPflZ9uXbKrXiNEvWJc7Sf/8RFIaqoG1Z\nKxIqiQQn9I7mKPKKiUFQNzK2Obm713Hce39Ud9i0zP05y73DAQwAhv+wARjS\nX7RQ\r\n=apr0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCndXX/0SrtdGG8SN/5+XPnrUXbdhN/x9TXDuBLtml+xAIgYnixBmijcstKrBkNbiUxRAnLbIkEucDlcNPg8GvH4vQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.117_1622364786644_0.5233142067886001"},"_hasShrinkwrap":false},"0.0.0-2021-06-09--08-13":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-09--08-13","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.117","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-09--08-13","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-09--08-13","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"^0.20.0","@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/core":"0.20.0","@opentelemetry/exporter-collector":"0.20.0","@opentelemetry/exporter-collector-proto":"0.20.0","@opentelemetry/exporter-zipkin":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/instrumentation-http":"0.20.0","@opentelemetry/instrumentation-ioredis":"0.20.0","@opentelemetry/metrics":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/resources":"0.20.0","@opentelemetry/semantic-conventions":"^0.20.0","@opentelemetry/tracing":"0.20.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-aws-sdk":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-elasticsearch":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-express":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-kafkajs":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-mongoose":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-neo4j":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-sequelize":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-socket.io":"0.0.0-2021-06-09--06-50","opentelemetry-instrumentation-typeorm":"0.0.0-2021-06-09--06-50","opentelemetry-propagation-utils":"0.0.0-2021-06-09--06-50","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f5054f06b0f0bc7590e990a2820da8ce3dc1d4f8","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-09--08-13","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-4TwdNQknq+N+/v916vJOoVahEZRzkMNAam9fXd2C9R7OKdIqo9iIkXozV6u5XPP2qADN8lW5m6g0HkEe8h85kg==","shasum":"95f29feee544b1a20d9ebbf4ba7531c02a03a74f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-09--08-13.tgz","fileCount":111,"unpackedSize":183932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwHhBCRA9TVsSAnZWagAAG+8P/1+L9OrpDgQC0L6q+ZwI\n4c1Wv/JMAx8wWfC7G2w3Be1737v/ipglj9kZgiYmh6Sv5hhLfnEvE6NQtKFO\nIEdMkQC3sWTQBif3koVB0wefWp1mRJtzq5JQGxjd9LK+9rM3XVwEyW5Xaqr/\nb+1uHGm74E6JBRV007ZJT7WZUJ9zyePEx+au26IStdnLaBTOQR9XXtT6AKYr\nWz33EpmUe7LLK3IJQg8juu44fkyTubk511LFOnbdBLmRUtneCEyoEA/Qpxbk\n0kWPHjKslF1WUCgnRKi3cfCKxn64kG0aRMWhICKF3+D2m+ZiEzW2d5k+xYdU\n2DuLkNL0A5SB0GgUcjj5eNZh0t0hHiGLvQEIzRpSiYCgc4Qa+838Qy/1eW+F\noFkAprh15YMaEMLipMFA92mL5btdao1Wr5ghUZE5OvygN1qvW+63d5Daur1f\niA4KnMXQz1oiqKefFgpPm5ZXYe5ddQfhyt0zA0oUsa6w3rvO6lEOkMab4Lau\nh6uYknMn5Y66h699S6w4CjzccfYcxap7RK+RaHTxM+rmlEWRZzh4Xi3a3lFI\nOzK46FU3zJbb2NAStlyoMCcnrRB2JdeLGp9JRkqTbF/oD2PJoieFGAopoWkR\nucdQB1H55H21lx/WtfzT3lr8F6PMhkJirEhAc41IBfjs1vho/c01+Dd23NT/\nMErK\r\n=AF6/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSJwh4p5QGs6Ky4Mj8eoDVEi4o0F4MvLL8KgIvRJTMgQIgCYUczGhF+BPSGMt3DJLsBbXHREXff7oXzyDP0vBFg+Q="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-09--08-13_1623226433593_0.8855187531195738"},"_hasShrinkwrap":false},"0.0.0-2021-06-15--13-22":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-15--13-22","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.117","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-15--13-22","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-15--13-22","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.20.0","@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/core":"0.20.0","@opentelemetry/exporter-collector":"0.20.0","@opentelemetry/exporter-collector-proto":"0.20.0","@opentelemetry/exporter-zipkin":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/instrumentation-http":"0.20.0","@opentelemetry/instrumentation-ioredis":"0.20.0","@opentelemetry/metrics":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/resources":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.5.0","opentelemetry-instrumentation-aws-sdk":"0.5.0","opentelemetry-instrumentation-elasticsearch":"0.5.0","opentelemetry-instrumentation-express":"0.5.0","opentelemetry-instrumentation-kafkajs":"0.5.0","opentelemetry-instrumentation-mongoose":"0.5.0","opentelemetry-instrumentation-neo4j":"0.5.0","opentelemetry-instrumentation-sequelize":"0.5.0","opentelemetry-instrumentation-socket.io":"0.5.0","opentelemetry-instrumentation-typeorm":"0.5.0","opentelemetry-propagation-utils":"0.7.0","opentelemetry-resource-detector-deployment":"^0.0.0-2021-06-14--13-06","opentelemetry-resource-detector-service":"^0.0.0-2021-06-14--13-06","opentelemetry-resource-detector-sync-api":"^0.0.0-2021-06-14--13-06","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"34f84e5686dfeb8f0461925eb84669b99d8e0822","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-15--13-22","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-/CY5R/7IFq0kZHWk9pfOhXgGSd001cKoCjxh51+Qm3VQ2fh6kAPG0eCdGMQEn1snXFJ+IiG1pBrt7AsH8A56pg==","shasum":"eeb1dd635563a1b6b7a67d5732293586ca7ec2aa","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-15--13-22.tgz","fileCount":115,"unpackedSize":187630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyKmsCRA9TVsSAnZWagAAmzQQAJFvlMSXKNqgU+pWTTbT\nWPGlqhyF7UPrVRFQTnTUKZ2uSU0nfNF/4fL1dXBHB6DnllY8PuLsjHSnPfQ0\naHAFQ8FUIpB8NHyTIgB7ZCLt1abTaUgD7tGtL2l59xIjeWgj6bIacFLix+k+\nBjOkZ6pMqAKR4JVWE57i7G8RveOV13Z/737RfC8AeVyZcQOsY1ogfJD4SqXI\n13vQqkX7sf+xh5A004z1UJrxtGS+BEpF1ECP4pNkZev6tGBmcLw0nAc3UgZz\neJuveNVh5TCJ6deQR9YB7hQtrnrLOo+pF5u+wYviMZSpVknyzOyu3LOG05ox\nyDWs0bede+WYDc/GLmpMaiRrHODDQSH0y/HGhE9hki7jvco10KDHbYwYNxSc\n5B4J++058seNk3L7iL45DcoLOeM2YskDK8J5o4kdLbvcPyq851sXNoE/WG5s\nYEbJZDwuKHdfOtX8sfao/B+qSDuTRZZEuz5o6x8Voa4UMYO7vBssrPwaH1Or\nSL5J6KLQ7Bw2uGrC6tHjO3N2TRyV1f8kA0aISDLWBFzDTymmENN/LYk1f0Lt\nf7MsOr5WeCD1DPtIhShRiMFoEZSBnx+DN1ywOJ6tAspnLkdSWy/ilLKI+lQM\n5Ok2JE0TNcvH4Mf9RJu9OUw4ey2Aa6lZ2Uk+tzdO/4s9hQV2dXLjFAM12z/6\nOI/q\r\n=rvco\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5T5+wpZV0D+L9v+4LTDJCfwyIAckBrYPkujvOffMb6AIhAJo5n11s2ahZHLkNk8H4eYfhiWegIBVlDt/8cjpVZDyx"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-15--13-22_1623763372391_0.8180929359412525"},"_hasShrinkwrap":false},"0.0.0-2021-06-17--15-03":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-17--15-03","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.117","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-17--15-03","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-17--15-03","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.20.0","@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/core":"0.20.0","@opentelemetry/exporter-collector":"0.20.0","@opentelemetry/exporter-collector-proto":"0.20.0","@opentelemetry/exporter-zipkin":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/instrumentation-http":"0.20.0","@opentelemetry/instrumentation-ioredis":"0.20.0","@opentelemetry/metrics":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/resources":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.5.0","opentelemetry-instrumentation-aws-sdk":"0.5.0","opentelemetry-instrumentation-elasticsearch":"0.5.0","opentelemetry-instrumentation-express":"0.5.0","opentelemetry-instrumentation-kafkajs":"0.5.0","opentelemetry-instrumentation-mongoose":"0.5.0","opentelemetry-instrumentation-neo4j":"0.5.0","opentelemetry-instrumentation-sequelize":"0.5.0","opentelemetry-instrumentation-socket.io":"0.5.0","opentelemetry-instrumentation-typeorm":"0.5.0","opentelemetry-propagation-utils":"0.7.0","opentelemetry-resource-detector-deployment":"0.5.0","opentelemetry-resource-detector-git":"0.0.0-2021-06-17--13-11","opentelemetry-resource-detector-service":"0.5.0","opentelemetry-resource-detector-sync-api":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"8bc96882d27c4fe234f6b94b5018b9484a3715d0","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-17--15-03","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-6FTUMFs1iSTo9hQ5d1sRCk6PPllkrneYOEOaG/AoTXLe1v2+/EQG2z5C5WSwkuMcDKknwFZST+HivQX75o6VDQ==","shasum":"27bd2ecce368531ff093f001d91d5243df2d6098","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-17--15-03.tgz","fileCount":114,"unpackedSize":184553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy2RYCRA9TVsSAnZWagAAKkYQAI1UBLGeslCLlHvFJCKC\n8SUtQt5bK/lrz0cM8ZlFxqNJaTRMKpzGVXx60rqULQpGYY460n+TO40Vv/be\ngDjG6d9VZAQf4eiozoLMhNaa7EawL2lBoPGmh34rDQuokLWXrCspf7RRH4Nm\nr0JfPuUUL11Nt4sy7ZEkNAvs+bvPd4WhD2Ovz2GWRsoRbm6CIaZkugLEAJ2J\ncykDYElXFBAnTOXbUAc8GmIbk/qUpeuROaxQ9ox4L2VZYBUd5+My15/+tOdk\nLliF3iCuu7ssG85A864H/O7NSPXKFlAaAqTCl4/e24rkaKBbMv/XJ6UeaXl7\njRWE5SI2mUFtraZBL1wGX8s1Prt8xaBkuImTos9ORyK1r7YIy4qLPcXn10ZV\nzpL9EslsAirm1UYT0L3aqYBeVu7yY3gPia2eG2Ka+ZD1X5fvdx17upj1Vw0E\n3m/V4Amcmh+I4w5KdbHRiwGsVGUsflU01aISH62Dg6HiD0QyKlK4SHE8Tfh6\n+GuNQFxJ0d2DCU40RONyTp415iOyEVcYHQiQK/b2g9f1KXzh5Bo5Rqie21k8\nHytvFhPodGaGJXCmyX6uvxBWGw8CgnbZY3NB0xnabtHCqGwWB38QgKqAQG9O\nT3SUbx1uEQbV0ZfaME4cdyAmtAyOXXlDGAY+5/K4j/WYpoNbCN/ztuRi+f+F\nKTaH\r\n=k1uI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIpvV9fAFMktJ6hWG5iJb4tmis3xbP/In5NUbd3YqBnQIhAKUPaGFf6in2w4b06lqOxmaZ8lXHC6huhTG0ucLig7i1"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-17--15-03_1623942231542_0.136153737995939"},"_hasShrinkwrap":false},"0.0.118":{"name":"@aspecto/opentelemetry","version":"0.0.118","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.118","@aspecto/opentelemetry-exporter-live":"^0.0.118","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.118","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.20.0","@opentelemetry/context-async-hooks":"0.20.0","@opentelemetry/core":"0.20.0","@opentelemetry/exporter-collector":"0.20.0","@opentelemetry/exporter-collector-proto":"0.20.0","@opentelemetry/exporter-zipkin":"0.20.0","@opentelemetry/instrumentation":"0.20.0","@opentelemetry/instrumentation-http":"0.20.0","@opentelemetry/instrumentation-ioredis":"0.20.0","@opentelemetry/metrics":"0.20.0","@opentelemetry/node":"0.20.0","@opentelemetry/resources":"0.20.0","@opentelemetry/semantic-conventions":"0.20.0","@opentelemetry/tracing":"0.20.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.5.0","opentelemetry-instrumentation-aws-sdk":"0.5.0","opentelemetry-instrumentation-elasticsearch":"0.5.0","opentelemetry-instrumentation-express":"0.5.0","opentelemetry-instrumentation-kafkajs":"0.5.0","opentelemetry-instrumentation-mongoose":"0.5.0","opentelemetry-instrumentation-neo4j":"0.5.0","opentelemetry-instrumentation-sequelize":"0.5.0","opentelemetry-instrumentation-socket.io":"0.5.0","opentelemetry-instrumentation-typeorm":"0.5.0","opentelemetry-propagation-utils":"0.7.0","opentelemetry-resource-detector-deployment":"0.5.0","opentelemetry-resource-detector-service":"0.5.0","opentelemetry-resource-detector-sync-api":"0.5.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","postinstall":"node scripts/capture-git-hash.js","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f6cfe4b463c53afdeea598a9a9574fd706a0aabb","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.118","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-zJQzEvATZZoOz1wsjn9n+GCdkTXqiG4glHQajomDStu9ZFsY9IFizvV3beCFUwFnz2IvRC4k3uGsa3BLcImxHw==","shasum":"cecc7f4558b18a60413590b5b3ce40d755d9835c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.118.tgz","fileCount":115,"unpackedSize":188554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzwM1CRA9TVsSAnZWagAAHUAP/0kLavJKLy6MgRpS0LP3\nPAsofiTzsHBBUqawZgtfCkK/mdnLa5qh9nSNUqoqfDKqfoLqOmOLmkkcjReL\nJeto9raA5txjYN2wOqkaNd7jxtI9BollQu88s6Ap2NaOqVOAGOheyH95xxr2\nDHTRr3eV7WAQb/p6AU/272pTl0uuL53dqmKde9bJqyPRjDeefSN2VuQp9col\novAymUvmqXt0Tby8D6CyG1BmY/IWAX4hsS5CBdfAYNV7/6HnJqa/0HB3DVcy\n2tOFn83xoynH9uU8MS67kJ6i9b75+mbPeLIa3l4l3KP2v51flgQEL31Lfk1p\nZ+hlecySFsZak2q0ErE2PZ+FzfAZH/wKRYwlmJ0Qdiv8cskNNTYbrjF0wK9t\nlqxcjpsbH9k4ZV12tbNxlrRZi1pQWkzr5I4OWikvgJRI9eFXAJ0b8fhhw+P/\ngdY++2D/QkHnk1vR8ZdEDqmEOSg5/0LE3TABfvEkvgTRTatz7hhTmd9Z95ck\nit4EpjOhoqtfEYbNTMGIMnkyHpJ4u2NqgwSyNaasV6DwLHk35ikZm7Vt1kJa\ngu5DgQST3DwrB3nxinSdU0VJ/kkVaZbuUghNdxFRzLZhuw62cE2zmanQ7/ug\n2QKBeoJ8HBGEDfd+Q+5neInh2bTpiAud/n6O8tUB1h0/17z6EC40Dhjcv1nW\naZT5\r\n=D2Pm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/6idCbLnOxIREQTM0Ur0HWfIQIMKSi66imgUCHMg3cQIhAMFOemyNCHlBR2MjeoZtUos6WTs11rVcPuNt6TAz0KTj"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.118_1624179509005_0.912984182845171"},"_hasShrinkwrap":false},"0.0.0-2021-06-23--08-28":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-23--08-28","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-06-23--08-28","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-23--08-28","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-23--08-28","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.21.0","@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/core":"0.21.0","@opentelemetry/exporter-collector":"0.21.0","@opentelemetry/exporter-collector-proto":"0.21.0","@opentelemetry/exporter-zipkin":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/instrumentation-http":"0.21.0","@opentelemetry/instrumentation-ioredis":"0.21.0","@opentelemetry/metrics":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/resources":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.21.0","opentelemetry-instrumentation-aws-sdk":"0.21.0","opentelemetry-instrumentation-elasticsearch":"0.21.0","opentelemetry-instrumentation-express":"0.21.0","opentelemetry-instrumentation-kafkajs":"0.21.0","opentelemetry-instrumentation-mongoose":"0.21.0","opentelemetry-instrumentation-neo4j":"0.21.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.21.0","opentelemetry-instrumentation-typeorm":"0.21.0","opentelemetry-propagation-utils":"0.21.0","opentelemetry-resource-detector-deployment":"0.21.0","opentelemetry-resource-detector-git":"0.0.0-2021-06-23--08-12","opentelemetry-resource-detector-service":"0.21.0","opentelemetry-resource-detector-sync-api":"0.21.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f5fa541b5e2643604b82306f6074d714640dd8af","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-23--08-28","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-7cMs5wss8gh9+FUJkT2+lIONfjdmw66+2O/+GB2hlVu5XffqapNhw1sZxEtIwI1eSxA9s+pPHdaSk2kgNmTWig==","shasum":"fc2c281559786651ecd09f643a2b38d5c91b65dd","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-23--08-28.tgz","fileCount":114,"unpackedSize":185644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0vDECRA9TVsSAnZWagAAdJ8P/1Udnd/6oaa9JEmsdcc9\nDF8u98Jk9IaecaHYkzRY+zJXcRN3Kp937LMu9A0ppaH3/v3LBc4m2Y+LcMjU\nQR8S5Maxv6i1hMudx/qQsIsb2SNrdlAHIzv7qAsXf9oKHxDXs/doQJbo5SBq\nsctYviKT2i3HnjpuhFfO+bbMZR+7UE/iruRHk8NcLhLfWg0WQUY6GLtwSIh4\n5DDwuYaSYO1Xiip+fjofgZb4DklrhQPuFImAiWMcW1h5iiu/0EREJIvdCfqv\nrJarylhbETWwj/czPa6WtHhJKLCoxTF1iMtVLcE2AyN7QXdfetguCd/Np5nu\nWwPmvjk+o2acnst3ABqso+CPJX0yRbGObWAkTOQwNmc8Xdk0q47P5UzYCO85\nurXPufN9CFonKv02SwaZuzw2T7Xa+EFhWA+2hYSQxe4V5AWzelje9rgqKuu0\nOXuiH1u9oOfInNOnfjN/aGaKZXa7D6+APUlneRpSJtqHruRFeXzvMehX7/+D\nfaeLMJOkCJSAOOksTHCuWU0L2v8dduATNc1NuvfE45rQeQxObGl8yST8mLf/\n8YP707QtzxpRlZQgM1U1TCFoiyo/CLAD29FoOEUvZXo0cbtRmW6GWcYlrgAU\n29ORO/6As/BKlk4fdMK1wOCvFKntrsdMJH/5tdMNkHhJkEO5BM3HlQRknBzM\nhGSs\r\n=pKOc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU01IN0km6A6B/5nFxfYqZeBnyOGxSOm/Sc1dZT4IHIgIgf9kr88VqkRVIHJhz/8IKTNQi7u+Y13RAEO9hUmIvwTc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-23--08-28_1624436932151_0.021496700243848643"},"_hasShrinkwrap":false},"0.0.0-2021-06-23--15-16":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-23--15-16","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-06-23--15-16","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-23--15-16","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-23--15-16","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.21.0","@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/core":"0.21.0","@opentelemetry/exporter-collector":"0.21.0","@opentelemetry/exporter-collector-proto":"0.21.0","@opentelemetry/exporter-zipkin":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/instrumentation-http":"0.21.0","@opentelemetry/instrumentation-ioredis":"0.21.0","@opentelemetry/metrics":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/resources":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.21.0","opentelemetry-instrumentation-aws-sdk":"0.21.0","opentelemetry-instrumentation-elasticsearch":"0.21.0","opentelemetry-instrumentation-express":"0.21.0","opentelemetry-instrumentation-kafkajs":"0.21.0","opentelemetry-instrumentation-mongoose":"0.21.0","opentelemetry-instrumentation-neo4j":"0.21.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.21.0","opentelemetry-instrumentation-typeorm":"0.21.0","opentelemetry-propagation-utils":"0.21.0","opentelemetry-resource-detector-deployment":"0.21.0","opentelemetry-resource-detector-git":"0.0.0-2021-06-23--15-11","opentelemetry-resource-detector-service":"0.21.0","opentelemetry-resource-detector-sync-api":"0.21.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"cc9e1774f9e59c997936fb1cb0cec55be8b42005","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-23--15-16","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-IYPfG6Di/IIzgD7oIJ9Xo56DCJpuOCv2fgfPgIyd5pEvNRxcGp5+0ZSqaOcpn7RSzbzFy5SV/zP8/3IeNCzxCA==","shasum":"dd0036db2d36e77a7f9e7d7aea52d291d7cb9e20","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-23--15-16.tgz","fileCount":114,"unpackedSize":185644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg01BZCRA9TVsSAnZWagAAb80QAKHIe2f2eooY5dP0j5NM\n3AKAbTJfNKKdYkzSnuOAHn4DUoxY9BL0Jd13WMFKc86bltpWDbBH3ByRiIsc\np793Ocr74boLeMmiCqOHEJBchserW0oeve+gQ3UgbdWzDXlWWO/vQPqeRTrN\n3qEsMbcfQyHubuLqJTR/c/eQF6OUYcuceDI9tOcwnkYLnoXfdT/Smq8nx0BK\npcfXxVTeL2732O8ossUMaA/jt0lSyuYltP3KoHlYDwsNrLLBv3N1EdJ57tkn\nsW/OFUw6kd9yjybA0eS6hTCJ9ywf2uYn9fkZlXMLI+9XKiYPL92z4KgSLRMj\nhhpLHr6OtzyW4IVRnndLn51zSvRlhbfvGXJo066evxRXjlzUFKmMKST8jVP+\npIYrgu7QlPN8+0f4Yld7/7MaFhxro5s0+tYffFCx/xBZx5f5mXMoWZ21CAOb\nzaZbUFhbF1L2uFCRl3NvStJTk/A4QD1oIusd131Nk4aWR1S5smN4z0naTS9O\nBdC7lsFWFlqo1jaRsCsYGqy7apxG6dSFqjenM/L4kzXGb8dtRWBL9hzBGBr7\neuAhvAQVETGvSjn2sNkZ/S3p8BWlFTdR+z6q95WLPfvpilPiWsIrX8ABdmYr\nvPxICKtauqrHDqG1Ot/94E/fGSDQDStsoEPkll79AUbRFLA8qjso5NViVahv\n/ReU\r\n=9FQX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiiYvLm9GG8D6xBLyZoeWUOsk1fClaiKv3wMI9/90lFwIgUbiFiu2J4UltBXjBfe6X/IlRWPby2WYDjupbaWjUTcU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-23--15-16_1624461400978_0.5286930304513502"},"_hasShrinkwrap":false},"0.0.0-2021-06-29--15-16":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-06-29--15-16","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.118","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-06-29--15-16","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-06-29--15-16","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.21.0","@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/core":"0.21.0","@opentelemetry/exporter-collector":"0.21.0","@opentelemetry/exporter-collector-proto":"0.21.0","@opentelemetry/exporter-zipkin":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/instrumentation-http":"0.21.0","@opentelemetry/instrumentation-ioredis":"0.21.0","@opentelemetry/metrics":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/resources":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.21.0","opentelemetry-instrumentation-aws-sdk":"0.21.0","opentelemetry-instrumentation-elasticsearch":"0.21.0","opentelemetry-instrumentation-express":"0.21.0","opentelemetry-instrumentation-kafkajs":"0.21.0","opentelemetry-instrumentation-mongoose":"0.21.0","opentelemetry-instrumentation-neo4j":"0.21.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.21.0","opentelemetry-instrumentation-typeorm":"0.21.0","opentelemetry-propagation-utils":"0.21.0","opentelemetry-resource-detector-deployment":"0.21.0","opentelemetry-resource-detector-git":"0.21.0","opentelemetry-resource-detector-service":"0.21.0","opentelemetry-resource-detector-sync-api":"0.21.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"adae2c8e5286b60df238ea271940517f2ff22c7b","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-06-29--15-16","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-yIzMYGSzi8BYpdpgvtj2kv7z+RKoeaN94xIBzoEU8jEDdJm5o3SMhOfufcqkK3XLJ+tjcv1L/t0cJEVIGK9byQ==","shasum":"7667ba8128d21e12d22be17e7a0ad3c24fdb4238","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-06-29--15-16.tgz","fileCount":114,"unpackedSize":185893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2zlsCRA9TVsSAnZWagAA4G4P/RPK/k4BXWtjl9x2nwLo\n641NPJ1RaanxFNs1hQjd5noFXeqWJY0Do46A17Ni0pKLiLQa0KqT8b6Nw555\nxxu4iqyAMg72PMZ5VyQOE44QoTQsxpp5gYnl34QJIzhaxiqDLQ/d/79OdGS6\nc1BWoOpkE8sZh3YYsBlE4e1tvIDnv8V6GN28hGb24mDQTm1RcUjpePKX1acs\nJ3duBRdJxno9NpiuQpTXSeaaRQ/qJpCovFAcpZFyl4v1RTsPsqT2f7DQf5UA\njRcvTJKqDPfjXaN2qvvazv8BJLoSrr9yLVD+taI+U2iTecL59X+7SkWbK6IJ\nNdoqedmjYS73QNqeIAlBx8POE21b6yYZONssdSidHRi+YGXI+fhoKeUVR2Jn\nG7ml2tbcAoWc+e4RY2yVAlrQJfy1rRl7P17BmMjS7jBiR7vbTGQjmHyjAKZz\nNrEkt50PJ1mCmW35CNDf9/6MGu0IsoeVvyPjlgqaQAZQy22nuNfzFjz4ufRc\nRPgdGUyoAd3L4FD/BrgzYOPNi43rhQloo0v8GaXTKMGAAqvr1rgg6Ha8hCWi\naFgINAtAACW5JXzuHniUnF6eCvdT7IclEsmiur6pM1vAIQKRSigHxbbblIPk\nEK40iqGiuf5AFF1jO1dNPaMZ+B6J9kYmoE+M+Ff4XUfCe1+6gfXaSm6V6rex\ncrXx\r\n=72jG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmi7QSSyBWrTQT69CATndGIWWvrjiPj8LwzU8GNAG6wgIhAKQiyxxCPTHD80wWzlqUSoVcg6U1LVbObVLbQ1uWKzvA"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-06-29--15-16_1624979820492_0.22794243245678225"},"_hasShrinkwrap":false},"0.0.119":{"name":"@aspecto/opentelemetry","version":"0.0.119","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.119","@aspecto/opentelemetry-exporter-live":"^0.0.119","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.119","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"0.21.0","@opentelemetry/context-async-hooks":"0.21.0","@opentelemetry/core":"0.21.0","@opentelemetry/exporter-collector":"0.21.0","@opentelemetry/exporter-collector-proto":"0.21.0","@opentelemetry/exporter-zipkin":"0.21.0","@opentelemetry/instrumentation":"0.21.0","@opentelemetry/instrumentation-http":"0.21.0","@opentelemetry/instrumentation-ioredis":"0.21.0","@opentelemetry/metrics":"0.21.0","@opentelemetry/node":"0.21.0","@opentelemetry/resources":"0.21.0","@opentelemetry/semantic-conventions":"0.21.0","@opentelemetry/tracing":"0.21.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.21.0","opentelemetry-instrumentation-aws-sdk":"0.21.0","opentelemetry-instrumentation-elasticsearch":"0.21.0","opentelemetry-instrumentation-express":"0.21.0","opentelemetry-instrumentation-kafkajs":"0.21.0","opentelemetry-instrumentation-mongoose":"0.21.0","opentelemetry-instrumentation-neo4j":"0.21.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.21.0","opentelemetry-instrumentation-typeorm":"0.21.0","opentelemetry-propagation-utils":"0.21.0","opentelemetry-resource-detector-deployment":"0.21.0","opentelemetry-resource-detector-git":"0.21.0","opentelemetry-resource-detector-service":"0.21.0","opentelemetry-resource-detector-sync-api":"0.21.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5d26527b82c3a4547dfbf711b9dae00e638fef19","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.119","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-cpVXrTsJkIKnm5x7+n+kKC7MrzBRpu78tDQhUQQ2aDWfifM1/Mdx+Xr/a86wwatGJFg55NXKi2KEMjEhSumTkA==","shasum":"f2ad7caeef8e3a1bb4cace2b46af3b4468bf2e6e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.119.tgz","fileCount":169,"unpackedSize":378178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4vYXCRA9TVsSAnZWagAA0AcQAJ5wjRLj1sObXjJqcb2L\n580LN92nKyanMmIhqxqhw4t+jAr+jjwBroBAFF8sO7jy5Aiquc8zIwIujHzU\noc26lhastw9IIxhsonHTjGNFfH9hzUbHLneqYrR/FbKXm02t+dxemKV5i5HV\nAzC2trU9BTiaIFpgoVDd1wDr3GwDd6HyFvnbXjYWz49AS+UTsLjlvtCAfKG3\nRpSlx8D4RPK/e2iJf4uvPk81ej45x76cRTpHy3Cz7CEwTSRwHRaaLNxc8FEk\n07P9dlQCmoBC4byRoJSx3bGQt4wwv++hxsDBAMZDdj4gnLYYLIk4IOmQUm3f\n1W2YvMOff4Iv1kbMndQ4HLrL5iO/JcnVMeaA6PPR/EycrcvudLkcY+BluZ3v\nV7FZqHOYYMMyLzd5ndjek6Z7qV1+jn8d37kwFOLpt/bm+x2PSgmPKSvs7HaO\nK/I9E9BORwG0tOinkx5oLVbDKjAlzMUpbJxz+VpRF8cFg2lC+jhyuuRGJOvF\nGMG4lZZUXom7ObxQ8wg1Fn38/SkdUfs9F51hS7H9k0NkIgKwqjU34+8wcqtr\nHSihuhgH82r9Ar1ZDHh7VPVefhGxt1Y+rrsPdhMaTVnGOl8TELnusJ2o/Y96\negL2TbP9j75+A3h8GrmTHNN+YK9xHcn7+OdpCRoTyGnf4yc0cSIMFBomgCGc\n6MUF\r\n=RyCT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATAqghK3di/pY4W5sYsvBq2/61x8F/cRH0X4Ptcj3FMAiEA7LatTCkT+39ZvNb5n7Qp5qLMrtJNlPPBHe++wUTpEWQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.119_1625486870954_0.7144065035776015"},"_hasShrinkwrap":false},"0.0.0-2021-07-05--14-53":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-05--14-53","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-07-05--14-53","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-07-05--14-53","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-07-05--14-53","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"53624cf7e886a73008f28e17b69963aba8ad2eba","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-05--14-53","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-0d4rErW7l/vmso5bWiuc06A0kUx/SkfAeeAYmNPz3bg1JeDzGbbI3iKuaR/mKE3ed3vxUB9ig8yJjjnveOo7QA==","shasum":"80402bc5dca1007bbbcee155f0a6580efe83b471","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-05--14-53.tgz","fileCount":172,"unpackedSize":394466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4xzwCRA9TVsSAnZWagAAmRAP/ibvo/8n6R4cxGH0ay58\nn4lzArqMluKSLINPI07mXpCjHZr0fBtDDPDzdl07ulPT4IYhM5DAlDMa+TO3\np5futlTb24e1iYcSp8Xbo2nGom2UFQmF0iyUlIJIe2pLpi2TI1SS8heBSqpC\nBSo3btMCP6vDmGxB0DzKsciNfek0qnvKCAvQGbdIFIZZqFjLTWpcQ+GhxfKy\nDFHQeQfk7FP3MOztQYuDFeV9N8NXbIbMZV/H5ZoaL5TIsDIEW+YxoGsp5iav\n1oSXxFwItVAbPmB0kCaplN0FFWhfrfmm4ZCTpCQvdVEHBM1qpyqRIQ2kXQBB\n3C/V4BAir4pivYtWqrFSHLHLTaX2As3YPj8Ojhspif4B+ZIYL9LPXXZslVmg\nf8zeOGZ1pXhNGx+Kz/bZNDHSEPif95og4B75mzx/hXonYatVlJhtFzoUiTYd\ntKsDQj0A26pK1zq+zUjdXpPw6mGUcl9TYzFu/oeeymdGoFBn6oIClo2GQCSM\n7nS3vll/8vODDXRri1DEfMDuoaqRi59OQ9XBQjEGsIwdhafMV2gRP7w+TMPf\n4O0nl0HiZE3Aq6k6O5WuDsnIE1wVfZzLsvrirtfIGGSd5/z9T3ER65dGP8fQ\ngo34PuFuMlnK5J/04QhhqnMlYby9lAgLbVEpUFw6WKofhEGGjd5IN6rhuFo3\njd1n\r\n=jIJV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMCsdrOhsvrIe6NCpf7sUg5aCKu8whfhHsiK1BmcUytQIhAI5C0x6LireYIg6pyBSIM3HEcmfQRMcM+1Z0FQJv0WpC"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-05--14-53_1625496815658_0.07120062524325066"},"_hasShrinkwrap":false},"0.0.120":{"name":"@aspecto/opentelemetry","version":"0.0.120","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.120","@aspecto/opentelemetry-exporter-live":"^0.0.120","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.120","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-sequelize":"0.21.1","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ddde3a9d59479a46f41d95d5b5e24d40d73797db","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.120","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-RHcZMw7AVfOZgupJBZlhSJVDZa5iG5MRG7U6gx14bLRDni3rtPK5Yt5h9OAPMEQFpDzTN34rrbiFSNsuffnvpg==","shasum":"36679a771fc4e491c20f32163848375a93081760","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.120.tgz","fileCount":172,"unpackedSize":394723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5B3jCRA9TVsSAnZWagAAT6UP/ilitnMItRpC49g+gIB0\nGc4AStFBPZKXAIjoW2MgSIuVeRV6Jzb/ARswJQ2jd4+FVsTRtcrb56xEoi9s\nx01v8fobGP80Fkz+7pNbznN4gEpM+GaqwWPmyEtrrhOgm6ryIC1z9mnKX2jA\nMldfkJmCPaxi3nMkHevcfRBRjSeOkOOvGsU7L7ssLvlLwvd453YhGQdaEyyy\n6LGKO2grtsphttm0UFzssPqV87lonnB/UUpKrxmUumdgFEDhE9iB8N8nP0Il\nheUeDSc9nVbIEdWnSUbbjg11BFJxjHhXutxa2ZaWK0r9GVCo23/mTQ1BtBan\ngl4y8BXlsi7xv3/gUVJlAHiu132oB4qFWRLqgKutUaTrrAcZz7mKfsungeuB\nW3Z8R8MvTlSnZssJ2MXsTtVAB6OUjT5cE3lP+uLg7xgbmH4vCSyPrL9nFGXD\nSCyuRNsMEPDkm46uzb1MACac35QQ2PyJSbBb15A2S8sdS8ePQG06hZu7ozSQ\nyMt7JRH71I4TgEHb6Mo6l+xZJVOR2L3p17X0rDT3OKv0hkP8OiGw31O/hks6\neQ91D6205BL1iZm9z+rfa4K1I4h82c3KhEI38cDqHYxr3vXW72hmEB8qRKrM\nb91RIvqNi+QtcrtZqpuVMLK9JW1kuh8lQoy49uOREkzplJYz/cqSJsjnjt3J\nedks\r\n=ByZW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiCYV8MOlKnb1nNyNh5vi+Qo/D30zVfZKnDXPwMFxkpAIhAJQCB8Vh9j8YsGIHOITEy+AmbizZ2pamZjKe89li2bNH"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.120_1625562595255_0.12061717147177964"},"_hasShrinkwrap":false,"deprecated":"version 0.0.120 has dependency issues, please use newer versions"},"0.0.121":{"name":"@aspecto/opentelemetry","version":"0.0.121","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.121","@aspecto/opentelemetry-exporter-live":"^0.0.121","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.121","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"143da1456e730d428cf3655f6cbc17d4cb9e9252","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.121","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-mOrfbczW0sl3g6NZil+2g1KvrVdrLcosnP+0UOCM/WJNGvryOWJtvwZYispuAlKqEVUfr7ywdKAdST9FhNHKpA==","shasum":"ebf9a0a844706ca6f5a9c833bdfe4fc9ea792969","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.121.tgz","fileCount":172,"unpackedSize":394902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5C7RCRA9TVsSAnZWagAA61kP/i6W3j/EYfA6YQAD7VQL\nE0lZmedLh75jr0zHnc4zrTzRvESmH6GZn5Zyi7AqPPoQtKjCePGPNGXOuH50\nQY5sk7emOrdyRvPdFo6dRcf2F43QsUvtnVZ0QaOUFQQx8hPAWaXAjLgDTTgj\n60k4LD3ZAX3jkvgjF/XbhXAGSrBZdvT/djzzkhFoH7zYsX/cEalEBzvkxyCv\nTYgbuYXwTOe5ZeahGJw8UNZKvRdyZLog9N3uWpKAsfPMkcJUsnpwJ3aPaNCX\nLIkKvTpHDIv8OIs2MX2cg4uxPwRtONfo4tT7PDbzgghoBzVOYwShyMVmCvjB\nbxipT+gHwy4ZeEK9GZ5PQU4q7vMGNFiTovdcsAE4x5Kq9STPeRLytIMpDMhc\nXw1B6cJa+loJqTOMc//AZvRIBlr0drikDPix6v9Ryu3XQGTfOBIZgzVMSmzk\nCaE+4z01i3ygPLTaTo+QAPjtjCrhZl0i23YdIHYYTfMK8+vkB/vukekMDgXD\nkipG/E1V0NXa9S9amoI3ORCGqptGKFB932nEQ5e8V+/W+GeYcHiZ2hhHVBG/\njSAAZ4LFs0UIXVMECXHa9q74fReu7szTwIAImk5YSwUkQ3eFdpjvfDdtKzTV\nN/QqUT3CGYel+3q0nYnZjUwwgUOPcBcegPe2FX387klNOk0JfSH82+WuYkiF\nQuok\r\n=79fm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOERtnXdmmaYvx0jl5xIGUQxnLbGqGKjU0+SDQKq7pjAiEApUrzGc/jm9xg/BDDwoquA0q5qQZr77nHnLYmdkrO+cs="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.121_1625566928832_0.2222015149323313"},"_hasShrinkwrap":false},"0.0.0-2021-07-07--15-00":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-07--15-00","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-07-07--15-00","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-07-07--15-00","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-07-07--15-00","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"bb598654095a9a0d7a257a274c1fa39825de6847","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-07--15-00","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-o2O5gXkdBJ6x28T9YelE1OO/qvzQ45AX61+BPa2vuGbOgzM/mpjAqF1AyEkdIVBgQAnsRoX3pglAg384tnomTg==","shasum":"840685b58f6e3ca18eb0bef97e36b5e4fb3719a2","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-07--15-00.tgz","fileCount":175,"unpackedSize":402081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5cGvCRA9TVsSAnZWagAA5J0P/3iTBkwK+bNpAYiGNkdV\nNU0PUEDVAx1UMaO4FGG5nT5zZOEzO2ECh398A8+wVtlg9Q9sVdcxE84Di79k\nSZU2wctnjuvxdMchjzxe0kjPU55giRRcgzp32KhG4EyiOnvZ/SsJGzQ8gsJc\nfbukt1X4trYyrKFwW2yMa4esbq6zSjwY2o37KBCPCcDXiWC/TvCiMO8jvc7/\nrTf4ViS0+mWf0yuUqZgufx2riyfbut+nQ7dSHjTPxcfqmaOl8HD9EO+2hWRP\nLKpWAadRTJLUErdk89nxxCf3C3gxjNMtaicdnku77WXKejRb9cUn5HdGiW3A\nKJUTFL8Cy37soQjvoaD9bkRIEnwaO0c/ZV56ddOLPCkECQpuG4gGqrcJ33if\n5TNBfzthihuffpv2x6kRkQpJrMV3UOYN/yUm7RkdkEZ6btoePXQSfH/eWaRK\nRagb2TTZqBV104/x1XB/MCHp+KZDxxqqE5eieuk5qY8PZwtt5rSN3d5f/V+9\nA0joIPlLM6COrGK3vh9F42UamhSJ0CeeVDeK6PRsj5ya7ooscFHCAN6WoHyt\nfDdddrX57J54F1WzfeKU30Iv5BBkD5e1kZwOmywcVC3vOmiXXeNcJgZ3cPUG\nDf8E5CoekX+Y81GA/7znP6BC+I6Wn1P3X5m0+Grdn15Md/Uf5dhptYvtlild\n9qFa\r\n=g7Ql\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBinpXR90++MrUgL91rJftpkvHlsgDcjqAAzPGCNdk0AiAMys+CXQoadw/ga/QvdzqXXJmkuEKUOFu6+elfTI+jsA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-07--15-00_1625670062960_0.6400932942135369"},"_hasShrinkwrap":false},"0.0.122":{"name":"@aspecto/opentelemetry","version":"0.0.122","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"8d7e4784c154b670de9212ba500f6ed67a314478","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.122","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-xppA8sU6GSAzBwAnVBqzVHf1mEOaXzw6BVBIvS8RNbGaxkKiO+PbOnag3ps1KIRRGtLXhb3sWfShK0ZFOu82pQ==","shasum":"c9ec1de0a4ca3d323be8dd546e79f47a02426789","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.122.tgz","fileCount":175,"unpackedSize":402531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5dCgCRA9TVsSAnZWagAArBAQAIq3nX+BiQcdsMpkPGRJ\nwawj96p0RgDu8trQu92b7v790F5V5W6oUqgLbqakznTp+IrReMSvNolVYHAt\nSugltlOyJHNwwr4ccx9vDN3UGg7KhrLDQE6fUTu8mlM89wXXXnSl14DGQpL2\np7OwyTWaOiMMlfrK8hP0VzUheWvzxr8DGyEyx9YQTXxuzk/8SOlEC0jE58gj\nb5LgzMRj+oUZdrRmKz7jXU3QOi/+g1Zc0q6kZ+6JL0HWEKM80/0i2Cbiamsw\nB/r/pSAJahPVh1FdXXCnPl5/bf1ZIW2br+xumlCoJZsV61cIgg9yVSE6hJ4/\nPCaYVxclQFoSUIuaOdSsLOWdoxrdtkUrPt23BEmbY+MbMXPML2UUo1PEH7u6\nyyukePOVX/vDLdh/cW9dzKDN2719YMstGNMFJ8dpK+8ZnaKSDrP45mYk4fis\nW1eLaDf3FDQXXvwouBaeld2O4dn/pE70BqM/QZry9Hd8KNIYjwKaBLTpgvGL\nTMwsKIDe6EHKJ1CvhzOHc8909CcfRx4WB4kSDTFYfOh92+stm44MzBB7HBJJ\nHFwfgrCvtd7xG1yfxyZPFXN5trKGNp073s+5A7zW7soZVGEZnW5uKbAZtKqU\nE8hvItQLvWklawXePFpRhcUA8YoagSQprKZTx8DS6zEUpJBEBSN/QUFa4WGX\nHs/i\r\n=uMJH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJWiJKpbST/6owVJ0VX2X/xivYhxgFPs/lCSpslsge8wIgZLZxbM+JCoZbsDT0emHVbPgd5WTyXd9kCq9QmBQKfhU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.122_1625673887633_0.27615316369564913"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--08-48":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--08-48","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"39df8118192c00663974effe444b85a46262b831","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--08-48","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-ycKMKVmEZYWG8wh0dtVGqBULAyWZfsyxLZybszJDbcx2/zyqYoD5sUui473epk+kui0PfajOHnuvV5i775mwcQ==","shasum":"c579ebe89e08433ec2b5fbe51c28f3f2a095f321","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--08-48.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7VN3CRA9TVsSAnZWagAAQLcQAI9GXdTAYOXs5GYhZndc\n/iomfWE9lhuIbn5KgTfI5XoOdWUID54+eTw4b/MX2Dos8c/bNhX16rwvUC6t\nrRs0mWgs+GS4erodbG9/XuA91Q8b0FBH4mFi/+qz5oPK82mVoZsz9MVbRYPJ\nucRYPdzbvTVsMIfBtP/Sa1iFwjfDDusxrlxxxr2pTVTySUzIBCx+W/xByvNB\nlHyx12wSPAQ+DKaCLzu7qa0ay/e25AMfXnW8RuOuWGiGGMvMH+C6en8ZNngb\niOlJNkjOw8K4iLM8nDiOOPXOY7O9liJAwueuVfnn2yx7zK+p6rtL454eKtd5\nUD07aDS0ek1B7/UEiDcFmOpf5SE9YRxlw4uT1ZUoTFl6T5zzxwP3yDpfDkEe\nMWpSAgoKjV2SNt/prKDF2XlMHwJDa6Z/wRonWjl4UOmApn1ujqNm4H1tBQMN\nt7jj7yI85wZeQSRWPb5KyMrtBhTDELMOGJzLiyn6GOxn8CMAfIpuNAQ0Dns1\n8voS8TmWSo/QEZLeF2KaTVXBywWE1vO1JggWRE0x8yTVY3dqT8hjByjQI74o\neYHTifyqXxqwj9xRQTom5LD9k1tjSDEpKgM0LPUTVzthKCpFDBlsGoDvLhOZ\nosNSe59yON8RnubeWE6HA1vEjrKKzakW3mRoG1ued5/NLh9JDIP1IvlKooSZ\nkaEV\r\n=KPT5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvlJ/3jCMBkjIMinY/R7RrWAiwTxHLdrZB9PaC3Gk3PAiEAtPbj4us8TsO/ldlMmhj41fznrv/myu70hksXVbVYXMM="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--08-48_1626166134596_0.1597132949756921"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--09-16":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--09-16","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"39df8118192c00663974effe444b85a46262b831","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--09-16","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-+Km/CehDpxgc6tShGnHvdZlxsf/UgclT3rMOIYxSHQx+vCn1JjIA//HrIEwhQoDW4X+CGoH4Ekhb8B2FL8Fnjw==","shasum":"cc11664d76c2350dae998a10792582bf686ec1bc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--09-16.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7VoRCRA9TVsSAnZWagAAExAP/3VnASwfMHVCpKycoiZ9\n31+NqMV2GWP9m2AwH9aa1uPh948ucuyR30E9pPiOqA5SoyGgF7R+YS5qOeU3\n+asZVdim+jqgwMDnaKNwaqppi2AxFzpn96NhZXyvBrWiMMM6lELO6sfzSjRt\nYF6GSgYpKT7/fj9ILqI53yiePayG2ws5KyAQRTqIkGKUgw6WJMCKlIVdTSle\nKmDiJYwYKzhOHEdon/eh62lHflyWraqfbti8DUW/gDqbqWIHAc6OYe4j0fy/\n2mLqrzX+rtanEp52DBwIC6fce5DDTSS1cvUEf8NS9WoTsAvoI9e7Gwh/7G8N\nGHMEtRCvXggZGHGflh77lmg7sZcTafTHIu39Y6IiiDjjxj5eAIlD6Kb6gF7g\nGH//2qXycmBmBx7Wgx/tUyXoy4oXNoKnn7mbE3QOYrz31pJK5z5rVjX3YLns\nhr2xJDCMhhCm6LRFO9GIK+dt7jWLMs4od5CxcUrSOComz9U+6e7PUx4zDtov\nGQRpIFyxgnWMvQvB03UOr9c06Gl0dci3gZopAmCHOYC34lERqUsfRIraaFpu\nVWFX1/xucDez1T9CdBzs3GrkiRzyH5txUZFkKvFQFbWOzIVFZLBhneLaSLlv\nApSNaiiFVvd5rP0o4X2Nm12y6E+5FvdJQg2DMVvl2qqMOBokVYLJ88Xu1bP6\nZhXS\r\n=X5JN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEe6vavR6eRg6toZlVpqQVoTydkuL+fMG5RrZYNz3qMgAiB8VC2BMyuKxDDcARCSBRMsEGKD1n7W1ZBl7NG5gjhuNQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--09-16_1626167825033_0.9192942500134398"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--09-47":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--09-47","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"73374d139933a096010bff6d1fb10d9f84a2e3fb","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--09-47","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-FgEOfJ0BgWsoNkY5jFyFNUb8gvP+5ZDJTx/3PqjvpzXo+YuOHnzCzyZ88tpyhsKpaCp+bBOEIkZQPUYypW6yqw==","shasum":"c569c849614cd325a922cc53f1f9b84b9cb12102","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--09-47.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7WFkCRA9TVsSAnZWagAA08IP/0RGT3ykHbeT/0zGgOlL\nEJy+kYb9nXBKzaQbuWZtyNI+Xkw9tU9K5sDMN3kSIW3W0yrqc7Yt1/I2UDTc\nXzWvgU7jHa0WgvHD7J5N+QBgI9b9kWdPLFwnOzi9fexhrVFUlOmTfiH9Tlzm\n6ixHLwhmUxmeYmOBLMUtwcUH10yp/5CufVG8nYSTkg3QhnwnIDCxxcsKdIUC\n+1cpNt2pyWeeGlyfZ7CKf4tsM/cko+uZsqkSsCBDnmg+eaJOMEJdmGq8yhUp\nOltRLurbJOHAwYgipdTdBnFEWjegFE0ktC8cFJA9eV3EhZxbyevru56Nlmg7\ne+3S2BwIC8awmLd4/hFOKNsWXokLL0gDOkwTzfiQgem8th71A4eJzhusDk2b\nKmdegdCQUh3BgK1BUvGsYQ0bFRBWY7c4MuVW0MY4AV7PvIr8VLmBbQU9Flzz\nMvZ0lfacXPy6xYrnh+7czqTY8lsxV3zIiMEGrHe4UKIXL3uP4+P4JptQCnBm\nbvoIo0Bb6LgbnQ4F3BhFiJAN2MMX/8bM4aBQ+Wr7btBBcGT3v88Hd+KktnZA\nvCHqAqI9j22tks5RdIipMGjahZJMYylFGPeI1VplNwVVOo2jNp7kU8DlumJ1\n7LEttRM4CJyzYdKIheYCHWQ/SBYU/5+tR8Z3M4kVYRg+yqqsU102VdeX5OIH\nN7lO\r\n=pY1Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbydYlOm55B6xFm5Ev3RlWFgwOpXM0RbBWbivvanUghAiEA3hcW77Xh1xp2kXPoNoo98fgbj78aYv9mpdsAszZ5C7M="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--09-47_1626169700323_0.7534269265163063"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--09-56":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--09-56","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"82374e6de1e084ccdeb47650bb5654fa8de7fab4","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--09-56","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-gRdynu71Ii9TVt5cDi13G1P4hlsxalG4xRWkSw5NFoFrG+eQ/++cxGCd//IMK6kyO02vBeLG2c3DlnCpa3A9nw==","shasum":"a0b789a1f4ed39859b87f48211ef79cc0fab0d22","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--09-56.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7WNZCRA9TVsSAnZWagAAECcP/1wd0TJYozsdyOh0wt3H\nDjpkyXlIDMuhZ5+j/mi5Y18e/9curw2Q5HZTgz8iKIVVvwwCzFbu4vWELpzk\nnXg3lUSqyfsIOxtfsSMdsqX2ESsZpBix3x9dgMn3sAn/Gc9/U6CZJpKLrCMF\n3P56FZAskRCStScXQexYbBSZFaSLoKanNx766ZTzsCNnX+Qz4m1wg4uHL0Fs\nH50bil+cETH3FJUyy4qsnARfqDgxLx1YrfVdV+lT2TeU5FebluQVbmQZJaMW\nArPyWs1oMBaum4rXt2tuNa7XH/2QHm19zrJhEYMDq0Cs0I7aimw9TOak35nD\nD6XlyFs8urAGl5JFa3Mu4e9axgvRRHIwIs2Mal3rgWRi9Outqoth4LbbShru\nBmJbyUftBKxn5uNL0tWwV6xkRVuF3yf6X4Q807kHSHxXpv+N0OaciAQPXCXC\nkmQ4CdBerbBWyrKMOgOdD/ZVDL/nJ2J/cgb+9VPThXph3Q0c8hDijdJG+xcg\nPsrn38io5aGBPVYwADqMefxWRLGYYJNSIya+XDAUJ0zYGSE3Wg7cOgeqFsDx\nQ8JPQRxya7QLirrKYyP2qTcwZxhszJkYn4FWjOzQ3+LOe2tiCt3RUzO9wSjC\nmwgf49OqykgC0RZKKWclHBeBCJXLKGF7QvKhKrhYV9maV0Lq0owSuO5+2RzP\njY6s\r\n=LPX9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHi7L5IA43DyE3E2NvizQfV/K7CyVT85hUeDdHpjSZawIgMIXG4GYIT4/nUc3mkwnMt5YTvui0XfGtHrgzcO3UK3s="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--09-56_1626170200888_0.06825606039559307"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--10-03":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--10-03","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"9e33fc74c94336e3d9d36e81490204a9a876be9e","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--10-03","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-kqXqn/tFiamavGtQV1AwM7M6j1M4tROzZCE8EqhiSmjpej7iZF2DEAQKBgICCsiDCVMcWmXcBgU0SgtjpX18XA==","shasum":"f4d42311204a74621a8a645bbe3784a8adfa08d1","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--10-03.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7WUiCRA9TVsSAnZWagAAOa8P/0nzMhlBJtGgyikgPd0d\nyejgMVWjLNytjYT1UavrUMbvzSfoBvU07QhJySogIMZNSa8fNlj816yZxoQg\nGd0i51bP3W40HNCP/B7EnntaTivZje5Jr+1GquvlQxF+4kQjcOq3zAy1oC6j\niIh76+4RA+ryNLycSS6Et5kMueCbsYjQIiT+s1/XEuV3FeowK0lht5BYc/Zd\nX/ueqQ5ZXCEzN+W4sJpqdOIYDDfGjj0YfcyeLShVolOJR/zx+pHTgXxd2RGY\niPb8ysWGb2nebAyHTg56hWFQKBExW4ePGgyHL7m2kvI+JOGcupgosCyFh7l+\naxq3ooe/UiioEsB/KwvUCBngpetKkVN+jBE131UpMMZibZYO3yTh6GpSaOkI\nYwmtHq3ObQBlJA6VGXs1vlTVi1Qn2+E5qeQaGjlSn+lUZd9nrrNZlfdYKZ0L\n8DryMQBa6sTl5CCkTZ4amz8lyodHkw/xingVc99gFw9MvL6tbMGVbOUIt+SG\n6ZVLpL9ltUB0h0XhcDgYmKfhEVnWezasO9z28BwrixQiSR+/qfs94YPQxqMB\npJTGZ1oUL52fRfoVzyDKSMEs1cMyi1nvzqYqhFedXJmpfHW8sghNc+ZmpPk2\nGOisFR/Fr/rtSX+2TbDMLk+IvrR/wagVuN3rgPyIvLUJoOdFWJGeRK9I+lbA\nBIu7\r\n=ntEY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEDDT1I+cW5XpNrlL+Ju3OnPRLrvkRgaSo4x2sd52v4AIgDpX6h3CXGcf8RdeDsw+QGW2MbbtHifTENhO1yDlLV0c="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--10-03_1626170657819_0.512570912714708"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--10-35":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--10-35","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"331f103683249b32dc0a988cfcaf09180a4e5acb","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--10-35","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-I/LqY7xloPMlsq4jOmLX06aA+CXdS0zqTU9UzgMPvsVBeUAlMA85yN6xC2dhLvDY8TJT0lRafc40vABHkPZtqg==","shasum":"db31428a8199da482ad0ba86fe4c0abe5f07cfe9","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--10-35.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7Wx4CRA9TVsSAnZWagAABjgP/jhlqCEi4ZdrMWYBQJ4V\nFRfpYE7kCyN2qgXAcKZLeFHGmU45PSogtVEVyw0EW/Z7rqSSuj2aJtkqySfI\n5IzB8VTa+T0yUvZMYnQKhWAeNJmQIsgj41AX1z4K0cHLH31DE2X7RUq53ZVz\n9iS4xZJOpBUDWzQ6Dtv8WEGzodUmJfdLKnX6BLXimmWcL45WsIildFEBX7X2\nlV2Eth7PUuKm5GLA+YZ1Yp6bPMa2N5xMZvSLY+QKovSaw7yZyIvwfuisxIek\nk1s38IXb+PIxQkOETYRArRhLZ4Uy8y7/fq8BQ5wiG3ZQ8/bLyPqDPX0dE1VU\nVenkZ2fa4uEVQi8HZl+2yyRfoJWaU2zRGJlPwmWBvq5ErtNMaX1WkiATMRz9\nBHJIVsGvAFFAqS+qCRdab1+czTB+M2j33NhQ0kWxerAmom6jCLwo2Nuypqkp\nOxzafvFyicSGK62/Us4fLqdwrc03MO2MfSiaWMzbBe9SvyNiQZZn6IbmNKBv\nyei8LdQkdfX1J6b40b5w4rJ88Y53CksQcVaH/9U7CAQ9x6KI7o4WuB3RzYAP\nvTamvZncWt+xkO9u+Kvtyo+mtFvGpjdX2yj3Au7Agig9kODqiCYqXTBWYOmN\nT3tbVnMsxp3sTKJXPPCW7Emr5+DrwmLLx7fDiT58VIYobSHEF9PT1ZgveXb0\nUvYE\r\n=iBRG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMFXUzPu3yF355ISuqeDKHUnMkYaiGNonC4YzCkgaQEAiEA3UmHUxFgoXcIVYTJuCCbSPkPDfc5qeHL1ZDp2jlVEC8="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--10-35_1626172536442_0.7978202459267654"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--10-55":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--10-55","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"dcb2cd47fdbb82ac50b48c3e2cd83b0165272810","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--10-55","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-kxhQQJ2XjBGpwRCZ9NL9fax1RDfDQ/uL/tJ82uzCS8aO4ukNqoJHtsJLWtFkgUjTiZjXDqDjMOLn6184d6LuXA==","shasum":"81395726266a66403245695ee73e647a320ebfe5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--10-55.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7XFPCRA9TVsSAnZWagAAoXUP/2vvK24MZXgDbsy/+xpz\nEbB3Xll2rmvgn8rMa+rNqDtrSdRlYoHvlVuQZiNJJGcUgfTK3N9D9SDsgIP+\naUfM+XyDfI7UyipKBLYz+YNxwf0d4HlJ72UcMh2HW96MseGpAweIDCfMdJkp\npfL40t+Z54VoGqzOSsQb0tlvmFDgrbCkzbcWxObH9FczAzJO0dUzZfRoR56x\n1Or5iKFo27swq9krVyzdkDtNxoRKthIkfp92gdk+FdyFT/0Kx5rv4S7//+by\nwA5HmrpXzwhxLZpibi/F53UapONPvWF76v97LCnUmwVT0Hg9LRtSuYaGf2z1\ngsXNk2Tce29wTE0g5fH82PEhajOGDg2/awpe0rmU9ZT0LgAoRTe/B+07emv5\n4sv7CT25l1OdkDuraJK4M5hmTCXqeAPWZ9EUigswsmiusvbAh5Ll8pIbGNAz\nKVcmV4qPbDthJbtxh2ks3+6reqPb2SrvfgkdiCzy1I5u1GBJU68djJ6kj+ik\nIXqWTDtHNI7YFYPNLvYyiOZks5J8IrzyVbf9rpz5TKx9WNz4JVtBJSeu+F7d\n8BfGx++iLzw1MrcKixVKx9yXzW23IGoomgMICV/Mt1pBbDQhm5SITlfnQ1Nr\n2SIOAoYNGc0ynq+ir3AXXcSq9ZzHd+AL4Y2XxhTbUfE3k+5pLyKud5N3oKoE\nfptI\r\n=WVZm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFE8jZG10oa/5swxTkYlx8irHlO7IdLcYIJznotMz5DHAiA0K4PtMZyDanUM0d0g2pkqErxKjqvUbCvIfnWuTXSFfg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--10-55_1626173775230_0.9433279927808726"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-03":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-03","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d895f483ebe595026fd4203d31037451825232f7","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-03","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-i3Tdt5vUQlGhUOLdJ9W3jn/hEEe1h+0/swfqMHywLjPv6o3JNkgQpOXb1567BZSPo6ctsnQ0BPf7ocAGwrTxJQ==","shasum":"d3ea4e0a297a83732717e789fc2edaf61d439df7","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-03.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7Y8nCRA9TVsSAnZWagAArokP/RDgSleu4l5HrG8fqzOL\nCFTbAXlXFFZP+OwqAGrlh6aVRDcLYUQANkoYCWOtpQwq8MzwRyCS8SG8pPkP\nzXFUMxD6Eux/T67mhJCirqwC/Z3ScZebk6mHv38SdcSKLK5PlOkmiX+daS5S\nxM9AA5mqNKKRx3vK5WjWGJN18T2TmYMZHlbF5TN08pPfZ8YfxlOrl8WENB69\nyjTlJyEFz8+d11TF1r/vWxrnquUHl3uta1rOyh8WKFeH61he7WH0yuthjplv\nDuQuXQBvs768yOVQCuVEtuNiYDCtgM4BLKLOBnsCnRKVj+WhnU1eglVTb6gv\nOd6S6h0YUonCIM5xww3tEYgWodFUlgmBf8uOsWdwqifMlqb+NS72pQfHobhJ\nlNPvfqc8iFAsP+WZ+REtWFf4gmG/5hNhW3SLxwQEy/xXGFY31JGHA/CfAAL5\n1aBbuVSbTa0iSVP4ghrVLiBvs3ZSxxZAB5VdvMLc6i8WHU29VJow80oSmwxo\nLgIpPmqsFtfeskfo/Je66IM51KuCDsbPgj9nYIXIV78uhfYs8IH0/+a9R2JQ\nsHx669hvoe62DI5fI/RrlJhLnuZs2QkR4vSkOo6kdxXIxcBwe/iltvYQ0en5\n+pq2zvK3sBLSL+14ueiQrTQsdE3UGDe3A5OM0HsaeJAUjbeJhUCFFXAf7RN8\np1Hp\r\n=49+C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZcnbn58U03uaq+YBwefo7WoStA/7yBX+E9v7IqgiO1QIhAMWlxn2FUcPsm+6ZyqaEH/gad4qktQW9DEJRD9HRmqiz"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-03_1626181415295_0.5047205633736849"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-07":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-07","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a3ea56cc47d7b5799a49cc1672ea313c99c2eb2a","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-07","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-fg8rpC34lKxbXyuimqM2jqbJ1YCJ8tLvodKu1G+wWLo7pHwcJCTfwdWpoa6deRTra/0miHmM7zulYIHONDD6zw==","shasum":"d22005369c05f593d8b5019e7b5d901d5dee9586","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-07.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZArCRA9TVsSAnZWagAAgcYP/2BjO1U++P3Z0RAvbfOE\nzRHgaXOrlXvei5o6VYRr7rPj3E19vo0VVm46kR5fn6tl/AXDeQsd8ulWHbHM\nLp+9wk9kbf+wxHMVSaTGvCezqD2uNFB7EGu05cOqSPLkXzedepirJbL3AnRS\ndKll4PnPunfDRXlXdr3p28tsjA9vDbXkRreXTl7LXQRT7wgR4NQ3YPwyoSht\ndPwLxvT3jehm/dYScjxcHUjdiEuRn8P56239wgtTnbLh9cHmAYKUyi6U3fyk\n0aCmjxVhEcGJm4qzGprx9ezEQ8/IYKtjBRo7+3dgM9sCvufYcWzE43XGtTBE\nmJE051JoLq0g/zR365Nt8tgAVlrbu6EaUMKFydGIoZ/eMIBDMh8y0fVI0JEV\nPNN57JhVHfiWbwufWkVvRtb974CizMWC5DeWv24hoiVpCrnuYImpnvJoS0o1\nrzVJFMekvlXM35Unpt14JUU7BqKsi7plKzVpfZsXrooXpz1+0QKrRHJWs5mY\nUhCVI75EPv49aHij5QcnF+vjxg8nmCApnsFCQmn1h0Le9WE9KWklT8S6s2dI\nBPp+k28JVL2bGUXjL/l8Tgpc8MUFJBT1lSfLdIfDttzXiYbztmX32tywV2Pi\nuMWpDfNST0yHIYDVRlYxnhHy1cPDShVVd2Ca8kNt6NyhUA1+Zd6L9W3523Ay\nU3/h\r\n=/UZY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxsmumSGjWHe2GhEYrxD+6sVp9TErdUll8dZxg+Ihi4gIhAKuCodoq3TH5ACTirXJkg2TeIlb8eMOEUaLf5m8N0ohk"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-07_1626181675017_0.47520701692626033"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-12":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-12","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a3ea56cc47d7b5799a49cc1672ea313c99c2eb2a","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-12","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-+MgojjubtA6lnyy++3mDIQUaWNqGCPd85mAKJ+aQ0H443Gb3TX/YYfFvFmRSmqOxc98AOwZdKgbDtsx1t+MHPw==","shasum":"db9b5dd9db3118cb326eb0feaf188275dabca5f5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-12.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZFvCRA9TVsSAnZWagAAQtIP+wZcSKnUG4fqgS5hWUpK\nLDJD4KIKdO6LjeU4iMxtE/y/1Zjoid+Yz1orcL9ygi5pD/IOs/EIldRwVtQg\nNB6rorFBil2I6DUt/C55GHtwu/s6989L6NYY8yh1e9oyRhX9iyOt95co7ZzQ\ngxh3F4IdIXmFGaYPeD4brZz/9Ydr8pGdZ7aC41mAtb8yCBalbQwNYnUCdJHv\njp+BdYoRbbRteOk0g+oor6KShLEVW5Z/1iL0eUlhdkzaEKmeMYjh71muQKRj\nxVUHMkKxZMGGCap7IDs5X7UT1CEniH5BsIhz3NV+1jslSi1D7UDTFxBHQhpY\nWtSktP8ezaST3v/6WFBpTM3eX2baJhAfSoFoVs4AXYxFayXBxPKwNXPqwZKo\nVwCy/sx8YQORn2ZvY+STLzXzUs5D3gDbX+FZKxtjPEhVsk8Z2yHivITSxZ3V\nDyCrqhyEgUDGmGmg/HGQQgIizdCwB0Aqx/EtBfx2a5YmpF7h8+TLFcSYf5Jl\nFpHgQfoYkTf3jpYtlllqkEaSuK0NcMlGdW4aYBykx0FmH3oCUPW0M+hSH83j\nElb0nsKDDt0XQ9mh8HYkWVes/E0uY9vsfVn6tnRoZMCNm/S9dLvOl+1N706y\nZ1i+3jJWNDI7K70SHWqby9ZVNJn52efW5TugAOwjDuPDNvCpXZjgkliVdv0n\neQiD\r\n=HfVK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXWrhJNlU6CReqzyX4/BsN+xIs17S2GT66WrB8UbUt6AiB1CrxR+qzJRKcUJMJ7WNE7Ye5ijzj+KgghLgFs9A7LBg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-12_1626181999151_0.07449372228139395"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-17":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-17","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a3ea56cc47d7b5799a49cc1672ea313c99c2eb2a","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-17","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-Ohr6EfPxyuC0nja7BwvDI7y4BfXgeULigTtyuEf9o2h4y24JCBYh/etndg32UjSm2AUCou/uS3Tm7iOH7/PktA==","shasum":"9749994c7eb5b0987b3909b427e582a815f28725","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-17.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZKFCRA9TVsSAnZWagAAo14QAJTfI1MuRaqbfeJNZpBD\nNfSZCH8u3BrD6bAVT87GAvgQFA0jU50BqDucCoXHPXCRkWpHeJXbGEsj2+rw\n487sSTeR8jUSFWdwnBlGW+JWIRUOTwuJxc5eP+VnHFE66+z+dv3Uu6wPjwel\nepKZ7gkdybI/VzYuc+2099WORiu1BgwvoYV/uOLU3S2x6/kJv5ZaT6V6K5bD\n6xsg12RtCZfSpHzxoKDG/8pGVvaw3+2VTGpiuGgjoAwsK2onMlbcbk2VsWvL\nH1bpjd9paYN7s5NC+D7eQhlCRQbWIg/qDcSuAH5i/QBPDk1qBJSh0OBgNTHE\nyWvhyM5z6zKzCRqPbTjvDlrVRCpLGiEABEfNK4QVtOCij08IcrdHFVgc8w2e\nHxHrkVGywOG3/G+TMsb1vdVDQSY1+GjvIwlNZ9sYRDbY0OvZbRj+wFGa3quP\nOOrQu2VxihHo2byXO5Tv804pAx+8mG/vpV6AHaZSnIgXuVg0hJypkAYyjKmf\nIVmAw2Mji1thxCrygSfA3AZ8ckn6AwsicI4FWZml73fcQwKwFUiniq78vMUP\nGDJXkuvxMvArP+1ovAVgzC97SjxUqvqTnWhnCPfnkKQes/EQux3brot97T+A\np4Nx3XBDwIXtuF1FCEK3d2HCqk+4Fs/PQJFJ/Bi+B0Pr/9CbPp30kX62mli3\nvu1s\r\n=qZEW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqqrwAgapFeXJHbtJl74u1yy4B8tLPpRyI3xkkN9oV2wIhAKLgm4e6EIWtnhoHYMYDCtU4vzOGhT0kUKmbu/oTTU3U"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-17_1626182277022_0.46821876606598445"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-21":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-21","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"6a72f93f27f5715e1edbd1deba337b9c915049ed","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-21","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-MpdGKhnngXgr/FRzeq3S6gLeZ6XQdxwUJWiC+3cCDCwovJ/RaphfBac27VZLo4VnPYtkvruv0cUsrJ/G0MOz4g==","shasum":"731843c4947e514dbe3d8928e6921aba75ba62e4","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-21.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZNsCRA9TVsSAnZWagAASqgP/RxaoqRZw2psSaeoNaaZ\n9tGVypRDALvBkLSXu3CTx3/hvls0rvynm8F/78GwkFvi8MvGiWMTntjC6sJM\nA1LY384P8GQBlWwVH3meF039q/W8axCJwudmkKOlBXAMzc9OdkHOwRO8u3iF\nqaGptq6VamcuN9y4RAipDOqWCSRUCl/MT54NJC7O65/t04HfdiVTBtVAg/Jx\n6xl4iQA8NVkrnpmQcico13XZymSbVRC5uQoLcgVAzQKsktQnhCM61O6h2m7+\n4VW1EJInslFZvyE3xG/sU352lRin2LQMSSUhO7Cy0dsGxw4PJAEoON5bJNKM\n4IxGFEoxv9JsjA4O1DZlHc7FFr1DKqsRpb6INVq2dX1n8L435VNZwELW51gU\nlu4k/kUb16Qv59iaQuqe6MC0fRlbMcMHacqljkztkWEmuxDzt1AA+nhz+25L\nvs5qn6z/TJiwOGJCPUNZ8/O0141XM57bGqnDHKnmCNtRkm0UqrZUHges8slZ\nqNjXUzqB3cvY5mG4bX6fcO2QT/8uJ6goQHoz2Z4p08FvMchoNKsIyyHXO7UC\ngRnsY10U1/tXyiIh4WWKx19Wg4u1cFqBojQu9i+uuQogVuyzSM1ZgRr/XFAj\n2tDsgIS9zGl4OMvxnZfldQ2dgblqLP/ZXwCw4+jImBHDOEfa0QN7U16G6yvI\n1E2a\r\n=gyCs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIEiaqwar+5b979uARlDun7eXq+H6DicT1J3DUXe4qQgIhAIIYrIZl7fS8qKDol9BCKvKUeOBr5+koqNZVf45kxRuJ"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-21_1626182508327_0.5331120702555059"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-31":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-31","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"2b8d4a33ddb2ba86ba5da410d153bb0dd44dadf7","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-31","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-HJue6Erk7z1mBci/cuSVJChUq4H12uMTyL0leTzO1imhZfsQU4FofS1fdReZjKP5pcZwmtYjGgBfoY0Eay5wcw==","shasum":"52cb5a9ee4970adfa8980b4ee0819d0189330f79","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-31.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZW1CRA9TVsSAnZWagAAYFkQAJrEWOOMNjxbWpFLePb6\nOueUGGRr7j7+juObwxjodU25FL+jahY0WsJUZjIL2Hj9aSd5HNxPKlLW5IhC\nXCrxSWpHFQr0/UFDZ5D3gXK+0l10XyTeUe0kpSjINYJEoKlvv6hUVcdD4atF\nF5X/Qq9ksOflsFkBYk6YnQyYySIbjvaAz2MFWHeYfVvpmPdA0UdRt+/aZSUb\nSpb6aN6gx0JP2HDdnIiE+LO92lfrkajRxxtwqxhnuO559UPViYfG8q9ouM6p\nEcpx/S5gffaLzW69gfwxRBfpqgZuIHyNiAs8PhDEzGgvoXQKCORTcAHuyCLr\nzt1giulieGqm+G1OZ5pyJyl4vC/v5UDzCiC9kxg0vHBhleCRefEM6+QzDSRQ\nD2liQ7ebFFOLgXmq3pEsmAP2egeiJ8OB/obVSWTIQQ2I5e8ZJJfkXyW8qqXR\n1F+dTTJF+D6eBLelWcsWifS7Dbkipm+2dmx/lJh4BoKINduJ4LX779JwrC2r\nt2JjeNQTlGYWHX/YVE9Xm3eRKXavM4mpDJBUjNKXbVC8LXCbMX/ChUiltcc1\n5RxIKJaT9fp43kN3pskCno9h3XptmcPh367jX40FZRsghMLkYcj4rK6W/Byv\nA+xg+nVaRf8VNJcbUpI2el3jdFIxm27stfTcCQRi1h25rGZLp3x739T351yf\nPZL4\r\n=nLds\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7mnSMVK/yHfKRowVHPhch+skwKeg+XXlGlVf4mkAzaAiBL5S89bLddurkkBkMkaQxW0hhEFoDcUJHxwwrQt2JKog=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-31_1626183092638_0.9885280581970324"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-36":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-36","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e44704f9f8f446024248896b1d2be7f5599c8d7a","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-36","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-tjmLtQjZgXBPnFuwOgalFYerIaFC2lmGKFisI4TReUPGBmdAiAo1xoFjE8/BOLaAlOo4n4T+jUyL6TXDE2hlGA==","shasum":"663105c2d604ecb9ee8dd5abce698c3a8fbec603","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-36.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZbqCRA9TVsSAnZWagAA2/IP/jhI2+Q2568C02TZxClP\nQrIBuYWl0TQeN3+NdLtuZMMvWSjiMmmBb8WGt2II02XJl07+WNeDGn9qPnHL\nbNi+nxN5U1+QyVn6ejhOyt+QgVEDw3fmznCLstUQbdP8kJBVaDduISxw3lh8\nJ3ktRjbD+O5Yyr8UK2Mvrt2tIa2IhWygK/0SpMyg18lqtP1EkiIHjj/d5Mq1\n5h9Q0MncUi2fDHqT2LaTc9mYGgCeftNwpywDw9TcLT9wuwaGpQ21n34IJnGo\nLvh/20M9opNbjSmvDVegqLA8/IGmNi2YcFelj+fKlcjzG5tWCNVYJdhhPlTT\n1scan5CO1sIL4+I4ntrIOrmGSKsyLa3XKFiWBcUrZP3RhNZ7BNMeuYbKb09k\n5A00uEO/l/65iGiqcW/+dhY1p1BHHS33xaSm73b7XGjFJ97w4bPbja2GEA2x\nRK46SSQNtEVnKZIpXnvg4SCcqwC+y6VT9Prw3GFD4ZjHuQ57YnSyge4YmAxE\nawFgjsrLAq4QgilDM0mzllDTGASpJZM1DdnnkSpoejdWTxQEL7LNHw8CnYkz\ncNYSNM2Zawvq5rYtGBq9FRk59J955xEYxcgC1WLYoIChd4RvmYhLHLfd8F4q\n5vkI9/NwHwcsRyETT5nxNwIJ7WcBCRKONsr88Df/2d+FgS8s2YddUPKp3Xrx\ndX6K\r\n=/mPU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/Mji3vLw38B4xmcMURVRkKFYhzMc5Ee/THBuAE0gKeAiAwot+Z3Al727vazSR4EYR09o5zWXlcQoCBwDK8lh73AA=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-36_1626183402444_0.22804180309866928"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-43":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-43","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"be4e26f3937be1884697e2a5c1bfe50711f0e72e","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-43","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-F4k/KAD/cJeSUZb2DkfPF0JFXmlD40o5VDxUYdMttmRHDW5nyz6YSyHb+XJ1E/kjN/TW5G96JBFYepfiIUrUOg==","shasum":"4c101f1ded201cc53197b2f49df7f6955b6ee4e9","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-43.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZiUCRA9TVsSAnZWagAACXoP/i+6YFf6sOkwDSoLRgzm\nksdT9qilARLfKLYexnpparE/oBgZgdWMEmZuYMYyk67nDtWEDXR1P0xoW5de\nR2+rBYlj/Ldm35/hnlemfpgtuqcVHFajibAIyz4AeRT7S9G2tmutBN+eR0EP\nm9/qjS9lDYA/6P1E0LFVUftoZdLw6EHvoKg0oMvGOXp0iEEh6ZASk0BhKj1g\nYao2MXPZzCGQkf4/dLvJU2JFPJnGZaiejEO0Yug36ssPJ0z1u1f9tpfRc/pj\nAIkkonOSac8LosjLc/1N7C2SDH8TnwzzuzRfjv3zoxfpSMtIF6dYrzSGktor\ntiBdAdBamdWEr9pv7NonzKsA+eqFNQYttWCDLiqmBGsGJKt69T0n5NbleWCJ\nXjFYbhTbQos+TR0Ssojq2/AQNr6EREb4+r6TJ0UaFLM1kwmjNzN6OkfVtqmq\nJs+0i/Ojp5aiK3XUBCDYwMkpDQAea96Rqqaxz4ujs5R3qKWWy2bDUJNKWsu9\negNLLoNN4dZym+n5JdivDFDKxmcpTrmlr6shXe13j502PGYOkJsGS8/46uCh\nOKuAm0NeCfQb2ZhbaSdbUDJ+6F0TkYMV/Ca7JpXuVjESEoJz8iBB0Y0hFm1o\nfJYJZwDUwaq5Ykgk/N0nq5zBplmu17IXnH/XWA+U6bSJFneZruPMS7sRaPE1\nKy9+\r\n=FGRn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8/u9z9sV4o8mJCTJIwx11bEL+CPuE0Pa78WCRLo8LJAIhAOjPvlJDmg4u5Za0sVpztozy0dsC8mP5xZyh9wu+ZtFN"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-43_1626183827581_0.20892098606470166"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--13-54":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--13-54","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"6e79a3b05b3eed0f7a07e15c87abaebf0ac7d1d9","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--13-54","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-iM+VrMwJzrnoT0DmTT29miuvlrRycP798Mz7Cjskq6TBN6urwmn4fUf4YP193IAJxvQZukKovo4w9vMiJwyChQ==","shasum":"eff316903bd36b5c409798739d29cde95102dc7d","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--13-54.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7ZsMCRA9TVsSAnZWagAAxJUP/3NfwyWCTtfgd4Z0I5x/\ntIfjtea9eld+VWEQIxPdB36DnKlED8TzRmUZ0Hnn7cjFAtt1X3hAewWui0hb\n4HqCQdMwMrEAkWoaXXbU/7GJvf6XTJ5gcQ2q2qboWgjJA9Ej5dnFEl77Tich\n+g9HMi2IbmGBupB7iWCfDof9qPBOe/LG1SzLXzXtVwqtOKtVFZTel5i4A2mt\n+W4HfsUTeaR5kXH38KrTwcd/p8OUd6ZdNSv7eIF/T9HtV+be1TKNhpbgSmpB\nettLPblo8sWa3pcjDtsI2MG4N2m5f5MzCU5scltTJfMI+W2qwWmh4APMaMJ+\n0uT6e7R1y75Akbn8/UqE93trKwteO9XnGKQVykXHTioIA7cfBGITy4ayRzrM\noGwIG6xBmN+FGtmjjpGV++oq0PnHI/+xsLGn/I71fUxWfFslMw+6iZhM3m0F\nMz8TuD9zsAhS1dFd9zP2ZB3G43OVhUummv8sKkoqrxuvnNb0THvSzsuJ18rR\nAP5XYedoWF/rf9/Od9C7LiXkB0tkRUnTWSZhJKypcp4v5NN2qQBUHcnAIRa5\n9ogyWL1wfHzIpXs4hRnwUyU6D8O6ApO4QeNNNd8NSdukxekaoU5SM8+A+6gA\nS3/cLNXVWFcJ4sqXdnF3RaZ4FCwUfjbvfIN4VtsCEsAOp1XJgAeWXD0h9nOc\nIHsC\r\n=FREc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsCatROF5PGlq5l3+ykE8OkdUCdeahE/2kIQz6LS1hXAiB4rS0vRegMojA1ZDVRJ0ZiaFXXZS47tqLy2AG/mW9+qg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--13-54_1626184459505_0.4453524473365813"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--14-07":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--14-07","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5b0b7552ba031c0bdfb7048fcaee442920288c8e","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--14-07","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-vR6LyJ6rLrgUxm9TrUoRtKRFoTidmvpDB6O0lVNI59gd/sl+bw9RIgA7egyRZ3cETkINT5JVpIerqSA1/oX14w==","shasum":"e0f3d0af5a1c83b9f6a51d8345a46b0f9ac9ee8a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--14-07.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7Z48CRA9TVsSAnZWagAAPCYP/RnzweY36poOeBav+7aI\ns9o4Z6IAkr5MaLBMArwC95MlbP3yXg3jMzm+jwIYx8ctQGSlway7hl/K9+Zz\nxAfCavRg446s1+NXoR3qiDQj0MVflaJgL2ZuqLn9bp7iQC3tVDuSDC1z4dl5\nJBWwyupmnrSzSNA8mOAeErNPbTj1W4xFiRY6ZbofwUslbzoUuVF2hTFG2wIF\ne8niFf6bFlmSJaO1LLJrfGhSCsOwhSY6HAhsXTsg+L5b4J6YVQnWN1C8I67J\nTMHWdSiIDU4QA+rYfh2lXgS+qRDT6QPEkzYb5zSOll+txf3WhgDZp9AS18Wt\ncenKRTyhkw3nl8hfyPDM43nwWLt+Hl54LbfFXLIrIyfdKtYtdJWHGyI96WRm\nlp9uAf29RS3TVOqevm2G461XlwCyBv3+vwXfi8soKiGhhLrz1CVAYi/lQEaL\nsTpdS7mUPql16WzO4ybITx3uzGbSawjCQVju9ez2AT2DbAdWCvKGP2+W245u\nR35keppoS/wTRLOSwee4677mAUvAWXhaCgmohHudRa003ZzeCwbGUgjmi3/X\nN0dvQ27KTxMyVmgnB4QA7CYqmYEiQK0ujgZY6ukyihyZO/JHHwxZ/cZnUBW/\ncSvWlBS6nwTl9MwHvhPFJhV9oh9Bda0ibU7Ds7ZctN0NDGb/4gJh8CAUpKOX\nGbKX\r\n=QSjd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgvcszzl+pwqaZvjxYe+HNAxlF/sY6y+o5gKjiWm8uxQIhAKr7RtMnXrtJhyoSOL43NhhfvqXT2kYPOmEOWlvceTff"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--14-07_1626185276001_0.5086053323156137"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--14-23":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--14-23","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"43db69ff1b253c0ec29f8a2393b585148bd512e8","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--14-23","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-Pv00pqQ22c6MbwHbBgv5eWTdYiSbYBORlKPXaBKhF5VcJvZgBNvpTI2g3uOh4jPQCPPrAKGaMkSwv+9TXslmzQ==","shasum":"a1587f49d3663d920613fa722db135320c7fccb4","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--14-23.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7aHwCRA9TVsSAnZWagAApS0P/2qr42wjae+YfNFiiX0H\n0o6+SoVD2FO/+81gnvyCVqcfQ3heoA2xY/UJZynaXdpZr6DFYak8KdanPhhV\n7n9qqozeZbWfmOPE/CJacZ/M3/uAeGu4SYeGuPqVj2FN0NxeeE+qZbqAvlUB\nUNzahlzcPzTVn23XrFARpfnmgB+I59m8f1Eu4kGfHuG+nULWxfeRGDjvH7LL\n9neFXs7xvU88DM2BmTrvxzhr0KsDKpC2H4kciY5bBnvPJOXJFf8bISNckBL3\ndg4/vL0y2wLwQrT/Xn8kVS90ZSNfkOWvv+j7B5gJB6Zs7zsDYVNgTJ8OHmxv\neGKqZp65E8trbQLl3fTpTdY+nhRSfzGVrp7OocvsewAqJBQXBqIRojlTMKOl\n+dk+MYe5EKSYHnIrHTX/8TMhpIfSvLceA96qxPB+p3Y2qPAqq1mWpSNwKVCR\nqT0MTpByvzCmZzXiyALYjQMXv2m7gdWYAu2UqEnMsuQE88ssLmfqwJFHw8ba\nivD8a9ClCVqb4hE6FYn7VmsPunWJ6G2M39ho7d2F8aO4pUDZfX+mWrbndoUO\n3J0xua24xXAbUtAvAYCm5MOi4CB4ieNPkuHoeR5JSfpWMNPJLE7MqLlOujQG\nQ6EGcCToqUSjzJ8889cgA/3Kf0nvXvxcHfr+kA7IwAp1dHLMU0MkR7SXrxwm\nK3pP\r\n=OhIG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfQqao1WJuJJn23uFHXH9xJGK1xdm5ADDxb+eO6R31WAIhAJJhRevr1yhxcfajANjavJgCiYZCUG0Dn7NVXz9cl30U"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--14-23_1626186224420_0.09582162721198673"},"_hasShrinkwrap":false},"0.0.0-2021-07-13--14-29":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-13--14-29","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"edebf3831e53c6ad260cfe21772df7eeb9804841","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-13--14-29","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-XanGpfpVrTxfe46sD+DNfFLa/p44YkoK5Q+oUb32dz4GZCGC9hAi8Z+0QmyChl6MrArf95Qopeqv4dlxhI2H1g==","shasum":"d87cbe3318e0793deee38ca59e493eb6ec15c7e1","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-13--14-29.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7aNaCRA9TVsSAnZWagAA7Z8QAKQ7l7/jad3BUhQCVK4K\nYbqKf+3obu1429q6+wU77f/8l8iGAatJ4irmBZj3ugfVMC4cNDTBJE53Y2r3\nmjSl3w9GI2M9F4SqA6LmEY6anKa2WcUc1x7XfgZ4yBiA6pz1jvA/joqm84Sq\nH8qVA7ieRjwuQYBfwpWkhJtjZChp9/coxXCL43pSzZlA/S51MRIfdYFD6lbM\nMw3Gnx7mNEkMbouIsw/sBxV+SFr7mneq7xqx3+iJyXlX17HwB8mufoS6A34U\nmYoVJACM+2vJ65CQgT168IGMiwrHUHMiTlrBugciFvrJt+lKRFNH+0+keid0\nwb9+AdBaXCQmg6A0HPcmsQTIggfYcJAtXHEGMBXB5B6f6McDbuNh6kOmIUZI\nwMzLNnHcS3m3qCSvkROldAQ6snB1w2T6BYuDMJxAjQcuVsuQGkmzaZfrKWnG\n9e1qtZuneT1IGVWmN+kCkrspT/50z6Ok5P8+LjnrraEuzei1AKdvcWOuFiNs\ncMWReVMV2+EikLG8T4iNwZVfF7BogOYiJw7QkFR1A+zXDR3hChV1/uCDt+b7\nD+EX5TRys6t380/xmg6oS6DX2vVoO95R6ayaPKTVGaJtITCo9PiK3mf3bEb8\nYU9wO9NR3ZRHcnrBYzA2QE2N6n462Gaem3VLj+gH2NM6MBJLLXma1zQWfTU7\nXidW\r\n=AIjo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtwB7wEct3tTXcBmJjir48f7Kb7EaFSb6Hm5Z24Nac0AiEAgUuIH24JAFVcjYecDz27qrmQ7B5ETqMtXPKmyaCE8Tc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-13--14-29_1626186586367_0.19210751609870425"},"_hasShrinkwrap":false},"0.0.0-2021-07-14--11-03":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-07-14--11-03","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.122","@aspecto/opentelemetry-exporter-live":"^0.0.122","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.122","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"375289784d81f693516a0718b2d39f2b0ad6d666","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client:\n| Option | Type | Description |\n|---|---|---|\n|env|string|set environment name manually instead of using `env` environment variable|\n|aspectoAuth|UUID|set aspecto token from code instead of using `aspecto.json`|\n|packageName|string|set packageName manually instead of reading it from `package.json`|\n|packageVersion|string|set packageVersion manually instead of reading it from `package.json`|\n|local|boolean|when set to true, enable [live flows](#live-flows)|\n|ci|boolean|set to `ture` to indicate running the service from CI environment for testing |\n|logger|logger interface|logger to be used in this tracing library. common use for debugging `logger: console`|\n|customZipkinEndpoint|URL|Send all traces to additional Zipkin server for debug|\n|samplingRatio|number|How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all.\n|exportBatchSize|number|How spans to batch in a single update to the collector. default is 100\n|exportBatchTimeout|number|Maximum time in ms for batching spans before sending to collector. default is 1000 (1s)\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-07-14--11-03","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-39q/LiA7OHbx9eAHPUEvvhN08H5Ud3KduC6p3cSFhLL/8N5qIbVZiBGBWG/UNzKD+CSZWmUf4x83iPVfgZDK5w==","shasum":"8cfe7a6e9826c8a42abe1b3fbfc94f4f269a8a1e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-07-14--11-03.tgz","fileCount":175,"unpackedSize":403503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7sSjCRA9TVsSAnZWagAANHMP/jq0fffZJsq5k2Il3KRY\nEWY9fC8o6ss72g+1+GiO7TyFhbG2/TE/uk+8wtyhDV6QJRfRn+ZYBheRvK+i\nWLya7iVs3vHBiDClHLtILlNXHcYjGH0SY5BOwpQBd0/x83bdwfXEeCBGn/AI\nxmi0GznIndhyU/U9Z3B9v7yxayeDEoto0pcmEV+CqVlqlOuOEfwznTYbmtHq\nFzD2MzfuLVqkJkshIemVTnOYwNriZSUnDs3NZ0hGt5NGZUwl/A3AouBA5KYZ\nDAJi2SvVVetpkrjhaP2EuGZrFvx37OlgotTvkHh7HkLjJKOao8zwYUoeYdwx\nvJsB94qMSA31fDFGPLv2stpwK6uGlj14pVhNRWBVQptEckIWVmjbAS4YA8rj\nXe+ANbgy61MDKU87FbB5qzi0Dw+LBJyhDQb6Yec67YyY4TvIKDIP4tH2Z4vH\nozv7a2Hjjkgns65LkgQ2c82rEwMU9GtWo6ywu4WMq4PMPJIKrjh0ldegLn91\nGkqjMQVBUGZL7aydiGJwLI3Qe5qlpghi1vkJu4IdZICvGmTxJQpOmG5g/akT\ntBDXAtxZzF/P7ERFwcttNfn+0lFZDoOW9ZhyQrz9fT1XA274FeIIyx20M/Pw\nJ0DdZYAAanvlwWORdBG1l34nkIAAOTZ2Qt99rzpfkwxaUu9ZFjNJQPf5g4LK\n00vn\r\n=WtPP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8l3pSHgrTmGGOnNuOU/lgxZscYYqON5n0vck5SkLB5gIhAIhGWyqpj9+pLA8UxqKbAiQJCiltkuldoeVw6yWxu6/Q"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-07-14--11-03_1626260643508_0.8708606032855624"},"_hasShrinkwrap":false},"0.0.123":{"name":"@aspecto/opentelemetry","version":"0.0.123","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.123","@aspecto/opentelemetry-exporter-live":"^0.0.123","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.123","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.1","@opentelemetry/context-async-hooks":"0.23.0","@opentelemetry/core":"0.23.0","@opentelemetry/exporter-collector":"0.23.0","@opentelemetry/exporter-collector-proto":"0.23.0","@opentelemetry/exporter-zipkin":"0.23.0","@opentelemetry/instrumentation":"0.23.0","@opentelemetry/instrumentation-aws-lambda":"^0.23.0","@opentelemetry/instrumentation-http":"0.23.0","@opentelemetry/instrumentation-ioredis":"0.23.0","@opentelemetry/instrumentation-redis":"0.23.0","@opentelemetry/metrics":"0.23.0","@opentelemetry/node":"0.23.0","@opentelemetry/resources":"0.23.0","@opentelemetry/semantic-conventions":"0.23.0","@opentelemetry/tracing":"0.23.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.23.0","opentelemetry-instrumentation-aws-sdk":"0.23.0","opentelemetry-instrumentation-elasticsearch":"0.23.0","opentelemetry-instrumentation-express":"0.23.0","opentelemetry-instrumentation-kafkajs":"0.23.0","opentelemetry-instrumentation-mongoose":"0.23.0","opentelemetry-instrumentation-neo4j":"0.23.0","opentelemetry-instrumentation-node-cache":"^0.23.0","opentelemetry-instrumentation-sequelize":"0.23.0","opentelemetry-instrumentation-socket.io":"0.23.0","opentelemetry-instrumentation-typeorm":"0.23.0","opentelemetry-propagation-utils":"0.23.0","opentelemetry-resource-detector-deployment":"0.23.0","opentelemetry-resource-detector-git":"0.23.0","opentelemetry-resource-detector-service":"0.23.0","opentelemetry-resource-detector-sync-api":"0.23.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ca21bb5a7edf44a611bde1aed1308f57a8d59901","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.123","_nodeVersion":"14.17.1","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","dist":{"integrity":"sha512-XB/SnU8FtA92RFpzMCC3IYkSgnCVheM4GE/1tKQoOx00q3+iIRhZrPXEmcUEjYsfzpe432OFWCYh36p0DK4FYQ==","shasum":"59bf4f394c2ad0dd8c9370667a15b63155fe6611","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.123.tgz","fileCount":175,"unpackedSize":404036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7sZZCRA9TVsSAnZWagAA6Z8P/27DGFomV3zw6RE2+FEe\n+eZzZUnKcU3NwYG6GK7jQ8e6rYiLnK1CfnE8vZqlM8efgVGhRaBJXZhostXl\nTzdHmupo9pVd3B2puOfKdBBOLWNOhkxZLA1ciJg03BCDGjqcpWlOz4dWOyy1\nOhDR+o//+PnpUGJF0xeSZuSPWtxo8PFYyFBrIzGrL46Q/YyBpgU68y+XVs28\nBOdzPbrJwFRRiqgFyopfPs3hP5/JG71KIBvOKYtre6IRMDImvQK3peALBqRu\nVEEaj5rH0Se8tcB9qb9j3jSFCartBrQQLdFtTjJUjdovZZl2lUutu5vY2SAw\nO9BXw4iM9JuhTnWoBWlGAVABTsB6T4FhArp2AEMZScai8JF1LWSmLLxSzdK2\n28tvjZqWjnPkNY/L3EV+So/CSOPzx54wf5JaGzXPH+ahiLs7tY0xvVoSKJT9\nc/1DyIWkFHeipQSM4Byy1ngOAmYdBwnH+XbmBGWrSGt+bSG8QcIS0C/OTZLB\n7XF9aUGvjwsiBWLrxXBTQjLVTHnlmCVV+bcGT1PpLLMr8Pc3Regf/deep/KP\ndROFJ6Y/vO6cNT6ZQWUn3W4aSm1NPvkmloT6iTvuoAr5/RpGwbxy/YA1nEba\nD2d9zUe7KJ4myXESKlbEgyK824K2/Yy/EUAuNJgkJZYsY6Q3VTtX6erqrTES\ngLpe\r\n=yrVZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbXwm4H7LVZZ29gZyLfYztSGh9faFTzuVtA9wHyUfDQAiEA9VHXvbfVKH5sgG0QymE3e/kKeN73uWD+88NoYgM4emI="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"yanivd","email":"yaniv@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"habmic","email":"michael@topsight.io"},{"name":"nirsky","email":"nir.hadassi@gmail.com"},{"name":"mzahor","email":"marian.zagoruiko@gmail.com"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.123_1626261080431_0.07503328536307685"},"_hasShrinkwrap":false},"0.0.0-2021-08-01--13-11":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-08-01--13-11","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.123","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-08-01--13-11","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-08-01--13-11","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.24.0","@opentelemetry/core":"0.24.0","@opentelemetry/exporter-collector":"0.24.0","@opentelemetry/exporter-collector-proto":"0.24.0","@opentelemetry/exporter-zipkin":"0.24.0","@opentelemetry/instrumentation":"0.24.0","@opentelemetry/instrumentation-aws-lambda":"^0.24.0","@opentelemetry/instrumentation-http":"0.24.0","@opentelemetry/instrumentation-ioredis":"0.24.0","@opentelemetry/instrumentation-redis":"0.24.0","@opentelemetry/metrics":"0.24.0","@opentelemetry/node":"0.24.0","@opentelemetry/resources":"0.24.0","@opentelemetry/semantic-conventions":"0.24.0","@opentelemetry/tracing":"0.24.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-aws-sdk":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-elasticsearch":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-express":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-kafkajs":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-mongoose":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-neo4j":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-node-cache":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-sequelize":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-socket.io":"0.0.0-2021-08-01--12-54","opentelemetry-instrumentation-typeorm":"0.0.0-2021-08-01--12-54","opentelemetry-propagation-utils":"0.0.0-2021-08-01--12-54","opentelemetry-resource-detector-deployment":"0.0.0-2021-08-01--12-54","opentelemetry-resource-detector-git":"0.0.0-2021-08-01--12-54","opentelemetry-resource-detector-service":"0.0.0-2021-08-01--12-54","opentelemetry-resource-detector-sync-api":"0.0.0-2021-08-01--12-54","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"a3558a2aa1b8be448ed7d936752c0b889b75424d","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client via environment variable or `aspecto.json` config file:\n| Option Name | Environment Variable | Type | Description |\n| --- | --- | --- | --- |\n| env | NODE_ENV | string | set environment name manually instead of using `env` environment variable |\n| aspectoAuth | ASPECTO_AUTH | UUID | set aspecto token from code instead of using `aspecto.json` |\n| packageName | ASPECTO_PACKAGE_NAME | string | set packageName manually instead of reading it from `package.json`|\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | when set to true, enable [live flows](#live-flows) |\n| ci | ASPECTO_IS_CI | boolean | set to `ture` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | logger to be used in this tracing library. common use for debugging `logger: console` |\n| customZipkinEndpoint | - | URL | Send all traces to additional Zipkin server for debug |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | How many spans to batch in a single update to the collector. default is 100 |\n| exportBatchTimeout | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | Maximum time in ms for batching spans before sending to collector. default is 1000 (1s) |\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](Configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-08-01--13-11","_nodeVersion":"14.17.3","_npmVersion":"lerna/3.22.1/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-isGwf0Ln6IuzEE0hL4WOsxgtjFqFBmjfVZPOK0rV6JKi/ufOeiMploe3RoGrma/1/fkkGc8DtrlbV2PZ4WlGuQ==","shasum":"e07431ce4a3d9475745b0ddc1dad999eb02897ba","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-08-01--13-11.tgz","fileCount":179,"unpackedSize":409217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBp2PCRA9TVsSAnZWagAAdVwP/jjc2f/I7JvpwgJ5DEkd\nnM72FrfDlZjNDy4NMrxczkw29/Drdniut2PJMmYwLkZKPbOIBFrobkrMaaYW\nhAnFK82HibRD5KD+sM8TxcUcMHDS/dy11P6nd3KF9W/206K5hbBuE3TzuOIO\nWhHprXFiwCaOS3aG3huTW/KN1/xgqbH7Ukg1kCWRphoPEVGbcwJa6G3dxn/X\nPlDf+Kbp54GptGa37tyALoG85mggHYP9BW3+y47N7VoD0u/9DLtOHa5x/mbq\n/gOs34O2YgkpJ6aiSVYiqZduheWKFSH6Bp/mcwQJ+cFJm/On8TtHN4ctwlST\npRoi3pnl+nSD3NRA1AlgkF2m213TvJiG9Eg3CXiu3fI8SPu2UtOklwtkPG0K\nWQg7LaCzDA8yD4FbGH63/VyFuHl4gLpjtFvkEXRlx7656+09p1T/1504WpW1\nUb8LlRHTwptt1aVAdc0sg2wZF8bPdblQtxN5Q9pgEl5anxMVmz2vDmMeTTey\nXRojkyn86y3m8lRcfBiKx2VhwrPwD/RUq1ZbrwT1P6P2u4QC8nzYcaI5TA3L\n46qR/gOW+dLtFPqQ6Gnlh1zCYe2wY7eFMMPh8I3gxOPgUH3sj8CRJKbGdfvD\n7Xlny3J1y4FF1j3SZOdtCJgJc8/09XsgZaCddmcdVR70iAQFLd25sueDd/BI\nxZgd\r\n=rlqN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVjqUJ++DAxlB1p8KfWiXlf4b9UhS801q0YTR06Vf0eAiB4QVJ/zBKrAmKOMuWtlkk0tbMh8F47+pVYHqhgMNHQ2w=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-08-01--13-11_1627823502861_0.004951676551415263"},"_hasShrinkwrap":false},"0.0.124":{"name":"@aspecto/opentelemetry","version":"0.0.124","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.124","@aspecto/opentelemetry-exporter-live":"^0.0.124","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.124","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.24.0","@opentelemetry/core":"0.24.0","@opentelemetry/exporter-collector":"0.24.0","@opentelemetry/exporter-collector-proto":"0.24.0","@opentelemetry/exporter-zipkin":"0.24.0","@opentelemetry/instrumentation":"0.24.0","@opentelemetry/instrumentation-aws-lambda":"^0.24.0","@opentelemetry/instrumentation-http":"0.24.0","@opentelemetry/instrumentation-ioredis":"0.24.0","@opentelemetry/instrumentation-redis":"0.24.0","@opentelemetry/metrics":"0.24.0","@opentelemetry/node":"0.24.0","@opentelemetry/resources":"0.24.0","@opentelemetry/semantic-conventions":"0.24.0","@opentelemetry/tracing":"0.24.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.24.0","opentelemetry-instrumentation-aws-sdk":"0.24.0","opentelemetry-instrumentation-elasticsearch":"0.24.0","opentelemetry-instrumentation-express":"0.24.0","opentelemetry-instrumentation-kafkajs":"0.24.0","opentelemetry-instrumentation-mongoose":"0.24.0","opentelemetry-instrumentation-neo4j":"0.24.0","opentelemetry-instrumentation-node-cache":"0.24.0","opentelemetry-instrumentation-sequelize":"0.24.0","opentelemetry-instrumentation-socket.io":"0.24.0","opentelemetry-instrumentation-typeorm":"0.24.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.24.0","opentelemetry-resource-detector-git":"0.24.0","opentelemetry-resource-detector-service":"0.24.0","opentelemetry-resource-detector-sync-api":"0.24.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"46927791a75e8ad56fc7b322c34a044bb720edfa","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.124","_nodeVersion":"14.17.3","_npmVersion":"lerna/3.22.1/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-Cwr+7raZFMehYs8Y1VcUjUBPXp4Y1zf8Z1QFsre8BPBvfbv6xk3DnDccUKf/sxt8BxY4JKwpJASZbkxKe4DUCg==","shasum":"8a2086848cc69df48f741be07d00b0526c7405d2","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.124.tgz","fileCount":179,"unpackedSize":409224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBrCLCRA9TVsSAnZWagAAP1YQAIBHC4yJD9TKIRo+wyuH\n7JfvynPJHqFXWVH6YAPs+UYep+PNKyUYz66jKES383cVyGyEXdR9cUrA611n\n2QeBZflurSzgIwEVqQQYIYV/Z8nWzpiK7TRZpecHJSaIaolWMxVHPiBZgAxx\nfv2+H8jWahsXawEKlxEzBAltREofRYKFciKRmGzDa85bZzG5Ruk+04PBxAxo\nqsAgeB2dIvoOg4i58pm6sDKdc/uY3tKujHj3WC9nEKRfrLVOr47cTcu21/k+\nsMnPYEy9RJsC17e7N/0aRy5o/KiAUuYnmsyfeglASLKPvzd2ppx4kh37jgWx\nI7V0N4Jz+sp9ZO9E5eZAvG1LHjFGr9s8znDaATlrdIykq9aOhSyLPqNCtAAi\nPpukGksBHr4ruOMtC1pemhf5OD3uIbaiqwHC/0LLYMmkWA2u2MYUsfUwbHq8\nSOFOIXlF+plF4SBLMxEUUfRkbu7OOTJFZgbrNAN/ujXF7cKMtRWYMk441yPN\npXzf8AiHR5bYHZbUpa8X89J9WmTyoLTe/5SqPpJ5bEhutESaUlqTwzWAB7YW\ndLzvY73IxcPkaXp3rr+VryRx9UQzmq9wJFAJTs9jmmCSXMP7+KFCidCWIPFE\nXV8CVtKiDpWZ3MjGBXtglrNHuyIutQ+YXmlrjYaDEI9cbdkVbd2m1y5ysR6K\nmMdK\r\n=83xK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6LbyBGy/aU0nv3Ex2wdTAtD8MU3CtOAqcTfLFeKIS+AIgbYNVkwmfCtubP5nrsGwV/F1gjZkxWs3tw4c+Ou3J6zM="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.124_1627828363255_0.3426210280215516"},"_hasShrinkwrap":false},"0.0.0-2021-09-19--10-55":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-09-19--10-55","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-09-19--10-55","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-09-19--10-55","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-09-19--10-55","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"^0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-aws-sdk":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-elasticsearch":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-express":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-kafkajs":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-mongoose":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-neo4j":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-node-cache":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-sequelize":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-socket.io":"0.0.0-2021-09-19--10-26","opentelemetry-instrumentation-typeorm":"0.0.0-2021-09-19--10-26","opentelemetry-propagation-utils":"0.0.0-2021-09-19--10-26","opentelemetry-resource-detector-deployment":"0.0.0-2021-09-19--10-26","opentelemetry-resource-detector-git":"0.0.0-2021-09-19--10-26","opentelemetry-resource-detector-service":"0.0.0-2021-09-19--10-26","opentelemetry-resource-detector-sync-api":"0.0.0-2021-09-19--10-26","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e42bb0a786b6046be87bb339375686fa6bf93ac5","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client via environment variable or `aspecto.json` config file:\n| Option Name | Environment Variable | Type | Description |\n| --- | --- | --- | --- |\n| env | NODE_ENV | string | set environment name manually instead of using `env` environment variable |\n| aspectoAuth | ASPECTO_AUTH | UUID | set aspecto token from code instead of using `aspecto.json` |\n| packageName | ASPECTO_PACKAGE_NAME | string | set packageName manually instead of reading it from `package.json`|\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | when set to true, enable [live flows](#live-flows) |\n| ci | ASPECTO_IS_CI | boolean | set to `ture` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | logger to be used in this tracing library. common use for debugging `logger: console` |\n| customZipkinEndpoint | - | URL | Send all traces to additional Zipkin server for debug |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | Should instrumentation collect payloads of operations. default is `true` |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | How many spans to batch in a single update to the collector. default is 100 |\n| exportBatchTimeout | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | Maximum time in ms for batching spans before sending to collector. default is 1000 (1s) |\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-09-19--10-55","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-uXPhnTqwm+uMux0DA53tnecSwp5DtH4wQJY7fR72q1aOV9LkbxCFOfBe9IWqtzQ4sdoy1MYsyRa5zmQkhNqzKg==","shasum":"7c4c8622d1ff87b975988b9b6481cbd5d62680de","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-09-19--10-55.tgz","fileCount":179,"unpackedSize":413378,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDICtrJXZ9XYblLn/65B3q0Y8BYtEmSfxV0YncEkUy0HQIgTQkotxoDzaha2bteoBwUorIKcrBcvNbx8TOoHqt8tGQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-09-19--10-55_1632048949965_0.060911663764269264"},"_hasShrinkwrap":false},"0.0.125":{"name":"@aspecto/opentelemetry","version":"0.0.125","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.125","@aspecto/opentelemetry-exporter-live":"^0.0.125","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.125","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"fbb33a49e7eac5d031c29a20fb4e26f8274d3060","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.125","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-Wn32nUQZItWczME0UI9ClD3zg8V0KTR9Xb1Y3FemMTzEzVj1z79fBorcPU2mN2wYpm3WVCXDW1lOVfrHwfPdvg==","shasum":"c77c1daef3a1897ba976ad9d0f28333151b28349","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.125.tgz","fileCount":179,"unpackedSize":413609,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/E0Ox90/EaqYu1X7z/8C8P2YdqpGo7x4P/EW9/G8vzwIhALJ0+AmfgmSe7FYg2SI39wn6+ZICO0hcYFD7f4FcYoCD"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.125_1632060987857_0.5753874838026241"},"_hasShrinkwrap":false},"0.0.0-2021-09-23--11-14":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-09-23--11-14","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.125","@aspecto/opentelemetry-exporter-live":"^0.0.125","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.125","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e7fc62d202c392017c21d78c1391e1fa81629b99","engines":{"node":">=8 <15"},"readme":"# Aspecto\n\nYour API is critical for your success and we want to help you protect it.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Flows](#live-flows)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with content `{\"token\" : \"-- token goes here --\"}`. You can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n```\n\n## Configuration\n\nYou can pass the following configuration to the aspecto client via environment variable or `aspecto.json` config file:\n| Option Name | Environment Variable | Type | Description |\n| --- | --- | --- | --- |\n| env | NODE_ENV | string | set environment name manually instead of using `env` environment variable |\n| aspectoAuth | ASPECTO_AUTH | UUID | set aspecto token from code instead of using `aspecto.json` |\n| packageName | ASPECTO_PACKAGE_NAME | string | set packageName manually instead of reading it from `package.json`|\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | when set to true, enable [live flows](#live-flows) |\n| ci | ASPECTO_IS_CI | boolean | set to `ture` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | logger to be used in this tracing library. common use for debugging `logger: console` |\n| customZipkinEndpoint | - | URL | Send all traces to additional Zipkin server for debug |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | How many of the traces starting in this service should be sampled. set number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | Should instrumentation collect payloads of operations. default is `true` |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | How many spans to batch in a single update to the collector. default is 100 |\n| exportBatchTimeout | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | Maximum time in ms for batching spans before sending to collector. default is 1000 (1s) |\n\n\n## Live Flows\n\nLive Flows captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture flows from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-09-23--11-14","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-FrXWMGLM+VtcdAXlUmzozwc4gRZeI+rLYfvrHXrouqh5FcbcCKMp53GR+3BZk0L1cGtnj1fGZdpY8wRUqyM4Mw==","shasum":"2277bd92a97e67ced68f1b77aca84b960f46ac02","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-09-23--11-14.tgz","fileCount":179,"unpackedSize":413718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSc6k9B7fXGZl9QmbS1aGiNjQ9UB1ahMH4HAMgdy9QNgIgJcLwLeLx7IC8hPnTaO1eP+D6TbTkXw/4TpGx8rxrE3s="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-09-23--11-14_1632395667564_0.4328037764904811"},"_hasShrinkwrap":false},"0.0.126":{"name":"@aspecto/opentelemetry","version":"0.0.126","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.126","@aspecto/opentelemetry-exporter-live":"^0.0.126","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.126","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"2b21d420c448673f3fdfe3710e4618c7d8ceffc4","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.126","_nodeVersion":"14.17.6","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-JBSZtt/Z/ILAAtoajzmJwFXAsKtjfC6r0PBhnNQitNRePQSdK1YFAOgVpUG9Yxw3sbQgtFIfThc9BD0VrSopOg==","shasum":"b0ea748f579c75e4885a02ab0e5193d4be4b7b41","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.126.tgz","fileCount":179,"unpackedSize":413831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkk/JQ1X8kHCSJBYlcUzsKWqhrmXoo9ShCihOXV7BDrwIhAMoTnreV5JK50aQs1LVlBDC6Hlyv4wnSjpKhbasBwW5B"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.126_1632407382189_0.010788206516384014"},"_hasShrinkwrap":false},"0.0.127":{"name":"@aspecto/opentelemetry","version":"0.0.127","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.127","@aspecto/opentelemetry-exporter-live":"^0.0.127","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.127","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"c5bd90f6075e1621fb4778f1335aebfcf80281e9","engines":{"node":">=8 <15"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.127","_nodeVersion":"14.18.0","_npmVersion":"lerna/3.22.1/node@v14.18.0+x64 (linux)","dist":{"integrity":"sha512-wBHfIqVtt5aJDw5gJrWeT30X9R29nzm6WcxMypSqIfED0ymbYpwsK/k0xafw9fXT2djjkg4Ti1QRS4Lyta5Pyg==","shasum":"b59e3750de9f649d029780aab58d432ae572538e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.127.tgz","fileCount":179,"unpackedSize":415102,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfIsna5OWJtlqkmFR6AAHcxVh3amV/xgQ7URWg4Zv2UQIhAJbThZP7wW9babsuve2lYjkOVOvDNuliAckhln8vwM+Z"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.127_1633852872024_0.4561426475480195"},"_hasShrinkwrap":false},"0.0.0-2021-10-26--10-58":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-10-26--10-58","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.127","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-10-26--10-58","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.127","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"140e16fa1bbe63d3638ec760114b081df3c064ed","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-10-26--10-58","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-PCubsnCYcDL/Y8LlsL09+i/KR314v74OZv20aXlBDpWsb/c2hyl3iGeutHmxjo8fKQoYVSEGbA10X/NyIoQVlA==","shasum":"3026d1b6d18169d638cefca7eace43071a3891af","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-10-26--10-58.tgz","fileCount":179,"unpackedSize":417623,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4Vs3wAcgpka2AnPP/EfH8c4fAG8ayt7NLMYD0o0c2GAiBiephXpHkZqWQKZWyrrB0koLALbTRzz6TBHstt/DzF4A=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-10-26--10-58_1635245965533_0.040411532695348695"},"_hasShrinkwrap":false},"0.0.128":{"name":"@aspecto/opentelemetry","version":"0.0.128","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.128","@aspecto/opentelemetry-exporter-live":"^0.0.128","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.128","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.2","@opentelemetry/context-async-hooks":"0.25.0","@opentelemetry/core":"0.25.0","@opentelemetry/exporter-collector":"0.25.0","@opentelemetry/exporter-collector-proto":"0.25.0","@opentelemetry/exporter-zipkin":"0.25.0","@opentelemetry/instrumentation":"0.25.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-http":"0.25.0","@opentelemetry/instrumentation-ioredis":"0.25.0","@opentelemetry/instrumentation-redis":"0.25.0","@opentelemetry/resources":"0.25.0","@opentelemetry/sdk-trace-base":"0.25.0","@opentelemetry/sdk-trace-node":"0.25.0","@opentelemetry/semantic-conventions":"0.25.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.25.0","opentelemetry-instrumentation-aws-sdk":"0.25.0","opentelemetry-instrumentation-elasticsearch":"0.25.0","opentelemetry-instrumentation-express":"0.25.0","opentelemetry-instrumentation-kafkajs":"0.25.0","opentelemetry-instrumentation-mongoose":"0.25.0","opentelemetry-instrumentation-neo4j":"0.25.0","opentelemetry-instrumentation-node-cache":"0.25.0","opentelemetry-instrumentation-sequelize":"0.25.0","opentelemetry-instrumentation-socket.io":"0.25.0","opentelemetry-instrumentation-typeorm":"0.25.0","opentelemetry-propagation-utils":"0.24.0","opentelemetry-resource-detector-deployment":"0.25.0","opentelemetry-resource-detector-git":"0.25.0","opentelemetry-resource-detector-service":"0.25.0","opentelemetry-resource-detector-sync-api":"0.25.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"71e0d9e7b65143ef75979b07cdb370b0f52ff216","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.128","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-hSznJt4Dfj7gQd/B7Q2WVfhkWmF3k/mg0Qf4SStdkmFWCEM7fDwjCAqPbhk/9KLx5W+p5qzhmF9c+OIpGv3mNA==","shasum":"5c7efb6f1101c64ede6c27ffc9e29668525b036e","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.128.tgz","fileCount":179,"unpackedSize":418148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLzyLkCgjaAgBKpxubZ/O5X+mTEBggo5ToEcKlxWw7vgIhANeoYLuY+EQYF6XoE1YfMGE7gvRUvDI0JIlesCRjP2NO"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.128_1635248025892_0.12253187229528395"},"_hasShrinkwrap":false},"0.0.0-2021-10-26--15-22":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-10-26--15-22","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-10-26--15-22","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-10-26--15-22","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-10-26--15-22","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.1.0","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-elasticsearch":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-express":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-kafkajs":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-mongoose":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-neo4j":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-node-cache":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-sequelize":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-socket.io":"0.0.0-2021-10-20--09-32","opentelemetry-instrumentation-typeorm":"0.0.0-2021-10-20--09-32","opentelemetry-resource-detector-deployment":"0.0.0-2021-10-20--09-32","opentelemetry-resource-detector-git":"0.0.0-2021-10-20--09-32","opentelemetry-resource-detector-service":"0.0.0-2021-10-20--09-32","opentelemetry-resource-detector-sync-api":"0.0.0-2021-10-20--09-32","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"2b1cedaf8c01a028e58c852de71f7241b68412d1","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-10-26--15-22","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-lE4qZWYEhUE9xzp9bZNc19r600VxpTgec1hSqMYancLnQtQZAiPqp82hpejjxDFSoppOz+/MvZR4PxGyHaMeVg==","shasum":"767c02d2b83b774e88e3089267ee49af7a5342ec","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-10-26--15-22.tgz","fileCount":179,"unpackedSize":418778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj3C/oU86Bq/hf3l9997TplfvDyWEDvZvVW3whK9+p4AiEAslVEDt/ClSef66klE5S50FDB7+3Dl/WC/AG3foChstE="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-10-26--15-22_1635261790592_0.2735154074176942"},"_hasShrinkwrap":false},"0.0.129":{"name":"@aspecto/opentelemetry","version":"0.0.129","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.129","@aspecto/opentelemetry-exporter-live":"^0.0.129","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.129","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.1.0","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5535a0a3c7dd727394dea4484492efa8948cf4d0","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.129","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-ZdMYmCb+Y66O9I7Qvl2NCJ2GK1H3Maf053ncc8hXRVSBrXhoww6RGrNYFGYJ4CC4MPptbZeebgK9MKlDN5z+7w==","shasum":"22bf858fc240b7aa0ad94b23baed474413785213","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.129.tgz","fileCount":179,"unpackedSize":418605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiRaoZHDJLdNqrw/KZjdHpk7O/A4HoO8FQiGfLCNXlcAiBP4BH9bn9kd0J9dk1cpAk/elJpQ4hjNLSMLJVTfXlxvg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.129_1635410942459_0.677422002634221"},"_hasShrinkwrap":false},"0.0.0-2021-11-14--16-14":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-11-14--16-14","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-11-14--16-14","@aspecto/opentelemetry-exporter-live":"^0.0.129","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.129","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.1.0","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ec7098a2a843746370b656486300662950ef346e","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-11-14--16-14","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-UErsVyLFjErnTE72P9EfraRDlmJgYn+Lt6przd6cJAHCRdR+Ig9wYhAQB7vSYejg+V4RKv65bHAZeG1y1CsErA==","shasum":"bd9fa73fc9b82a13db54b5db14e44c1e75cf7e43","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-11-14--16-14.tgz","fileCount":182,"unpackedSize":438732,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQI0gZGugXRO5ZjgxHEVBbunybyp+yt9dYUkzttmIWEwIhAICH4FXC9YzYa3WkZ67DRx9QBaN9DYaVOT6+WhKBqH3T"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-11-14--16-14_1636906487908_0.07588808251546975"},"_hasShrinkwrap":false},"0.0.0-2021-11-17--13-52":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-11-17--13-52","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-11-17--13-52","@aspecto/opentelemetry-exporter-live":"^0.0.129","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.129","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.2.0","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"b4dcbeb8eb5d6c46803069fd5c3c0ee198f9e736","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-11-17--13-52","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-8i1NUUz/ZqZ6VVKlX2bmxNgZA6LJm1+DdYOcbU2jDeczQ490AcXxO+sU1VRUPpEfIgOf9310pnQCyOHU7Hpd9w==","shasum":"b4c4b4a7fbd86acbbbbc549799339fe663adef50","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-11-17--13-52.tgz","fileCount":182,"unpackedSize":438732,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlQlICRA9TVsSAnZWagAAbD0P/1z25xh0kXLrKAeUmAcb\nRdBQ62KGeRXJrhNY1TaRurRq5gT1aSiHiSgiZWkOCPy4g5PJFwKVp4S7nQGD\nQ1aJhHg8W+aE3o9O39fSNshvtnrI/4W6/qYFEwMfJCCa1M4KyYgc3pofPudB\nDlroxK4l7EgIr+vXhNVcwbQ94dcHFvAeF5SmLtFMuYPDlsMiMDla0waVNsxC\nNVJnChqB2Q5xKd/b9/2R2+dRCHCC73nsXxV0PV21mh42C3lnltZAYfaFDBl7\n2P6hBx+Ni6Do25FUqASEg2cJe64Q/R22uyKzPVCVhdTik+Z8Q10q1rj68gbB\nesws1mZZFWIuy0Wy0GtIRcoPV2MDA6K+vrkZz95SGhWuHWLv53pXGnzsSF0a\n87cxrFAPrJMqMnuCgxFMWXUGNeCihhGVduQCDZNa/SkdOYu/n40Ozj/A3X81\nfmRwwdTzu5P+mXBTLl8PDH4EA+rAZwp+azZOqspPq5gmdSuKBE/uQDUXQzTe\nvsskWuSEwibbWSaKPNBy91eOi1XnP0R50RkZGanW+pTjQtmk5nnv2l3CpkTS\n+3A5WCB8eNc9PFkTbHi+v+PtVY8KW2G+ux6o/IXBG2Hb2FwKbqjN6p2sCO27\nMSn5PRNlxbPvmsaYoxqw8QTEMAGShGD3X2VAiX3rQ/IZ3UJgVHnMf+Entjqk\nfn8o\r\n=v1UZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrd9Eums/iBcMXtOK/3kPUQlW7RyI3Q4Xn5c6L0v2EsAIhAMIq+mbPd0RszGlnjJCsTV9kUWHdbLf8wUeL7F68QHtq"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-11-17--13-52_1637157192800_0.3510980985929706"},"_hasShrinkwrap":false},"0.0.0-2021-11-24--10-15":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-11-24--10-15","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-11-24--10-15","@aspecto/opentelemetry-exporter-live":"^0.0.129","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.129","@aspecto/sampling-rules":"0.0.5","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.1.0","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"b314eeaf1463d40c51cbed96d18046496a3b5175","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-11-24--10-15","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-BS/bpI7A5Dy9tHU1CACg4Y6Fe1yZuizNG02HTEAyjYnSc8gfZH82/S4u3BQHlvv4sod99cFR1GkoXGfazQeXhA==","shasum":"13a44e68dd946512d0ff1a5d0474d6c330c7a94c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-11-24--10-15.tgz","fileCount":191,"unpackedSize":447339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnhDpCRA9TVsSAnZWagAAxbUP/1+W9cXWXPRW0VGal35I\nirjkBAXCYPjRAbXM8tVdwttmfV8bIx9iuLrRkGyyJxscKKHAZYm+WGXm8m02\n9z5ESFbzlmpYAtyVETEsjsIuXoTfliNBsYneE0TbJOQbz03qsOUIhjj0SQCU\nHhxWv7Ga3P+60gg1DXwLxHUqGA8IY4P1ddZD39rzpR/rLX7DAFKS1KaX453F\ndTuAIJB+A0S3BCYibvJ1tVSoP50iwzSMIND2zoJfkAOkZ8JlLcpCTywebHKm\nL/q6TNPN3Ix08+lLuJyi4jefPNSzcXmucPQicyHaCvRQflYlwOkMm3SihfZx\nXGmWBeMBEOdE/r87Fhg9zhZ17KkwdCTBld2N80xE7kK/NCMS2VFm3ZI4CmTV\n6NCECuUIC4+FD3b2cs5xy7xnbINQTDgOESpxcFLvPalfnplTvnR8qWNbaWCj\nFve5fLnqDrKSUaYrw15VvaWGnVOg+JY0ZOEU9E64mkbsMm4E61EGU1NjsIfl\nH+HeV/cBrbSM7TqIMzLyr69DtKgH8IALSLjwxnFy3fWyQ2nD9cwM6XQ1rm9G\nW1tx2eQy4Qv6rbEUUawf4rpLSbXynudZfgkj8VXMvC7RPdVnYdgKDaJ5ywwG\nZi+IjZ1SIASQgcNgxiAlprUzuxVgIXCYU0IcnhYg2jzH63aR2ytcGgTQEVQY\nM4/E\r\n=HYKi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1GSZTjmTNlJ9D6u3UyrK0bPujry0XRJzWL5KCHA6c/AiBLGm6a3uQhd5j5or3VIkr6rWEKmfgxKMYpchZSCWgYxg=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-11-24--10-15_1637748969620_0.9227329711915668"},"_hasShrinkwrap":false},"0.0.130":{"name":"@aspecto/opentelemetry","version":"0.0.130","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.130","@aspecto/opentelemetry-exporter-live":"^0.0.130","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.130","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"de2f1449adc3e90eefd9dadcb9f37a5e162ea0f9","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.130","_nodeVersion":"14.18.1","_npmVersion":"lerna/3.22.1/node@v14.18.1+x64 (linux)","dist":{"integrity":"sha512-zyS3SFXX6bBp+pgzXKJ6357Ns6HyW8y+9T9YItNCHiWfAXdaEiZF/NA/GFyFRDpjf7rlz2mmjDvlo0uQWO1rJQ==","shasum":"f1c5777087a60a045eb60bab6b6f95512bd498b0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.130.tgz","fileCount":194,"unpackedSize":463495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpjkTCRA9TVsSAnZWagAA3ncP/2hN6kWkr8tblnlS27FC\nOmdEPRL/M5vJ/4xHnQJ98MgabEMVdnnhENCwj1Hb7ngN962X1WnwtkKAmi7y\ngsgA39qArJSVtJWkE+JdGmLDF1NXkJSn13nQA8XKPmKGIPj12OLcPBV0pwzV\nSKzealERa2gveoLM3Jui3Bfu+PX40fi0LpyBw1K6m/Bip0+fGK0gUz/nEJNE\nZw2vlorE3aA8j1s7m7YOIbcPXSU8dKHjY6aHQ+2VOKGDob9LUKBYKJTw/wAm\nHXAM5PO6ZaInykUUv0ZL7i3IqBjaKFyQX++CroFPl+I9fHa+SVkzRIJOB9+L\nDG+zrfXdpe3dBpcn0kreBwzECEiDiNq61u+S2Bn0YiZQM4SBx5+h83vFx925\nGWEJcxx7gbGkKXV7GJAFMWkgOSjxsJ4Hlb9morS3xgsa/V+EUBsgZ8TNjzDO\newe0ptMbbnfDJE4O62HHuEqCjbva7cdu7e3n825ocTO/7c3b2PikHEPEYgAr\n7n9acv1bUmpPLkc3HBLGsXPcilD3J5H78AmG6WIYEMBQJQmfqGrrpnrAfiht\nDAJW7q34VGPfk+7Y37hYINklATHN2e0mcETr8PKAOw/ZNiOVqSXM53xJAFqy\n00n9g4rpI1kjJWk4Zm3bfzbW1Uc1yu1/2RTJP/6fpZUASplOVzRJ0+ZlKc01\nwb/Y\r\n=tbPU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPQd4n6BvJr8oRWYenQfnuhzpq62+pvK2MbBD8j9q49AiEAi9KpNPNM0DBSCkThtGC4pXQIYryhhWuR/+jDfIh9I4Q="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.130_1638283539131_0.27811852814247073"},"_hasShrinkwrap":false},"0.0.0-2021-12-08--13-04":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-08--13-04","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-12-08--13-04","@aspecto/opentelemetry-exporter-live":"^0.0.130","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.130","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e1ba104260f19d4bdb8faa7fa75a0b64457aaff0","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-08--13-04","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-YLBlJmvebDLG4B030nvqE6T0WQgkKanQUNxe7eo6/ZqG5OezlFKYEBiAywCidPv+thyv6TEY3rZzs+RKyYEvPA==","shasum":"f7ff17962307165879a10b34d36e30e745c1c47a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-08--13-04.tgz","fileCount":194,"unpackedSize":468849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsK2MCRA9TVsSAnZWagAAK+MP/1T+oSzynRxKyYHRv7m5\n/r3MdjLlo4Pmh4UhnCQQV0ldsY9KoTkurz3ygtsx/U0tLBFBKK+SHK2kTzbI\ncpiDfI3ga/nVR/i5Sei1tPi53QRjS6UzzRkFeJhT20ZIfCfe50oDEZG42Y/Z\nrm1ur7wOLnCP7nQUtsjaAu+w+zJIM2U2ID0GoQ9IWW6jsWyB8ghORPwt0NPO\nSKjKluek460DO11TQrAB1eV64IWjAYLwswI70+XNgbBzbM5qGMXvUpkNTreS\nPUuWpXClwvBXVRoLw07XyPvcVkmESZIkD4Lnt7f6mBsmcATEYTmUBSHLYPqR\nclvnXkqKAd/QpIJ14eT1hSek/Shq0bsAVa/uZFDezNGQ16C3brFR1EfCA+o7\nZnUw0Q6v5UhORe1C25/fGjRvm1jxveHio7w2vJj0WNwufr21gKHQxmds9lTH\n2bRVf9cuyYX6Cf9r/b14kA/K2UkUoRO1AXLWCIsfTtc/WytBvWN48BdcdUVo\nt0YcOAePAt2rDZ3kuRaK+qWn99iiwhtevt/PHrno8XlZnhxMUJqJygdi9WtW\nOKlZrrXY/V4r9rV3blZjyOZmQxA+62hGH59UAkphs/vaTnqUGx+dNSNfj3NY\nECXvBD1vTHB6mEYHxEm9z0kXqKQ1GhOTV+URdzXlpXdM8gLKrkWz+xfj6gsV\ndpo8\r\n=sJPz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+MhkH6KoBnxP2TG/GqvKvxEOGkUg+DklnqRW+nInnIAiB6kdNX23oUsUTR5JtgjO8LgHI+b29QoLJjHYiYRd5xKQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-08--13-04_1638968716451_0.4250936307753759"},"_hasShrinkwrap":false},"0.0.131":{"name":"@aspecto/opentelemetry","version":"0.0.131","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.131","@aspecto/opentelemetry-exporter-live":"^0.0.131","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ddf7f7ec28c6747c52b8e41bcbfb0bac4044a075","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.131","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-o7JXo3vT22+n+CUVj3yrZGzoebt+StP1/TFfjQ1Le/jkD1nK/bZ+p97/2A/criEz2bJwWWBHaGD6QvExm0oV3Q==","shasum":"baac97f88fa3a2c884b90090c020c0004a897b0b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.131.tgz","fileCount":194,"unpackedSize":469359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhse2zCRA9TVsSAnZWagAATQIP/RpBNtlv2W0AKVS+76HY\nHEokzWd52SZZvnwdXPmp4YIQ+PvdnQmN91cnecWsje3szp2SDx7zAKJR1Syx\naSNirpMNOF6OR4Jk8PHqhkz8FC1lFmKUPL4eAQqfqb0+9wPy899JgSrBZVBG\n8S4dZUau8j4yh0PfCLkdkbX0WK/ROODuu6V9c5nJUbzUVt2t1/naOk7q1DeQ\nfdZiK4/gO3FPTTwi2h1dm1XyORG9J0HFcqmfFs/OqvaCPp88ZnI+EHodS0fZ\nbR5PxDazYGBRdILtqscZCtXyuZpL5zhbA/wJGkZQrixvPesoM/FUFc+7MUfS\nijfEGWWWQppYx88pHdHuTa36vSNI/48IssD9yAKcYzK5KPDAqlmro1Nm1WXg\nS2egldP8i/Ct0oVarGsunz/Q3kLFKUUkGY4E8uAE9/ngSfJWmCndXzewIIuY\nXCtD010wblPZrV8kgUPTaCcMqyl9LW4XMQAeI7eKKk1Bb//8rAtgNXLLbQpQ\nA6aq+KEfAg6pI637Tm05G3KEnWVSjIDJY48S8GuLQYFYXcyTCKMR9iwqsB2s\nIxIj6wM2Kd5kD5cpHBnR0gBa++qOHEds3D7J4VNc2JgLw49+kHgJEMCtOVtv\nHGHhfW03QELcuw3CDwves89/KFXiLYavnXE5kGC15f8zdxwkadwJRxez44GT\nSFjF\r\n=WYez\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDZmz0aC+LgCPsS7WKFZOdI2wGp3D2Pom4u4+DfUS6iQIga4vJofrAOi7Lgfjo2vlLnWlds4Ug0qreKNF6zz8G7jI="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.131_1639050675331_0.2095471943396059"},"_hasShrinkwrap":false},"0.0.0-2021-12-12--13-21":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-12--13-21","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.131","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-12--13-21","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"4e31163c7e2b7b109861711168cfbfec0d739d5c","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-12--13-21","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-b/+Cv8zQsG9A+J+ykGbD2FSy3v7mK88JkbxssSLrQjDJSwMv8Zsqa+ECVZvexTDxCPDM9wIdSrG+WEyEVijTTw==","shasum":"3b8625d581e28e9341ea8ad47e50d068026c7410","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-12--13-21.tgz","fileCount":194,"unpackedSize":470130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtfdtCRA9TVsSAnZWagAArn4QAIyAjG4Z3sDNvJ875fLJ\nwFTTc3vZffulQGQo2jbWfjA6jdQdzhxjjLn2lwLfgS1x13mW6+OBRdHnG9x/\nYbOsT0s2vmDcfN5PyPq6uq9OGW+py/tWSxUJrgT1QFpqdIMgBAeaa8iOMUVZ\nLUwQyDU8QZcEUysYztVdSkRIk+6uC2TNajybWSGukTi3/sNNznERfEb2RsWl\n6CFH/Cre6TzQPG75guIEYZrPI4J+LGPzt6c+O+wVDt6PeTHBvJ1hPjoQ8eAB\np3xjCmQxTqVwCjbmENQchYXNMLG32FXfgd04yYHQOvu3GjlY1xv+kprkSHON\n/DtQm0KRgr6AzvSxLYAix9FDn0H16ffEV6Bajj1vIOidIx38ZXH9kh2Jg7Dm\nZg36bvQi4sxVwBiCHSlc2iYMAOQ9poq2fsV48bSgpccsmAM06HooU2PXLSTt\nETp0KS//Zx/hO3lVc38fh9GYauCfIgy0GSU28ZbQoymqpeCitrY2pHS2g5Iz\nNVqgu8wRvPsHmpv+gjuc48g+EZ6uARAWdNkkrxYZcsNHUsCa9LsnH0vODeRo\nrYDFPbbVFdYpvFD+liB1K+FoBY42D1TGZWtzU76eGUoHHXj+CR7ao9bikOcr\nuayklT5jKpWS9peAAF1WEykzeCe6FPbmd9AAWV/U7HIE3KVbUKoflJuknoTd\niCBR\r\n=t4Ya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaFeIB1enKltCzEyIHBZj6HoP89WZQVQASDiJqWPKppAIgCDCRtblDYim8jmqx4mohgEWDLj19aL/u7vamivEQQOc="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-12--13-21_1639315308642_0.06355684148493412"},"_hasShrinkwrap":false},"0.0.0-2021-12-12--13-32":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-12--13-32","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.131","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-12--13-32","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"77cb846f5b4111b6ae7aace122a7b840f306defb","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-12--13-32","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-Moq+3WvQgwLY/WK6U/qzsDjiy3shH0WzFgmC+DqZNckT9ikweve4HPkj5/6QZWn+E2usr9LU3rHFmMlD/WZUCA==","shasum":"3341a3ce92265c60fb703266cd39f2171c13232c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-12--13-32.tgz","fileCount":194,"unpackedSize":470130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtfn/CRA9TVsSAnZWagAAKvgP/0s+wCzCEN+CtEA6o6ua\n22r+JyDsFndtsppENJNdI4ia/WnOlGR5+dYYMknywVoB8AF2WUUxGcJRfle/\nPPBBs9DK13FnIPcibZaMvCss6WD96vTccDVer0hgP1V4XRCOnDs5YQ9Qbg1/\nQvdrVbV6eBtHYJllspI6wBXo0XVycZJ2lZpP9PP2kESGlsX8Ruqt6EVyYn1n\nF6s4pyHBpakFG79dxZAo9Xcj+kEGgJcot+08zouw9Ysmw7q8m/FbsOg+QSw6\n2FGCCN44knGm39FBIHwaQS+9FDoxPFf6gIKmejtxTmHDZyQz+kwCCHqLZ3hZ\naanxlBiLepyZru8Icd8S86TepSzieXcRCUyiQgg87QLrUdfKIlb8K6Xisao/\n+KP7kaQWXz5nFIB5f6y4S5m5DdiCP+q2CK1O/ZfaRDQBRNNcJbDvC1ml6+wM\ncv47QKriQRTTV3O8A9ZvsoW1REs6BkihMusgJvXwdAILa4q2DFHVYTmU1IBm\nntkPxPLRFB4VFVw/247yd0238Fourl1AAUDV6RQfcuZrsine1mScLnMEhTmB\ntmD8/UWN7JhZ7kKNuQuQiakBxlu9hRh0PbMEFMJLg3i7Jkc0MmrU0J/3aqev\nMOSV3RspWEtB2DWbFuutWrY1/1yfIziZMa0zWhjtUSptR0hpGuxgcsCqfC6B\nMmRd\r\n=/t7O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG69Q34WoYAXnDG2opP5wVO7aabvYcuN+Ku5vPUElUC4AiEAuLPasR7G6kQfD78SKi0Yn6UU9qf3VaRVdnvPEQfarSw="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-12--13-32_1639315966999_0.11236749383457689"},"_hasShrinkwrap":false},"0.0.0-2021-12-12--13-36":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-12--13-36","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.131","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-12--13-36","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"77cb846f5b4111b6ae7aace122a7b840f306defb","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-12--13-36","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-FVdU6y/4Qi0tVbRTY/PC2l7Or0ab85ktYAKc0Y1ZhfW9xVElYo9XZdXNmtpAwhyxH5DWVSgvYZcpg/2vc6hr9Q==","shasum":"65f35156908fbbcda9b97c7b1ca0555966f6a414","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-12--13-36.tgz","fileCount":194,"unpackedSize":470130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtfr8CRA9TVsSAnZWagAAsqoP+gNuFVR/64f05r5RAyDt\nIxUpZEVrYjppJAEorh5OG3QX9a8uCUk41YG7dZX2j7Bee1OXcGZ5DdmwQZKc\nBUIu9wWuMjfOPnvADU10dZRwa16uGx++neTrbBgdCPelBJsx9NHd9I+h7oWR\nMmaO7hl9k+qO0rRuloDYKQqhF1NiffOoD59erZKpM0k5V477Qo83HYpWWOr8\naAJLZazWG+9T+M+L9k2304cKy5B02YFx5ebGJDtOzRu/MP7xdqLWpjbkxTnb\nh00/agc+9qOdwKYCzIkJKuC2U+VuZqto8FUwZArWwOmr3kgXZKdjKjhHv0m1\ndUlmst6EgGnumrGXDlzxmUaFwKexTT6VE75vbsvCDgMnPlUoRO3v6tWqDr7M\nrapNQECizY7mjuPo8VFFKZJ00tV3/IGfYOVph/S0CzAL5eyu4qN50RZ63TU6\nfVeJ0Mw76fCHC1A/YWRkuteyS/U6Nf+/tvOPbu/12eVu0sXHDP2BMb3lYMdK\nLfhNQO6x2qh7ww6/dxd/qEdXT5iUizpZaR2spfvS/PazFrZXmdAg8pyhIs4Z\nICKrmJmx0UrauffU6AJkolBjRiFiuFI5905tZFHLEGG+KOUc+VMyjE6+P+aY\nMX9rjcrW67FY49f/VMnuU0UEXB6hs5RuyBkvSNRmR/17uD1UY6T+3EHiolhh\npXTE\r\n=aMKJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJ4VmmPAl3hUoqo8OruxDEQ5/9FGO/SoI5l/z/5S9nPAiEAzmECrYH26FObiuGF+Ql3QlqYsoQsHE3cjjN0XO9dYAA="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-12--13-36_1639316219970_0.7627664816304385"},"_hasShrinkwrap":false},"0.0.0-2021-12-12--13-44":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-12--13-44","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.131","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-12--13-44","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"77cb846f5b4111b6ae7aace122a7b840f306defb","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-12--13-44","_nodeVersion":"16.13.0","_npmVersion":"lerna/3.22.1/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-mTWfr8H4bbodS30emBD/1imrdwLi5W8OvTmPeOk7pMFoi9wBvJG7tkq86KVG1GYXOZ+LelIxMkFBfBQ4IBKZKQ==","shasum":"75e6db2921f00413940d9afd4912272bd8c95793","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-12--13-44.tgz","fileCount":194,"unpackedSize":470130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtfy7CRA9TVsSAnZWagAAbu0P/1T4EKYmG/WDXWMWlUxC\nrbmAzpH8KIloDQxBMBo8qasqSYO72UZwtEmendK5CGnNOCGjEyuxxbD55u3i\novuq/kb97fzn0VkWa2XmkFwR7OOJpz5ZoYG1TWtlZJoaqa0vv9esTQHW5vUo\nxyPMq0lTBCfMNBqtUDhYSJXqH1MPxcSNuA4K19NIiYa75m8VMFe2/+pCL0tG\nozODXGOw1Ou997vxmZIS38Tj6FFBTapmHB6Mee4rlKBpfvlpyeMslLv6SjcZ\nv69uFIfy9jhBkUCYk4ibSAzpCIIFqx51EGe8vvEwrtZWSZEqK8hdMagBYYaN\niEDGLj5J2VWnzYRCYxMpGj1uuLsVc7Qh29UFAcmLj342dt94lH6xP+/zJOq9\nbmQOe7iZc+j9PL/GDA35raFL0khuYfja8SlqCzhoyPp7lH4/fApGVefR/ZWI\nSrKm1NsMHVIbckJfOKYe1F++g2WovMbN0smXfOH+JXR9DshcXFT+UqimJNtz\nASJIzDBD5L7XAhgMOKCxu/sCzfTq0uwehWusPm4Vlqnyc2P6RPfvyHHiYPR4\nzWKWoFBPKCb/BCWxnIklTX4az9wJIEeuD5kW5WmfjBGesZuZF2Y7NLIVYRIR\nzdDqAgJPmVRkddqjved2Pcli13U1AHSb4j6lGEPgKObkzee29rGw+mdT4WxS\nYb6h\r\n=f7ED\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD//yuESuyKPSLG96qncb/varuLbANiHch1/7/EVLymOAIgdYmBjYu68GcSeva9DZMU/ZtOdDslGruqrdvPM1+GY9Q="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-12--13-44_1639316667674_0.9444762771389172"},"_hasShrinkwrap":false},"0.0.0-2021-12-16--11-45":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-16--11-45","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-12-16--11-45","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-16--11-45","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"cc6f7ce8a2758f95fa775bcd3c0362ff519ddf61","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| waitForSamplingRules | ASPECTO_WAIT_FOR_SAMPLING_RULES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-16--11-45","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-HFPC7UvkFi9T5o1NNi5HWMGm+y8iiPM1flXGOFrEAfFQjxBQgcTcyr5+fYKIGWUP85mOzxISTGtAUWRG8rg1lQ==","shasum":"bef1c16c7db7666164d43929a053e55b084314cc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-16--11-45.tgz","fileCount":197,"unpackedSize":474839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuybzCRA9TVsSAnZWagAANdsP/2R+hd0YeuXv8hVPB/vz\npZrPpzQXJvSbFIhgglbyF/+AFmePsFxkVhcl7t4pXn1XZXiIPCpVH8Oowk6C\nETltPcTD0g+0M1Pr918JQaUNUwil3kjkAZNVCi1pdsgoML47ShOCgc6YN0eG\nMwAJRGgM1IyTJRFOYlVt6fbsYuEVGr6Y8s0Lb1ScWQGNEhLcvexdie6DVRJQ\ncWszzWsiULDHHTFvgDLC3CqEQ7SwhCh02kq6jsc4Yqo/zbhG3d3EWVPm2z4y\ndufnYztEQs3CqqSclaNpOnbAL6qyy2fK7cdDWHJQ3p8kBKS1P4cu9eFpeTmy\nDBPvfZP7NJjPs6D6IcfwxDgZ7sXV+BQdqF4Jg9J8qATaR6IDOeOmzILoY1y1\nBwSoFXQizg/19vrwnrAvask483rrYXGnuRmecBDDuvl6W5mJQrFfuZo8Y03m\n+YZklp0qTW1myHnkUfNh5q8TtfM4gR+/zN/18yU3y3Pd/RVogLiGcdBLi2cz\nqZBYD8XM8uxAJb7CYqpKmFp6XydyWNGMOXIX8Zm6RdVr39+t4qdyjSmQEpL1\n3sq8m1gQ8hAM7G+9LVkdLK2+5qKEg3ZXR961AR6z6IQIQPl7gKSs/Bi0+a4N\naeU2bI5VVJZuCgIpu1Tg5f7lrNNe9LUwaplW9nTMVxlw+klvGZRmNFL4HaNK\nRw11\r\n=a4ZJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC92T2QNNmKuxLFrr5MkKE0Gu7i0rFxfM93Clb4kEfYOAiEAi9soIxmOphkwRMIt/fGIsetA3DGziZqUXVov1IsfPLI="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-16--11-45_1639655155227_0.2802018668201689"},"_hasShrinkwrap":false},"0.0.0-2021-12-23--15-33":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-23--15-33","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-12-23--15-33","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-23--15-33","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.131","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"aa7ba412c5620ed346cf92d61b04fd44450a0344","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| requireConfigForTraces | ASPECTO_REQUIRE_CONFIG_FOR_TRACES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-23--15-33","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-9lOWHkRyACXlEvRQ+S6COWqZeLT33j30DMy0T2pYR0rnqpP7osf5xrRjV6q+2dqbhML4h6O/dTKKgxSFiR3xrg==","shasum":"ca42d05b59c628499bc5ba5a8e99b46130a97d96","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-23--15-33.tgz","fileCount":197,"unpackedSize":474881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxJbbCRA9TVsSAnZWagAAyMUQAIHM+jOyp+FKtcAKdkip\n8OCvlqp2p1oKO1yUM8RLNdaWKZtHJbvUrsm2opaR4/pRfDU/uVd6MtSCSnu+\ngUeuq425y6oEj7dNHtfXm8MlvpDMf7TjBW/AO1eFKeVpOz9BnrT3Prmg/7Dg\na7NgIr8yd11zl4EZDhT8cwr7cfgdweq3kqyn3LGovueNWwA8dJhB7Hwvp76S\nTFX/TT30nkIvFcqX0svHm7IkxmVNwapf0aXGNwp7xZ5h+WhE6v1pPx3d2a1h\nyHhg5tA3SljkGbq5Mq4bNibBffURrEo6SXPTIy1SoEOFe3ipD0TbqbByPJNA\nTit+qdBmL+/0UjFS5HLx95Ax+XgzU9XtlMDxz3ngjJr6AG7M3QrQBNgRb2Jd\n7FuOevqmnaI3yOhBYi6K6YXh4Zv1AJrv1KNK4akSvl042fXnpRP8WKZV8Oty\nKoSXbvko6aX8k1ipBFmBluxmuVRH+unN0pNSf2V3Ti4YISyz+8h166+NjYsC\nIkyGgJccT4qZIcVaGrIYZHkeLnUl4FwBVnTWNJsFpZxfZXesWAx9TO+qhLIH\nByk2eCu+j+w1dL8BQZpu6WF4ijvJDF1j91n4Um66QXaIRkB0U63vMtXXF3Yz\nenbRdtE6+8edyDTZ/RNNlCg4liGTkXP82p0DzOu0zxJ/uYjLHTi22YO4JHPe\nwwz5\r\n=6FDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9eg6MQpT4HFnwOC78wptGYz6DjQhGOTYAQWxoxpcu5AiEA0uEJIarH9i7PuqEmFzuGtIKksROMavjFME7rLMlmwnQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-23--15-33_1640273627001_0.30156480259230367"},"_hasShrinkwrap":false},"0.0.132":{"name":"@aspecto/opentelemetry","version":"0.0.132","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.132","@aspecto/opentelemetry-exporter-live":"^0.0.132","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.132","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"7e22c57d33755cbbc8ed0f09df3211e172942467","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.132","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-EG+XAXa8dtcjFvG23jYz5QQNAMhy27JwZf1hSyFDFlV1mU2woV3RdXAJQ9g/TErGlbX12yaA2653hqgqMzD2cg==","shasum":"b2b97f4f2b082461d647e0a9e26424e78b068e45","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.132.tgz","fileCount":197,"unpackedSize":475431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxJw2CRA9TVsSAnZWagAAZOAQAIhlsl6b4W7JEatTh+n/\nxb+P0nlbQ1OzpIQbbj4cYlRw4g7jtNN0qSwdZrUtAudbklVQsRzpHhw62R56\nvvorMkULKRvv5u+XjpVawDzO7hJX0Vz/XbfmKynUsG31bIWonhT8mbz/cabP\nEdN3okxHu6Wq/RQOdu2e6/wzoU3LgXH2lhKBUp8c71BoS6N8shU5oq9LDLS9\nqHJBc3/Vw/aKkpddqyj7M835nxgVssReqqeW/P6Z4u+8pdAh2s+wOo4/wPa0\nrAFyxtsB4BxO6dAEPW7NJBtdvqt2J0HU746IsLaWUiPrnmFe4slvDg4w3AuW\nj3c/auBxkGzkvZlaRWTJez2hQGAYNf8l/csMHPyq+Vwh/3EKMiTFGGpt4gM+\nnSdtdGQhS89XmfChW0+WWk/FLze3iHqXLNajuXdGS2uSiB3esjZGKz7Djnri\niTt33qPNslfFEt5twma0fPk8yRUqSdLE4qwXUX5j3EX1sRbk66YTtYY1yF3h\nQBLPSwcFRBlS07Qsovkh5mY6jtwZp/WayAxHZXsy7KpaHsgON+C7pYlTDnym\n3fx7v1RuGy3L8vwAckZHvXfcmR1Cm0JnO7TXYf9V1gb3vb6QKfJsvas3wKrx\n4pjUH+jTrGQvDvzeOrNzqWBSZEfMXpUbpYrzLCHcKs3OZ/U4GxZtjYCY95xW\nS5sX\r\n=TcGC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD59mKs4vOgd7SgzAEVrUx0a9qKSisHUt2/1ys7wAtCcAIhAMOKSSDVFLzdOBnOv+NQ2hMdkbGolqvnhanL2o/iocoR"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.132_1640274998559_0.34726734632375345"},"_hasShrinkwrap":false},"0.0.0-2021-12-27--15-59":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-27--15-59","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2021-12-27--15-59","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-27--15-59","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-12-27--15-59","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"^1.0.1","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"11cfa549afc0d219e77ef3187b2a6c66069d4cef","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| requireConfigForTraces | ASPECTO_REQUIRE_CONFIG_FOR_TRACES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n| extractB3Context | ASPECTO_EXTRACT_B3_CONTEXT | boolean | `false` | should be `true` when the service receives requests from another instrumented system that propagate context via B3 protocol. for example: envoy proxy, ambassador and istio |\n| injectB3Context | ASPECTO_INJECT_B3_CONTEXT | boolean | `false` | when `true`, the service will inject context in B3 format to outgoing requests. set when you send requests to an instrumented system that support b3 propagation. for example: envoy proxy, and istio |\n| injectB3ContextMultiHeader | ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER | boolean | `false` | when `injectB3Context` is enabled, the service will inject b3 context in a single header. use this option to switch to multi header format. |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-27--15-59","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-g901PRMNrHv/M2SD4WjGhAUKOEuSW/zBpklT9HO2ERr6NkQvgh2X57EpBY9pgI0Qo6BeJDogfq50VD/cxNeIQw==","shasum":"5d8308e0896f8e1ec0782dfe389e15f5c496ad4f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-27--15-59.tgz","fileCount":197,"unpackedSize":480971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyeMfCRA9TVsSAnZWagAA0ykQAJdrpSiDwKGaTdC5M25Z\nL5aJ+SH6HadGabJZiBOZTZMqxKzvc7n1qgiGzwVpP4y+7Gs4R7NmPYCPcP2X\n8sGbjFyZK40wxyiD5WL7LnImCnmF2FKVQRP+EvbYL9OoohzA8+sBc27QIrH4\nIvEfbnUZtcLA5YrrPfL6MKjsmjyl1jMytvJXNKu319e/nQuVOm1WUC9SE8YK\nQJZYhOFSYMhke76JKn+ox0+qd9kganvb57uKkYXCPWyMu8QjSE4lPRblKXtE\nI6dcBhkxrUO4CK/B/DuDHteVMOvG9+g/WAKm45yWP/Htl/n7eUBIZBuiesrT\nuo2sJmzL1UFdrsos2Ky+GjY32+xsYFleZbeqETPUFWtsiLf9s782eUBS3DLu\nwp9Szlpa12aEOur/k0pUGuGWjoU+jvZTEzsbmt30EclpJ707ojBYXkkDZBm4\nToQGZ/OXpA6UTYchV3dxFI0/rw+7uTK4AxpATLIOvD/viEgaAnGCqKpLleRO\n9anHNUBMXmSt4Bdf1Lu4v0M6bW75uatGxj7zITPrPKrj7aQLtKgq4uaDWW9B\njW1Sq88UDUU0S7B2GhN6K+TSk2MCvX6bIOdvwoZq/lv1ZxHaKbxkWFtTjmAJ\nX6sf4fcG3oz2h5nn6H3DhZDExPbViyh3CndaDU9ZxWiK8uAIC1xght/XXix3\nL3VM\r\n=gNe0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMXeP6NaM1k8kcI32qsRGSoqMa5PhB6K4v2FhqEIVajAiEAuA8P4YGi/Pwp1snY+bEWmdiAQokX9CODFb0kw/fnDXU="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-27--15-59_1640620831822_0.6626599624292251"},"_hasShrinkwrap":false},"0.0.0-2021-12-29--13-52":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-29--13-52","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.132","@aspecto/opentelemetry-exporter-live":"^0.0.132","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.132","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.3","@opentelemetry/context-async-hooks":"1.0.0","@opentelemetry/core":"1.0.0","@opentelemetry/exporter-otlp-http":"0.26.0","@opentelemetry/exporter-otlp-proto":"0.26.0","@opentelemetry/exporter-zipkin":"1.0.0","@opentelemetry/instrumentation":"0.26.0","@opentelemetry/instrumentation-aws-lambda":"0.25.0","@opentelemetry/instrumentation-aws-sdk":"0.3.1","@opentelemetry/instrumentation-http":"0.26.0","@opentelemetry/instrumentation-ioredis":"0.26.0","@opentelemetry/instrumentation-redis":"0.26.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.0","@opentelemetry/sdk-trace-base":"1.0.0","@opentelemetry/sdk-trace-node":"1.0.0","@opentelemetry/semantic-conventions":"1.0.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.26.0","opentelemetry-instrumentation-elasticsearch":"0.26.0","opentelemetry-instrumentation-express":"0.26.0","opentelemetry-instrumentation-kafkajs":"0.26.0","opentelemetry-instrumentation-mongoose":"0.26.0","opentelemetry-instrumentation-neo4j":"0.26.0","opentelemetry-instrumentation-node-cache":"0.26.0","opentelemetry-instrumentation-sequelize":"0.26.0","opentelemetry-instrumentation-socket.io":"0.26.0","opentelemetry-instrumentation-typeorm":"0.26.1","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"802a84c1531f27dcaa95f71a440cb5d8417a4b0b","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| disableAspecto | DISABLE_ASPECTO |  boolean | `false` | disable aspecto |\n| env | NODE_ENV | string | - | environment name |\n| aspectoAuth | ASPECTO_AUTH | UUID | - | Aspecto's [API key for authentication](https://app.aspecto.io/app/integration/api-key) |\n| packageName | ASPECTO_PACKAGE_NAME | string | `name` key in `package.json` | set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| packageVersion | ASPECTO_PACKAGE_VERSION | string | `version` key in `package.json` | set packageVersion manually instead of reading it from `package.json` |\n| local | - | boolean | `false` | when set to true, enable [live flows](#live-flows) |\n| ciReport | ASPECTO_CI_REPORT | boolean | `false` | set to `true` to indicate running the service from CI environment for testing |\n| logger | - | logger interface | - | logger to be used in this tracing library. common use for debugging `logger: console` |\n| writeSystemLogs | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| samplingRatio | ASPECTO_SAMPLING_RATIO | number | `1.0` | How many of the traces starting in this service should be sampled. set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| requireConfigForTraces | ASPECTO_REQUIRE_CONFIG_FOR_TRACES | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| collectPayloads | ASPECTO_COLLECT_PAYLOADS | boolean | `true` | Should aspecto SDK collect payloads of operations |\n| exportBatchSize | ASPECTO_EXPORT_BATCH_SIZE | number | `100` | How many spans to batch in a single export to the collector |\n| exportBatchTimeoutMs | ASPECTO_EXPORT_BATCH_TIMEOUT_MS | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| sqsExtractContextPropagationFromPayload | ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD | boolean | `true` | for aws-sdk instrumentation. should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. setting to false is a bit more performant as it turns off JSON parse on message payload |\n| extractB3Context | ASPECTO_EXTRACT_B3_CONTEXT | boolean | `false` | set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. for example: envoy proxy, ambassador and istio |\n| injectB3ContextSingleHeader | ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER | boolean | `false` | set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| injectB3ContextMultiHeader | ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER | boolean | `false` | set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. for example: envoy proxy, istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-29--13-52","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-DqW4CPevxAmbPKHKehNnyB/Pg8ImL9tDsPGZgY8m9cTWgBgGyWEfeZgFkW1DaXKvTFHzcKJNsGHTQEqI+DooiA==","shasum":"8888d4dbde409c678ef68dc114ce2c4890608798","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-29--13-52.tgz","fileCount":197,"unpackedSize":481223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzGgdCRA9TVsSAnZWagAAkVYP/jPqPJUsyKHfTe1vUkEP\nIzamy85Bg90m8PpFlXc+Fgpj0ZSzC2F1Kb3el91cppwRMs6V1UVqND+tyZAt\nqmeyY52dFHGutLyd4VwbLsvERnCT1SfQcp6rESt7df2XSspAeJBGmpbgpNL/\nXJFMJB3sLZxae+nHBwA3Cap+tig1jtk9icEKR+coSbnM1r3lHSTnkmsjfWf7\nu7xTlhZ8PiLlgQ1UgrLzegsN+HCwK1DIp3DVIa/3OS3kZthRGghgDr1YPw9B\n+Q0l2X1Sn/Ixg+Pk5hMzwqGozl3c3gO7Ag1+PYvK6lC7J2fqEpYaGhFAbC0I\nO1rumYjYHFbm/Um8PDO6g6rZXK5ASDxpAwPp7zmTMekXjhCrhF2GEN69+REx\n+hiDJH6nz/mX/mMDymXTCRYV6o0gnYQ7I2MJ8dZLo5m+H899DUbS8SUzyYsT\nGPs4gh+/XYXg/NsgaclwrRdIuABWYJ1m+1dyY3tjSSd5LlyVNFMpoJHIlSWD\nfwbL4vuwcG1ls9f41JBDSpa6M4GZoNXi3r9/hx8g3HbFLwJMGgWPt3r7lQpu\nrhEt1f2A7r9ZPJP75lLlRVgByMYtRXDLAydBayaOLboURQi+raeyQ2kIhR5R\n5lAQSFJKpfaFW3Xs+K0wtVNsnTY3H0/vVV/rtz0tBQ7jXEQ5hQPdFjuNtWGF\n8BlQ\r\n=YuFc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1rAEfogJoWBfEJBM/i3Ebspg8UtzDFs4K66atsHS34AIhALP4mtEWb5QRkHOgEzI/SVPkiLy6KcUUcSGp0eowVzM6"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-29--13-52_1640785949815_0.2706740164580834"},"_hasShrinkwrap":false},"0.0.0-2021-12-30--14-45":{"name":"@aspecto/opentelemetry","version":"0.0.0-2021-12-30--14-45","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.132","@aspecto/opentelemetry-exporter-live":"^0.0.0-2021-12-30--14-45","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2021-12-30--14-45","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.27.0","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d65c17cf6cdc6398cef3ade0a0a3b606cd9a3617","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto enables developers to find, fix and prevent issues before your customers even notice.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `packageName` | `ASPECTO_PACKAGE_NAME` | string | `name` key in `package.json` | Set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `packageVersion` | `ASPECTO_PACKAGE_VERSION` | string | `version` key in `package.json` | Set packageVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `local` | - | boolean | `false` | When set to true, enable [live traces](#live-traces) |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2021-12-30--14-45","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-Jq72SqGuDIi7Datk7WEqXZRmcu7MfBkc0QUFYNWWfVigt9e1syzsiJplw+BqcnsO8DFrAWsumksF/dNJCQczTg==","shasum":"16eaf98f91eb387d119dc42afd2f4dbe48a8f26b","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2021-12-30--14-45.tgz","fileCount":197,"unpackedSize":481586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcY6CRA9TVsSAnZWagAARxAP/R8MhjO+N9DWdoEoTgGf\nu0GNbWd21wHnIdgdZWztBKODrTPYAKmVF898q8EO9pVwmXbf9mH4BMgqAwkH\nG0UXl0aPL4/A3Av2J4Op/j+Z7AeEUkQBTuf8ekKJFLdAKmYj7y4G7qBtbvFE\nFOCnuROtn0qHi4/1ebxyHeShHe03JdfkmD74sGPcc25aDnVK4+BXFz2X/j8b\nadZJLDzCbPmslZBvZsw3LsaH5jCO5WKJE8RESLFFCiTEM9IIk+YqIpdkS788\nMjd+kyOK0drSyQNTD43y2CYwaQJyLlbh6vpCwp3bOkTjSWacvrNnobMWAVnO\n+17frI0fHWK8RbaaUoBZMZWyGLLGwbyjtUApSuBOxe2SauTXTW+hFAzzX87G\nodng1JnQHakPjncfZVWImQ/KvOCm8Q1oHRq84gM53d+AzUlHcA80BAAcfAOq\nY6eKWlhzvD0TvVT7GbNAzHXe6dgA5bvraaB1TXAMtXrBPouENtTIPptcUx6g\noMPqNU9GTKx/W5q5hPr+YoW/XXopCbVy4JyQWla1NN7dGt5yOwb+dfSxTkxa\nFcFggwUVcSMhv/KD3xezKiI0c4EEy9+q24+hj/jAw5wyk8wQC5U73fuzPtqB\n9P2EoVnW350U4SOZy2eKdY10vqHdDMRLnrolOObQf9nWuGLMXt64BHtXNAw8\nrGAA\r\n=QYB4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJptB5q4LcPtYRC27VAlZxEPP/IevGj5tuejWAKgDBqAiEAxpbSRMiK6FU8zjq7bXi7rLZc14XMwYlNE4+Eb3ZOYgQ="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2021-12-30--14-45_1640875578581_0.01709641893310576"},"_hasShrinkwrap":false},"0.0.133":{"name":"@aspecto/opentelemetry","version":"0.0.133","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.133","@aspecto/opentelemetry-exporter-live":"^0.0.133","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.133","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-amqplib":"0.27.0","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"abb25172c5b15e60d9ee280eda46055fa099dde3","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.133","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-JSw83epPlWweWD+yCfEPTR7M5tV2kBwJlfW2iPB0cKJ8lY4TnDU9t2CWVo0eLoRHG5uzCHYVmuXzC//ftehq2g==","shasum":"8cffd9e7f46d0da62de10393d3664aa5ae080710","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.133.tgz","fileCount":197,"unpackedSize":482097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0u5mCRA9TVsSAnZWagAAegAP/2GbhLmQbbMiPu/4Zjwh\nrjVM98lXzH2Tv6WQILtGYgrjg98dp2yPJC/YdnKBBWhCq1VkFBeIUywmR311\nY3mUdwLtBbppPxuj78t4ioskjw/Ge/POKTkVWh+98s+IYCCeia7zvGnFePlX\nYYOLS9VoQXVz2Kp4m9ZvEj64sMmC6QjczHPA/lkUvTOt8g1g6UBdstc2xRnX\nqocPYSIjueKB+aLChcRCwqat9F7ARoqEJM4oV/bnWT/VkG9Nk/66buVyWWWb\nQYSgRCEd+rm0AWxv/PaqDWiGKQ6RVkEpdprzV5dcdra9GTR1SNug6/cba2sO\nblx6q3xf6x+N7ldgkltMQnslNUeQ8gWqWwO0EEZzaq6U/p+qqF2UoD+21P1X\nxfnyUGg/NYhqNT6WN9HzdF/HuohWk4JfZIKfTclfKMq2o4Fdn+B06YHoFJ5G\nV3BMEx3NEZCh5MFU4ywDfM/ovjn+v1JvK/2lDrLnm0ez0hY/rMVjlxejb6Yp\nSf5PE0kENrVfTpxdGUZerkYTWwcd56jKI5gEWo05eLBOZoUgrSJIirOIcXhY\ny+Ve72pLXPSemrD5PaKIijmen2wSOUr3JOhtu4KUQH+OZXsUbi1IoeNowVtC\n7pNXtXWzRm+rl1IAPHBouj8NpoqalYmHLh7M3xjd32Ian0L4bseyRalnS2tJ\nUQFi\r\n=eDA9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSHJgSGC8J4fGIT5ZJY/flpC+o0WiAIJdGZjNyaFFuPAIhAIB41FWxY0As/2eJ1CbHOJeERbb7NXsETC3cRg729CBW"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.133_1641213542780_0.8415980103807401"},"_hasShrinkwrap":false},"0.0.0-2022-03-16--07-58":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-03-16--07-58","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.133","@aspecto/opentelemetry-exporter-live":"^0.0.133","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.133","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-amqplib":"0.28.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-bunyan":"0.27.1","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-pino":"0.28.1","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/instrumentation-winston":"0.27.3","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f85a0f46b39c6da9eaee81dceefef78900f0ff4d","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `packageName` | `ASPECTO_PACKAGE_NAME` | string | `name` key in `package.json` | Set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `packageVersion` | `ASPECTO_PACKAGE_VERSION` | string | `version` key in `package.json` | Set packageVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `local` | - | boolean | `false` | When set to true, enable [live traces](#live-traces) |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `packageName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-03-16--07-58","_nodeVersion":"16.14.0","_npmVersion":"lerna/3.22.1/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-xvZsDDLK5GssG3IUvFBcF3BGER4wgtZjR9dAwXnZIlQ0fTt/ZUo/CVqHLRL8rL/7mjRA1JYPraTxAJg2eQXzzw==","shasum":"6e25e80810b620e46b1163dfdaaf464f7efe5368","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-03-16--07-58.tgz","fileCount":197,"unpackedSize":483864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMZjNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolBw//eqbbnXFYlgSQ4+KnGqvUH9Br1PZIlqazQbYwTKsgoVkGUpwN\r\nrBfiewboApoCazF/hHw+y7e6jqvX0cLy4gQBusOY5a4ebB7R/3qujQ/nxsUX\r\nd6MsYRTbhgW5KQGQQtW4KFOfYI4iUJeFVvOTYQxKNH7UXnReBGTbKCIS1qli\r\n7lCRm1ZmCWVQf7f01ZYmzd5Ol42+UjpdG5uY082x353bUZp6HkgJPv6TiFN/\r\nzEETut7rFRrf9F4Ya8Vsar2f9hu67IllirzgY25IFsFCvvHDAJrkM39pRb1+\r\n9vZ0e9uOnzEKLZMDkgMt2qcC0VM2Uu6QokgBeSC600tVKz6FQ9PK5eHf8mKs\r\nCVeWkGkaq7MZ/g2NzuHmQ0aDMUwvVUJBEmJCDL+IfmsYCKIWR6yU+Lhb/htH\r\nQt81V7WwMp0eUmEzdz72xgFFBEm6+4ZjOlg9sy2esXRfJJHPjOIoOi8OBa/5\r\n+oeKQlGgPWYiWiAvWV7vsQ5z7v/vCWvInEtQ/3kxKX2ujIQ81DipxMdHnBgc\r\nPAqrF9U3MthoXLHkf9WN7DxE2KLveEfL7J3joPxxt35F3+QwqAIOi9UywXRO\r\nRhmZFtP2aJ2QiNDdzxgiAyCgMP8z1weev+OFVZmODjfmrERdEX0sQ5kI16QZ\r\nVMGcXvd/9qQg26IiwOno95IdxXBeXRZYlNc=\r\n=4ENT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA13MQVu8JJUQsjCKqwOSz+DeYgyWcB1QPtzi/atmtfsAiBgcSVLa2axuX9QshZ14acf0PklSZz4tfiA/ssR2Kmo/A=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-03-16--07-58_1647417549821_0.23359352466462324"},"_hasShrinkwrap":false},"0.0.134":{"name":"@aspecto/opentelemetry","version":"0.0.134","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.134","@aspecto/opentelemetry-exporter-live":"^0.0.134","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.134","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-amqplib":"0.28.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-bunyan":"0.27.1","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-pino":"0.28.1","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/instrumentation-winston":"0.27.3","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash.get":"^4.4.2","lodash.has":"^4.5.2","lodash.set":"^4.3.2","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"4dd3af08cae77de4f4e9f35c50df1e1557babd74","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.134","_nodeVersion":"16.14.0","_npmVersion":"lerna/3.22.1/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-Ji6RB1Hkl43PI7pCFAK9ZbWse9IspBPyeod9h3TgHZLvnpLjYFkAKHVGzc8WhX+Bv7hpiREwNUavdjDMpXznLw==","shasum":"0d7e44d602038f8595e509e9bf6b87ccc132e839","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.134.tgz","fileCount":197,"unpackedSize":484190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMgqYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZCQ//Tyi5/pAwfUqvEeo8N/4X8L5iUk+iDbORrKw7RpHUWQaQ3vQy\r\nWUoOIxGh8ikScBkFlHOEEAm0SyZoRFB3suH97hZHZnSDdq+qXC8UpziTtrch\r\ncquZXtnIrRXCA1uTCeOmZso0HMfGtTY428KNzRCn0wjwB6Pyk0cnMYF1jGYF\r\nhrk34whJiArfsST1dyOp7OfZx4F7N/mMZBz7mRbAINxjZg3AsG72aGKhTYG2\r\napDVpYchIE2sIPjUC6eKlOj4YYel63Xl8Ima59i9K0Vz4rDN6vT/GzXIpK+9\r\nPwywvJ9QUEZD66wEFLWNWQE71NBzasDpEqqyFneDnEeRdgTE4cD/jpRubN6x\r\nIIntirw0VVsTAXDehe6tYuVKMoQQoDNQlApm1JNDbk02tXs4c6ag4yjYp+qr\r\nKLuCN9pkDjGs/1Jpqw4dedbaQZMbgcUc7DrQD/ipgzYDmS8JiWtS9O9SeMqi\r\n+MxRY3rtlm6vCgtxEaAHAAtdYJ9uD8MJVEln1qQHBWb1T3jV+OkUgbq5Pi3u\r\n83o46xfdt2pDWJKZA9VroeTJ/NOz4toJJqjnwwbIzDayjvlMT5Ej0cpm3pNf\r\nAKVgfsshQ4c/xMJUrsxpSla42VU9CX1EUbmO2WPEHUmw1xGERhIsEzZAkDtK\r\ndEhxQga6U3K9yUPNAc0sn6RXc3OVgsoeYpg=\r\n=IQAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVEGOOvGq245SSNr/pZAA0o0hqAbOAKhJCGNfXG1j7YAiBTfa94UnPgdMrkm6Mi4WjHdZbaSLzXHwTUCAj109iiJQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.134_1647446680386_0.9611379595716014"},"_hasShrinkwrap":false},"0.0.0-2022-04-05--13-50":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-04-05--13-50","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.134","@aspecto/opentelemetry-exporter-live":"^0.0.134","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.134","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-amqplib":"0.28.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-bunyan":"0.27.1","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-pino":"0.28.1","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/instrumentation-winston":"0.27.3","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"b0f9570e612e60652ee15f738fc406180d136c2c","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `local` | - | boolean | `false` | When set to true, enable [live traces](#live-traces) |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-04-05--13-50","_nodeVersion":"16.14.2","_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-BvoHQnu7UmAYk5cohWO1Jj+QXXVWvind0Ml03CVep9TaUQQYM47ZSzTdmb3chsJ/kXcE36L8itmgaprDJhavMg==","shasum":"970cafb39b159a3b1b0288c5998986a58fc67cfc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-04-05--13-50.tgz","fileCount":198,"unpackedSize":485962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFeZK05sX3qlJ/EIGEJ4TikCme1d4+USdvZd07Q4Mi7xAiEA0DuUap5n2swsKQ7QEV+ilaWebB2Jjr/j7RZ3mdylFsQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTEksACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSdg//W62lo+qw0iUW3d18Ud3IUqCZJz8w2rFJ9jsK3Eci0LKY2PzM\r\ncjk7zppy7MjXT6iKTniBUqNc36UQEs5GMxAIM1jNgJ6fCl5g/fVSWM77RV8Q\r\n2EUie+2VhaIG8EmTe+0oqatfMPgSM7B/5qIi94vUtoTr9SmY8RtuubQHUZ1w\r\nnZXh6Nqj9+3waChl/Q7mQvVkaQusBNNnuZva/TRvQLN1zV4+5MzcjnexLINU\r\npMJTz04O4FnAg78RCXbX3uoagKnvjF1MhzRWqywcUFtUm6Gcqi9c+nTmH3DX\r\n4XeCMCpB7uAaosH9g56sSuU2XaSqhyhFy6hf7du9AQmKpVA2JWKl4rDRYLnx\r\n77UNFXeYR1dfFjBSX4U6HQetzLpqAr59756Z/vEYkV/OVn2CIQioKKAY/1Nc\r\nZR7ZOnrfBQfAH5IT98usN73hJ6N2IgF5XqUHdLVtwF16zOVh5h+7bsqcHBvz\r\n80LWcbhAt2HF9Xc6IZzI3z4UsLcY4gBWnjqkU4efblT3orwps+bmgfqqCquR\r\nyIS5KD9wAbxXF1V00qymxlfRBs+U/DM7JhepkqixrpTNTGQT5PSe1esT+nEy\r\nddcCm0em1VTrdKNxAA+KnKkFuqfAa5481wTmmf9youKfYw60VYHuq4qv3gnF\r\nxQkAVf+hRaBgOmyd6hglX2or/ulBDyREkOw=\r\n=THyH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-04-05--13-50_1649166635956_0.3002005529303924"},"_hasShrinkwrap":false},"0.0.135":{"name":"@aspecto/opentelemetry","version":"0.0.135","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.135","@aspecto/opentelemetry-exporter-live":"^0.0.135","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.135","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.0.4","@opentelemetry/context-async-hooks":"1.0.1","@opentelemetry/core":"1.0.1","@opentelemetry/exporter-trace-otlp-http":"0.27.0","@opentelemetry/exporter-trace-otlp-proto":"0.27.0","@opentelemetry/exporter-zipkin":"1.0.1","@opentelemetry/instrumentation":"0.27.0","@opentelemetry/instrumentation-amqplib":"0.28.0","@opentelemetry/instrumentation-aws-lambda":"0.28.0","@opentelemetry/instrumentation-aws-sdk":"0.4.0","@opentelemetry/instrumentation-bunyan":"0.27.1","@opentelemetry/instrumentation-http":"0.27.0","@opentelemetry/instrumentation-ioredis":"0.27.0","@opentelemetry/instrumentation-pino":"0.28.1","@opentelemetry/instrumentation-redis":"0.27.0","@opentelemetry/instrumentation-winston":"0.27.3","@opentelemetry/propagation-utils":"0.26.0","@opentelemetry/propagator-b3":"1.0.1","@opentelemetry/resources":"1.0.1","@opentelemetry/sdk-trace-base":"1.0.1","@opentelemetry/sdk-trace-node":"1.0.1","@opentelemetry/semantic-conventions":"1.0.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.27.0","opentelemetry-instrumentation-express":"0.27.0","opentelemetry-instrumentation-kafkajs":"0.27.0","opentelemetry-instrumentation-mongoose":"0.27.0","opentelemetry-instrumentation-neo4j":"0.27.0","opentelemetry-instrumentation-node-cache":"0.27.0","opentelemetry-instrumentation-sequelize":"0.27.0","opentelemetry-instrumentation-socket.io":"0.27.0","opentelemetry-instrumentation-typeorm":"0.27.0","opentelemetry-propagator-selective":"0.28.0","opentelemetry-resource-detector-deployment":"0.26.0","opentelemetry-resource-detector-git":"0.26.0","opentelemetry-resource-detector-service":"0.26.0","opentelemetry-resource-detector-sync-api":"0.26.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f287c498f48a3f0101fdc7a3fbba03da1e30d5e2","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.135","_nodeVersion":"16.14.2","_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-9hEe9ma985JY/CUHPVInPM7/loHlLtQBcZu3gdftMXR6vS3s0Ixjzxj1FCcO/SUX/bN5/BVUsAiGIAkYfEbWAg==","shasum":"0843622d710bfbfb2b9bbde4198bfc36b9186940","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.135.tgz","fileCount":198,"unpackedSize":486719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBnsFOCMDVET+8+ayB70x1E6nsWpQaPcMTTjMBFuKzAmAiAy8YN67igsZkzWsn7QOkDue5JbdrixQW1mFjLWYVUIfw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTFTaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeMg//Y8uEay6hFdIB34SHn+owjP1S/9Zy5RgslL5WzAeJIk1qavRP\r\nZtctyw12DVJn0sEFh+SIaNeFISHbzvt2AKRv1m0fLIx+uep55ijOPNSZYY6H\r\nDR+0WXUjWdvGWB2arjqm2JkunHpK86fmoz6EcZ8RHcu1n/y74WxiCInWISkS\r\npTbgmgp2Zlm1cDfTIyaPqGvBb4P+TkzByffb0p2/NgWkkLKHLLNQiToB30UP\r\nYKxBXA62f7ZgiqBmVuIIG40DlDX0w4Vym3++Skvq6DtJSYKVZLk+ZPO2jWcy\r\nbCt5PViS94vRdiv9DTSAojUoImpET6xJBbJhRGDFD1pcXLUSvQngmbrgxbm8\r\nWX+PImkMelbKr23PWRHyzPK8MVuhQB/gA9/Y1g4fQijHvJWF+7am5wPLZUFN\r\nHG7YXTaIfiuC4phmv0jXrtP0/GrHzXfIpkK5pWdg0Yp/XoSVUI/H5Aqv0IRe\r\nQPhEXszGTuWXfs/as4zGiryyYG2zAVBZw7fnEwgBcfIg2URCUOYKbgDgh9/G\r\nDSCo8g2GMx5ve4ovmVia3+w2eI4ki0WpfBmnf0BtrRtYqX7BF3yV37C4PxPQ\r\nsEom3JDk7fAlrjaM+dXmnVNfMu51/yfO+xHSyhF1h4ixAOrLD1mOE5pwGVl8\r\n34WkHkdEEyKU6St005H0WItbTveG0CzcRNU=\r\n=L2Dg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.135_1649169626029_0.8600696816637545"},"_hasShrinkwrap":false},"0.0.0-2022-06-06--12-29":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-06-06--12-29","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.135","@aspecto/opentelemetry-exporter-live":"^0.0.0-2022-06-06--12-29","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2022-06-06--12-29","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.2.0","@opentelemetry/core":"1.2.0","@opentelemetry/exporter-trace-otlp-http":"0.28.0","@opentelemetry/exporter-trace-otlp-proto":"0.28.0","@opentelemetry/exporter-zipkin":"1.2.0","@opentelemetry/instrumentation":"0.28.0","@opentelemetry/instrumentation-amqplib":"0.29.0","@opentelemetry/instrumentation-aws-lambda":"0.31.0","@opentelemetry/instrumentation-aws-sdk":"0.7.0","@opentelemetry/instrumentation-bunyan":"0.28.0","@opentelemetry/instrumentation-http":"0.28.0","@opentelemetry/instrumentation-ioredis":"0.29.0","@opentelemetry/instrumentation-nestjs-core":"0.29.0","@opentelemetry/instrumentation-pino":"0.29.0","@opentelemetry/instrumentation-redis":"0.31.0","@opentelemetry/instrumentation-redis-4":"0.30.0","@opentelemetry/instrumentation-winston":"0.28.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.2.0","@opentelemetry/resources":"1.2.0","@opentelemetry/sdk-trace-base":"1.2.0","@opentelemetry/sdk-trace-node":"1.2.0","@opentelemetry/semantic-conventions":"1.2.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.28.0","opentelemetry-instrumentation-express":"0.28.0","opentelemetry-instrumentation-kafkajs":"0.28.0","opentelemetry-instrumentation-mongoose":"0.28.0","opentelemetry-instrumentation-neo4j":"0.28.0","opentelemetry-instrumentation-node-cache":"0.28.0","opentelemetry-instrumentation-sequelize":"0.28.0","opentelemetry-instrumentation-socket.io":"0.28.0","opentelemetry-instrumentation-typeorm":"0.28.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.27.1","opentelemetry-resource-detector-git":"0.27.1","opentelemetry-resource-detector-service":"0.27.1","opentelemetry-resource-detector-sync-api":"0.27.1","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"c649ec232e7005d4d1948ae2f94fd4fa07a12dd9","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `local` | - | boolean | `false` | When set to true, enable [live traces](#live-traces) |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-06-06--12-29","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-oVn33L2x4EtUvFZfSZJt/fFt/nldDOdgvzGUkiWNZK3zwZgasYqrEPhbwf0lsFCVz6wX5rESn+bvPwqpv6La5w==","shasum":"a4042accfdec7770b743d3a737ac1dcfdde2cd41","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-06-06--12-29.tgz","fileCount":198,"unpackedSize":487676,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqsw+qalncijMU4p9zX6LGZyv3JzZ19UMbzlZCn+yUbQIhAMeGpTFhbtjcSyZLEOfwBtZC13r6Jle3Wwz/vRFMH0hL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinfNhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDzQ/+Oxdm7gORLteQQhSPp2fzTCAdXjXhUvzFX5W+UCglccbKHyMe\r\n08atAsBciZYTR7JebPG53QPj0SeKbGaKHXo5Zq8Bcv4conjTQsBAiS4qR0zD\r\njLDclbH/Djsj91qK0CDFYZEJNkwk/1BXt/IwqvkaPiXln3N0Z7LIXDjkRAhx\r\nUgvxYnSZRAm/4mZKWHNskNlTLd71Qp5qfmlZNbG3F2LrA4yr37HGjiec60Bi\r\nuNHR+KcDYDrxrtC0Sea0BW0MmQ8Bjh5jdv7vuBZDMgaDGJ4FnGHRN2E7EMOj\r\nr8DY+KAacZTrjfBCiECdWTJVxHzFpMqSD8ZbEe7WxVv5+qRK7ZtNxvgh+pjY\r\n+hIMdULIXAKo08Ax/+Qwq9VB3EWVEnqEMwzlu6MBmLHTlWb0pAUWaxzBZgsS\r\ngO+zv27pllwtQiAos4RXq7HzfioEMUb0tovbx6b7ZivU5hkJPigm4TTKYv11\r\nrOc0R4cco8fKKl1RXQDcGGgE9YivNNxVngBGv5nPv4hIG8uSv2LVslHdVlU2\r\n1vx84aFzLMER/OlhVWT4OhY1VnhGEX1PYw8BiyFBAIuuGqBrHS9Kh/XFjcAW\r\n/LZ66NV/XMAj6+xcn1TBYZFlcQMcOjxqPNYtvU79zGdE5qZPQ03et38mtude\r\npLkWeNV9LqhER2xS/u2AkyU4Llt1VHSaZKo=\r\n=cvZ7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-06-06--12-29_1654518625341_0.21933108311029725"},"_hasShrinkwrap":false},"0.0.136":{"name":"@aspecto/opentelemetry","version":"0.0.136","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.136","@aspecto/opentelemetry-exporter-live":"^0.0.136","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.136","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.2.0","@opentelemetry/core":"1.2.0","@opentelemetry/exporter-trace-otlp-http":"0.28.0","@opentelemetry/exporter-trace-otlp-proto":"0.28.0","@opentelemetry/exporter-zipkin":"1.2.0","@opentelemetry/instrumentation":"0.28.0","@opentelemetry/instrumentation-amqplib":"0.29.0","@opentelemetry/instrumentation-aws-lambda":"0.31.0","@opentelemetry/instrumentation-aws-sdk":"0.7.0","@opentelemetry/instrumentation-bunyan":"0.28.0","@opentelemetry/instrumentation-http":"0.28.0","@opentelemetry/instrumentation-ioredis":"0.29.0","@opentelemetry/instrumentation-nestjs-core":"0.29.0","@opentelemetry/instrumentation-pino":"0.29.0","@opentelemetry/instrumentation-redis":"0.31.0","@opentelemetry/instrumentation-redis-4":"0.30.0","@opentelemetry/instrumentation-winston":"0.28.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.2.0","@opentelemetry/resources":"1.2.0","@opentelemetry/sdk-trace-base":"1.2.0","@opentelemetry/sdk-trace-node":"1.2.0","@opentelemetry/semantic-conventions":"1.2.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.28.0","opentelemetry-instrumentation-express":"0.28.0","opentelemetry-instrumentation-kafkajs":"0.28.0","opentelemetry-instrumentation-mongoose":"0.28.0","opentelemetry-instrumentation-neo4j":"0.28.0","opentelemetry-instrumentation-node-cache":"0.28.0","opentelemetry-instrumentation-sequelize":"0.28.0","opentelemetry-instrumentation-socket.io":"0.28.0","opentelemetry-instrumentation-typeorm":"0.28.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.27.1","opentelemetry-resource-detector-git":"0.27.1","opentelemetry-resource-detector-service":"0.27.1","opentelemetry-resource-detector-sync-api":"0.27.1","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"b6fbb0fb93d6abbc0d7f2897612bd2e4de8315ad","engines":{"node":">=8.5.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.136","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-d5OyEwrSauxyVApAdPpyV0MySV5VEes/P/Ueb2ig2qUq9CvInvNzzU3ZovQBrd54uvk6E3xobvA3fxQjsy7mCQ==","shasum":"e4b44f38d8fe879652344e66ef1701b787ada928","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.136.tgz","fileCount":198,"unpackedSize":487943,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECvPpVo36w8VCnqgujiqV8kBjKKaF+Cl/7WcKLWJbN8AiEAqEkdIIvhBdW4C6k3JlyMzWr4we8Kh4yOnE5b2OPYANA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinw+2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Cg//f3I/PIBpR0e0VbB2mu+8WLSOCl9e35gE8dkKLK/q8yl9M+I1\r\nCcx6DreuunMsX2jYprFt/Mq9Jb3EFZtL3aJ2jYOwRnt4rjBxcYk+cKSvflb0\r\ntVQqYftQsL+7y6FAcvJO3PhzFXK1Ps023ks+uAU1RJLTJSGE73tcbn91X1/9\r\ngromi93xBL2/LCNWDwuJK1AftTo8h5YzcDTlrgYXYjM6s0Xancw5MTzMvp9j\r\nfdDBxpljO1CYD5HzMAh43tGKV652szsOlGJ1IriKKyfy7VWOIvIeYnM+2hHq\r\n8erlh/6r9exKARPfyuUcop4yt7Hh1j3/sf18/0J1ytL19SnzYMk3PKpk80td\r\nDAzNU+P714g2qC+KQBmAMLqIecXVSArs+LhCWJB0nHSDYCaRo9W5jBRrs9r9\r\n2ruECHfWz4mOEWEwSRzEUPGxPHyhGcmokLaPo167vgOtQ3gnaF36PMd64DJo\r\nwlUT0iqZFmWTstV9z+d8sfx0dUrDlTUwMTElt4HetEZWiccRJIptFYe6KEsR\r\nT9i0ieE9D/vC45qdGLsRbrc0Lj51VkgQR2YuOKhDq/2SOvccYFr2uPsBvTcI\r\nFMGG6wxF5shn3wUh97twNmEC4SvCkAk5u4h+jOXO89Ugbi6wyEd0w2kWjHQk\r\nY/XfmfYz/mbgN4+7FmsQfn32jDdIDP2aIB0=\r\n=a0Fg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.136_1654591413730_0.5146415967798004"},"_hasShrinkwrap":false},"0.0.0-2022-06-14--11-32":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-06-14--11-32","description":"Aspecto auto instrumentation for nodejs applications","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.136","@aspecto/opentelemetry-exporter-live":"^0.0.136","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.136","@aspecto/sampling-rules":"0.0.7","@mzahor-test-org/instrumentation-lru-memoizer":"0.29.0","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.2.0","@opentelemetry/core":"1.2.0","@opentelemetry/exporter-trace-otlp-http":"0.28.0","@opentelemetry/exporter-trace-otlp-proto":"0.28.0","@opentelemetry/exporter-zipkin":"1.2.0","@opentelemetry/instrumentation":"0.28.0","@opentelemetry/instrumentation-amqplib":"0.29.0","@opentelemetry/instrumentation-aws-lambda":"0.31.0","@opentelemetry/instrumentation-aws-sdk":"0.7.0","@opentelemetry/instrumentation-bunyan":"0.28.0","@opentelemetry/instrumentation-http":"0.28.0","@opentelemetry/instrumentation-ioredis":"0.29.0","@opentelemetry/instrumentation-nestjs-core":"0.29.0","@opentelemetry/instrumentation-pino":"0.29.0","@opentelemetry/instrumentation-redis":"0.31.0","@opentelemetry/instrumentation-redis-4":"0.30.0","@opentelemetry/instrumentation-winston":"0.28.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.2.0","@opentelemetry/resources":"1.2.0","@opentelemetry/sdk-trace-base":"1.2.0","@opentelemetry/sdk-trace-node":"1.2.0","@opentelemetry/semantic-conventions":"1.2.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.28.0","opentelemetry-instrumentation-express":"0.28.0","opentelemetry-instrumentation-kafkajs":"0.28.0","opentelemetry-instrumentation-mongoose":"0.28.0","opentelemetry-instrumentation-neo4j":"0.28.0","opentelemetry-instrumentation-node-cache":"0.28.0","opentelemetry-instrumentation-sequelize":"0.28.0","opentelemetry-instrumentation-socket.io":"0.28.0","opentelemetry-instrumentation-typeorm":"0.28.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.27.1","opentelemetry-resource-detector-git":"0.27.1","opentelemetry-resource-detector-service":"0.27.1","opentelemetry-resource-detector-sync-api":"0.27.1","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e4dc6f28f32e1f9a0778f26aec9c19a3f209c0d4","engines":{"node":">=8.5.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Traces](#live-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `local` | - | boolean | `false` | When set to true, enable [live traces](#live-traces) |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Traces\n\nLive Traces captures all payloads and traces in your local environment and automatically extract the topology & dependencies between endpoints.\nYou can activate it using `local: true`, like so:\n\n```js\nrequire('@aspecto/opentelemetry')({\n    local: true,\n});\n```\n\nThis allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with `local` mode enabled.\nOnce the process starts it will output the following link:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment and have local mode enabled.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-06-14--11-32","_nodeVersion":"16.15.1","_npmVersion":"lerna/3.22.1/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-2URlT5diiDiw6PSbntafLskZpLr1rvOiNE+HvkW4LLsraCqsecgiM+tOrCV04eSOrSygdcWwWd2dDN3HV2jsbw==","shasum":"38a61250268036d3024921e59075fc91a6186360","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-06-14--11-32.tgz","fileCount":198,"unpackedSize":488426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbTPS/ZT2qRut2S8J/iFlYNPv6miELSW9xEyv5JKfKyAiAqg1uAuf4wgzgQZpDy9AsyOUdSxj1JXDyzaqi9sfk/ZA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqHH2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmollg/9FrnMzmnyiC8+Jon4eXDAyp4gSlmDg8zzOO/pUwdD+Ck4H158\r\ng8Lq4uFXimigJUSv6fKdO5tSJIg7lLS5T1q9rWIOgH3AkjbmKIXgz9WSij0D\r\nQljSzFtcrAQJfYa22ZfZOBEsC+13VPR/aZmKrTPWu6YxHBKWGe6ShZy8zT35\r\nZD9O18FmQ4FCmE4BOTC6kYvn3y+82NV3rsSXvfnZIKSDcMfz/AsBomlNH6qt\r\nKEtg4YnXoW5JRSXcYeAXgIM/q9HA+Ebl7TkS45BNtNY4wyCtY5rGJpbsy9A+\r\nF6dGTjIonzCABHHkASSwreqWMEq+MsYxAs7SpezFIwEeeq8adqlrbJ6un2Ue\r\n5spC8bi2a7LpGKMsXMV40kl2COmlN7ZkRbWiVxWs/9LFxXuiCahxJ4PyavIh\r\nzz655+QUv4/d6L6fHF9yyxcB42ZeIpjTpOxo5APPLcGPRAL+uYd1PVmwmELO\r\nvoRfDnvi/xKGwyVzgsRuez5hx0nn3MYc/LwLL+WnVdneOcvOfgwzQ1unlrn5\r\nIJxiUKAaKH6042pFWbavfD9+meqTqFVmPEEornNT2txxzdft/yFj1KN0l5RJ\r\ncTaxFgLrsbXQxK28jxc3IZ1MUPFgKvnm+bXfNekFt0UWFZ0JF5lXRrk13e6q\r\nC8JiQHl8vHAaQDJVQKjlqB4F/U902K4cejA=\r\n=Isty\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-06-14--11-32_1655206390392_0.761480542492281"},"_hasShrinkwrap":false},"0.0.0-2022-07-11--10-54":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-07-11--10-54","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.136","@aspecto/opentelemetry-diag":"^0.0.0-2022-07-11--10-54","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2022-07-11--10-54","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.3.0","@opentelemetry/core":"1.3.0","@opentelemetry/exporter-trace-otlp-http":"0.29.0","@opentelemetry/exporter-trace-otlp-proto":"0.29.0","@opentelemetry/exporter-zipkin":"1.3.0","@opentelemetry/instrumentation":"0.29.0","@opentelemetry/instrumentation-amqplib":"0.30.0","@opentelemetry/instrumentation-aws-lambda":"0.32.0","@opentelemetry/instrumentation-aws-sdk":"0.8.0","@opentelemetry/instrumentation-bunyan":"0.29.0","@opentelemetry/instrumentation-http":"0.29.0","@opentelemetry/instrumentation-ioredis":"0.30.0","@opentelemetry/instrumentation-nestjs-core":"0.30.0","@opentelemetry/instrumentation-pino":"0.30.0","@opentelemetry/instrumentation-redis":"0.32.0","@opentelemetry/instrumentation-redis-4":"0.31.0","@opentelemetry/instrumentation-winston":"0.29.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.3.0","@opentelemetry/resources":"1.3.0","@opentelemetry/sdk-trace-base":"1.3.0","@opentelemetry/sdk-trace-node":"1.3.0","@opentelemetry/semantic-conventions":"1.3.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.29.0","opentelemetry-instrumentation-express":"0.29.0","opentelemetry-instrumentation-kafkajs":"0.29.0","opentelemetry-instrumentation-mongoose":"0.29.0","opentelemetry-instrumentation-neo4j":"0.29.0","opentelemetry-instrumentation-node-cache":"0.29.0","opentelemetry-instrumentation-sequelize":"0.29.0","opentelemetry-instrumentation-socket.io":"0.29.0","opentelemetry-instrumentation-typeorm":"0.29.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.0.0-2022-07-11--08-09","opentelemetry-resource-detector-git":"0.0.0-2022-07-11--08-09","opentelemetry-resource-detector-service":"0.0.0-2022-07-11--08-09","opentelemetry-resource-detector-sync-api":"0.0.0-2022-07-11--08-09","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"8d77dc150991daf6bcbb930729934e0fafd83daf","engines":{"node":">=14.0.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-07-11--10-54","_nodeVersion":"16.15.1","_npmVersion":"lerna/3.22.1/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-0JwrEfx7vGuar+vgA6lkbyufzENiF8GE+2jLI7qK1n4zS/b67xxfceez9UydHif7D5wNnLenqHUEd/4daPkoDg==","shasum":"7cbacf615b2eaa05389e4bb67087f20e66b8ae0c","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-07-11--10-54.tgz","fileCount":192,"unpackedSize":478612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiXV7XuQ4ncrL6LuqzYZb7AMpBIvbfJSNR5ibk9/BCKgIhAP/LxynV0xnQdZP8gjMHXIpDGbY2rf2Q7pFR4ih66oAA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizAGRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6gg/+IPvFDoSVGGp5XAf3OzxBZY+NLLUeuck2SW6gx4LmpGOTkVis\r\nDuWvugWPi1xX9fLizThgGT9zznrfnp7/2oMFFtA266pGSq4XDeUe9il/4SCe\r\nhIPXJNHwv/kqv5UsgvLkbBQlE78Angq9qCpUBw3wdVyram/Gtxw0HkUJF9Fp\r\nOjpMjZlHcYqBxFNUAGtDGyf4AwlzmZ9M+XgUiptgYgJt7PS8CB97dp+tZ4S3\r\n3WlIw7X7RDOyyM32nIFvPGPw7t7Hnej9isi2tykDvdvCxh2GvX6vkil9YIdg\r\n3KtdqXuJak+diyK7Nm6+NFDYnSlbfeXJtu6gZ0O8CvQrY7MBYuiE3KBFMPzd\r\nCncxXucHupheGJuhrKmvK0ZoE0f3N0Ju72LitdEMLss22JYwwLsbf8OY9WZQ\r\nE35U97kWupYea1kh6G35aYfQZJHP1VYxVyf/JGeRCEk3WwSkvLSu3R586rPj\r\ncikEvJiUzpEjb2/aizEvOEFE6qILb4hM/gHY79fNefzr7vBQBoIChwhaRPOJ\r\nH/M19nzn1d02JXEyRJnE4iBgs4ICGScKvfhkvkqzQe6V9GCxsavbXUU5wqr9\r\n+5TFt0VCd68Eyo2DDb60Btray3rz1SYsZOmOPM1Wt+tJCnqoxXwdB1pF+6vY\r\ng+KV7VsR/PqeluWKNrpyw0XFSVZJj8MCshg=\r\n=8ZLP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-07-11--10-54_1657536913712_0.3552851383790563"},"_hasShrinkwrap":false},"0.0.137":{"name":"@aspecto/opentelemetry","version":"0.0.137","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.137","@aspecto/opentelemetry-diag":"^0.0.137","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.137","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.3.0","@opentelemetry/core":"1.3.0","@opentelemetry/exporter-trace-otlp-http":"0.29.0","@opentelemetry/exporter-trace-otlp-proto":"0.29.0","@opentelemetry/exporter-zipkin":"1.3.0","@opentelemetry/instrumentation":"0.29.0","@opentelemetry/instrumentation-amqplib":"0.30.0","@opentelemetry/instrumentation-aws-lambda":"0.32.0","@opentelemetry/instrumentation-aws-sdk":"0.8.0","@opentelemetry/instrumentation-bunyan":"0.29.0","@opentelemetry/instrumentation-http":"0.29.0","@opentelemetry/instrumentation-ioredis":"0.30.0","@opentelemetry/instrumentation-nestjs-core":"0.30.0","@opentelemetry/instrumentation-pino":"0.30.0","@opentelemetry/instrumentation-redis":"0.32.0","@opentelemetry/instrumentation-redis-4":"0.31.0","@opentelemetry/instrumentation-winston":"0.29.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.3.0","@opentelemetry/resources":"1.3.0","@opentelemetry/sdk-trace-base":"1.3.0","@opentelemetry/sdk-trace-node":"1.3.0","@opentelemetry/semantic-conventions":"1.3.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.29.0","opentelemetry-instrumentation-express":"0.29.0","opentelemetry-instrumentation-kafkajs":"0.29.0","opentelemetry-instrumentation-mongoose":"0.29.0","opentelemetry-instrumentation-neo4j":"0.29.0","opentelemetry-instrumentation-node-cache":"0.29.0","opentelemetry-instrumentation-sequelize":"0.29.0","opentelemetry-instrumentation-socket.io":"0.29.0","opentelemetry-instrumentation-typeorm":"0.29.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/node":"14.14.5","copyfiles":"^2.4.1","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.0.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"3b82a810d55a2d188824297c50e26268afea21a6","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.137","_nodeVersion":"16.16.0","_npmVersion":"lerna/3.22.1/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-NiFssCXU7WzfuTxxlcfnbNGgLJg3uxn1hVu0hU9IMtVgCQZVcpd+OUSVD+LAMXZe2StvcXbB1d9KrLVw1gcNUQ==","shasum":"160f87703153d6327d1f015991bfe8f958810be5","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.137.tgz","fileCount":192,"unpackedSize":478920,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF6Nf6hVAi6tAXzAVDhe4UJ/upX2yyuIVFw3rbMwqIKgIhAOEWYPhD4Lw7sWXlxM9IAYHe+EVBFK9Y2j7O9PUmAeLy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizY5UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5KQ//e1tH+3+G0EaPjAmFJh60/uVIXTHDBxl0E7LZ69B6fYMbbd+y\r\nCzMZj/utBPyNKcPuGZ5PoC0ocXJRZSqXAZngPwIf+8hwbbxQf20wqP+4Ef6A\r\n4AoJMyhjI2fAr0Z8OjUoIZFi13lkyScg6/ieujf3TEXAbvlNlAcHrVQfKX3i\r\nbxvU7/975P5QpOnNjK72yeNLv4qNayY5PBW3szbG/fmkM8/FZQHbrjp2hyhT\r\nUyYJznPd6HZvWncrH0cXeOrDJ858y7hRMeWPEyl0df/hjYFzOFuFQVV0E+zT\r\nlmNpg6hroXS8+9QVFGzZyVWxNoHVmbNQX5qjHR2OlF6ocQgfQqkREg1pY6QZ\r\nvUQIQIi5X9IXuzaaaONzwiNFBQuuHUE+7yt4TD51/ZNB9sLb2LSMaz5gVdC/\r\ns54oRJ+9i/uOfWZ64WB/asgPOoZWEtiI3hISb1dMMLZs63jDdyMi+arLNUEi\r\nwFft9rP0ypn/wD2BhIXFiAlYzyqsemzFI9sU96f1j+UZ9FWRAQtFHcV7Mn1z\r\n3aE5eyPVMa8vThlRX+IbS63PJZPI1rtT1DPyDGRhu6q/5kPkIw+49EHMHBTw\r\nUfFhmC7G9/ZyaD4SqOioY3PqfvUS7RSro8jVZ47MSC57W2FTSBpTZslQFvj5\r\nQTdhV1RwbAep8A1Mec+BNIbCSeWd1zinZ/o=\r\n=D+mg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.137_1657638484293_0.14230428666708161"},"_hasShrinkwrap":false},"0.0.0-2022-11-02--07-46":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-11-02--07-46","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2022-11-02--07-46","@aspecto/opentelemetry-diag":"^0.0.0-2022-11-02--07-46","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2022-11-02--07-46","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/core":"1.7.0","@opentelemetry/exporter-trace-otlp-http":"0.32.0","@opentelemetry/exporter-trace-otlp-proto":"0.32.0","@opentelemetry/exporter-zipkin":"1.7.0","@opentelemetry/instrumentation":"0.32.0","@opentelemetry/instrumentation-amqplib":"0.31.0","@opentelemetry/instrumentation-aws-lambda":"0.33.0","@opentelemetry/instrumentation-aws-sdk":"0.9.2","@opentelemetry/instrumentation-bunyan":"0.30.0","@opentelemetry/instrumentation-http":"0.32.0","@opentelemetry/instrumentation-ioredis":"0.32.1","@opentelemetry/instrumentation-lru-memoizer":"0.31.0","@opentelemetry/instrumentation-mongoose":"0.31.0","@opentelemetry/instrumentation-mysql":"0.31.1","@opentelemetry/instrumentation-mysql2":"0.32.0","@opentelemetry/instrumentation-nestjs-core":"0.31.0","@opentelemetry/instrumentation-pg":"0.31.1","@opentelemetry/instrumentation-pino":"0.32.0","@opentelemetry/instrumentation-redis":"0.33.0","@opentelemetry/instrumentation-redis-4":"0.33.0","@opentelemetry/instrumentation-tedious":"0.4.0","@opentelemetry/instrumentation-winston":"0.30.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.7.0","@opentelemetry/resources":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@opentelemetry/semantic-conventions":"1.7.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.32.0","opentelemetry-instrumentation-express":"0.32.0","opentelemetry-instrumentation-kafkajs":"0.32.0","opentelemetry-instrumentation-neo4j":"0.32.0","opentelemetry-instrumentation-node-cache":"0.32.0","opentelemetry-instrumentation-sequelize":"0.32.0","opentelemetry-instrumentation-socket.io":"0.32.0","opentelemetry-instrumentation-typeorm":"0.32.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"ae71f4dd34a9f97c181df9ca4f51a2771e2c2229","engines":{"node":">=14.0.0"},"readme":"# Aspecto\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.0-2022-11-02--07-46","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-YdnD02VNobY7fT1wb6+7jZnERTt+doqMM80Pi6Xm6SoSe/56OY8xlDFFgn3va5CD4PzNVyEnyw8o52D8yBwINQ==","shasum":"edb89c45fffe1924411f800c8fd4c456474d08eb","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-11-02--07-46.tgz","fileCount":198,"unpackedSize":490827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIES6GoK7QNZ5GMMptZSGzuWfrvO62EmND7w3FMmxqaHkAiEAoiLtyds6oMYQT6A8JzXpaZI6PNU78rs/cWpAof8KK08="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYiBrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs8w/8DHu5vfEa+Aa6Lkkel3lZwXled8MOyJ+9npaa4aA8N6Mp+szX\r\nPGeWpyC9E+BRp23XAys7aBGDgSr8Mt7dINJeAoCo15SrWlwxilsS+Ly4wHjK\r\nb1jUN/U/L09H41/T4s+UysV8xzj+KA7Y3Fde0fFLyPQJ8beM9v+UiXkASm0w\r\nSVzJ+w4ehIeMhJGjfZy8F/4kvj/GHd5T/TdDc+AboknlUiV3N8jKfEedlQyg\r\nY2v7gX+fGT9PHt8FI7iVJ6wzli7RBOCYnLSMYpnmGr1gamNflmdxdGGlXmTJ\r\nM62PvZ8wQpOEcG6ccQpDV1og3A6ZDkuCkKSRQo4ctj6S3mn7B1PswmRpv7+Z\r\n0DqdxCU78ZBux4l2Hu3rKgjIRm8tzXFOfkQjXoPIm11+Y4nK3JHIh4OHfa6g\r\nZY7FIR1oYxAJ6qH+fnAmyKmqhX38GbIf/ljasvN7PPiDpILxJNTCNYHnuNzf\r\n04pWHymz3rt4rUlr/+2R9nwyKGf9YV3l0grUguc7wttz2Ghn7rXOgqU9Mo1Q\r\n7U8YtOSbxi4FmE6/qOaEe9xbND3HuVKNKySj35flMRnKlJWj4683r0aO95uu\r\nIXOpaPPjM3xvYdwvMBGLUigImfNqeMZGoB0HExl9erTYERPmbqp9ct+p2tdP\r\nObJ5yTzVp1vKii8BxlZyqKCtinqTCjYF5n4=\r\n=d5fu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-11-02--07-46_1667375211286_0.6657974688819739"},"_hasShrinkwrap":false},"0.0.138":{"name":"@aspecto/opentelemetry","version":"0.0.138","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.138","@aspecto/opentelemetry-diag":"^0.0.138","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.138","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/core":"1.7.0","@opentelemetry/exporter-trace-otlp-http":"0.32.0","@opentelemetry/exporter-trace-otlp-proto":"0.32.0","@opentelemetry/exporter-zipkin":"1.7.0","@opentelemetry/instrumentation":"0.32.0","@opentelemetry/instrumentation-amqplib":"0.31.0","@opentelemetry/instrumentation-aws-lambda":"0.33.0","@opentelemetry/instrumentation-aws-sdk":"0.9.2","@opentelemetry/instrumentation-bunyan":"0.30.0","@opentelemetry/instrumentation-http":"0.32.0","@opentelemetry/instrumentation-ioredis":"0.32.1","@opentelemetry/instrumentation-lru-memoizer":"0.31.0","@opentelemetry/instrumentation-mongoose":"0.31.0","@opentelemetry/instrumentation-mysql":"0.31.1","@opentelemetry/instrumentation-mysql2":"0.32.0","@opentelemetry/instrumentation-nestjs-core":"0.31.0","@opentelemetry/instrumentation-pg":"0.31.1","@opentelemetry/instrumentation-pino":"0.32.0","@opentelemetry/instrumentation-redis":"0.33.0","@opentelemetry/instrumentation-redis-4":"0.33.0","@opentelemetry/instrumentation-tedious":"0.4.0","@opentelemetry/instrumentation-winston":"0.30.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.7.0","@opentelemetry/resources":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@opentelemetry/semantic-conventions":"1.7.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.32.0","opentelemetry-instrumentation-express":"0.32.0","opentelemetry-instrumentation-kafkajs":"0.32.0","opentelemetry-instrumentation-neo4j":"0.32.0","opentelemetry-instrumentation-node-cache":"0.32.0","opentelemetry-instrumentation-sequelize":"0.32.0","opentelemetry-instrumentation-socket.io":"0.32.0","opentelemetry-instrumentation-typeorm":"0.32.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","socket.io-client":"^4.0.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"63a6d3885647ef2a17061bf5d693bb73d6af97f4","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"homepage":"https://github.com/aspecto-io/aspecto-opentelemetry-js#readme","_id":"@aspecto/opentelemetry@0.0.138","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-LmKgTWShG3PvEjx9jz7utnCKjsvAROaflURyGuyk2HGBji/XrXEtErq36MWlbJW9kjo1bezPF7CfjIv0L0zXFw==","shasum":"824397909fdf38afb159716a3e47cf5440842513","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.138.tgz","fileCount":198,"unpackedSize":491970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1GG5Sev1MZHYAE1i1jHyG/IWaELwL9AIkGnCRcAa0oAiEA5Rz+zEbIT9aZsCG8qmdyKCKOPqOSXzi4efMxh2nZPr4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYjwIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfnxAAmX2v45F5nOGcbuejBtLKklzOj5Ifd2YnrKOC4oCeb+x2UxkK\r\n+bfsoXTNLUUe4r7HHLkPxMEzB5puAKUotILP7JuUrhKJ3mpSYUEfZDscKsMc\r\naVqwJHYXQOyESi1/vIN2RLWRSvFHT0Ee5X9jmJPihFmOPzWhFeaDVc+/9S3Q\r\noTgd0bUxs/XNwsJY5mj2CCX1r+uAmgYVW8aJ/PBeORYMWEVD6w0BTDuaQRHo\r\nZATXZD3WVdalWmiA1evkgzTmhzcCS7UO1wYJBNEMvVIhRq/FkXkn+54fULVG\r\nvVZe5XUTgIJjT0M0UpQti3xdw3aPG+PP+olk6c1pIar+LlxLAkzq6D4PYoNI\r\nGZk94e3CBeaM5iY0/tiocQH9dlDfIY+tKRlR3LXnrP00m/BScnCu5oortxOE\r\n2npVr3E+Sc1L9Ph4nbBpxhZ9g5D74H+HFgRW1EKGLt0/IFC0L1Y39LOz7oqS\r\nT8AXybf0tLt4qJmVqPGRa3M9lXUB2Z41NCW22Y88im+zgpt+86InSnlQWKGD\r\njY3HzHaf/lxh3+VHiivjXNAng9zqahHOkSyKOltnbFI91pI4mUzrN293LQY4\r\nn76yl+orKhW5VK3OZ9NJrxeH9w5dd9FJyq3NdkyKJAvxef70pdVUg0RDxwCm\r\ndwpenBLHMDiCzvG2MtBMazETwVztDyzPLzc=\r\n=D1ks\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.138_1667382279920_0.8417599242097693"},"_hasShrinkwrap":false},"0.0.0-2022-11-22--11-42":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-11-22--11-42","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.138","@aspecto/opentelemetry-config":"^0.0.0-2022-11-22--11-42","@aspecto/opentelemetry-diag":"^0.0.0-2022-11-22--11-42","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.138","@aspecto/opentelemetry-sampler":"^0.0.0-2022-11-22--11-42","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/core":"1.7.0","@opentelemetry/exporter-trace-otlp-http":"0.32.0","@opentelemetry/exporter-trace-otlp-proto":"0.32.0","@opentelemetry/exporter-zipkin":"1.7.0","@opentelemetry/instrumentation":"0.32.0","@opentelemetry/instrumentation-amqplib":"0.31.0","@opentelemetry/instrumentation-aws-lambda":"0.33.0","@opentelemetry/instrumentation-aws-sdk":"0.9.2","@opentelemetry/instrumentation-bunyan":"0.30.0","@opentelemetry/instrumentation-http":"0.32.0","@opentelemetry/instrumentation-ioredis":"0.32.1","@opentelemetry/instrumentation-lru-memoizer":"0.31.0","@opentelemetry/instrumentation-mongoose":"0.31.0","@opentelemetry/instrumentation-mysql":"0.31.1","@opentelemetry/instrumentation-mysql2":"0.32.0","@opentelemetry/instrumentation-nestjs-core":"0.31.0","@opentelemetry/instrumentation-pg":"0.31.1","@opentelemetry/instrumentation-pino":"0.32.0","@opentelemetry/instrumentation-redis":"0.33.0","@opentelemetry/instrumentation-redis-4":"0.33.0","@opentelemetry/instrumentation-tedious":"0.4.0","@opentelemetry/instrumentation-winston":"0.30.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.7.0","@opentelemetry/resources":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@opentelemetry/semantic-conventions":"1.7.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.32.0","opentelemetry-instrumentation-express":"0.32.0","opentelemetry-instrumentation-kafkajs":"0.32.0","opentelemetry-instrumentation-neo4j":"0.32.0","opentelemetry-instrumentation-node-cache":"0.32.0","opentelemetry-instrumentation-sequelize":"0.32.0","opentelemetry-instrumentation-socket.io":"0.32.0","opentelemetry-instrumentation-typeorm":"0.32.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"fe7267cdd6cc5e6d0be3272edd67c474ab6d829b","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2022-11-22--11-42","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-1znQCkix+nx5kUKlhnGv0w9CK2z16FF4gPAqNjnodxzOfA6mjDdpCBtVG8eHO48oSKLKyNS1Mk7YweZM4vE0Ig==","shasum":"a85ea39a1e678050c6cbb80010d62c62489898e7","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-11-22--11-42.tgz","fileCount":183,"unpackedSize":454050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUKtjz3iPvDpECfOOua08SfUDUnfqdbABxg5CHivtdcAiEA6hmqH/mO1om9a8gZlXZCy33wZvJyUTYJa/L7SD1cObQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfLW9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO/RAAoLSUzTJF/jivYS6DBnCTr1x+mMTHcS1gu5D2gyDPYaBIoS/a\r\nKvNVKwkkvdLkqvUrW1BJvGpLqAK/26GrUG27LtGrYBk1B8DZyQhLvuUpH9Zn\r\nIXnU/WsRmN13kk+VLbmsba3kG8p3KQubZestTdfoTLPFzAt4XoJthpAWbM7s\r\naXz1sBi/eQ7H5Mp8Cui1o+qoORVMfy7pvO/8rngS2v4TCIBxbwy5y7MnmXSE\r\nLOWlBSAodjrkvdUJvrlMzD2J0jsJ2fTOHgkR/FkMUrAYauElcUAR9sAeKE79\r\nNpINEkQAYR5IS9zIzN1UFywk/qZm+9do7H5ZALWgahyDJmAKbmaoiPBCjmmH\r\nxw6ENNHS2yatW0fPjS1Ghs7lNrWaG/vI7v1qiEi+qmVLwfTfqC/VlOQSDAkP\r\nUo7yOkw0gzLijvOblfR1jv3X7mk+rkEORWRjqzfcGRzFWT8QSkFTBMPU+u3/\r\nCHUBMzL1/lWssdQCNf97XD0uetdRYh756uimymz917kGY9QN+TwSLg6DctD3\r\n78y7NS/0OIqyHqZHScYF3Suzh7GCZ2+9E+EGOK9L68g1RmmBOCsw2eIDRv5+\r\nrKTNRhmQIsKKuo0w42Dy18MAIQtngrvnf8CgwMvrCzVf9CUJWkFx+h4/0BqB\r\noH0jqdkSfnIDxfUsMMntETRyNUwbRpz0tT8=\r\n=ApUp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-11-22--11-42_1669117372767_0.34524190835988255"},"_hasShrinkwrap":false},"0.0.0-2022-11-22--14-54":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-11-22--14-54","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.138","@aspecto/opentelemetry-config":"^0.0.0-2022-11-22--14-54","@aspecto/opentelemetry-diag":"^0.0.0-2022-11-22--14-54","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.138","@aspecto/opentelemetry-sampler":"^0.0.0-2022-11-22--14-54","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.1.0","@opentelemetry/context-async-hooks":"1.7.0","@opentelemetry/core":"1.7.0","@opentelemetry/exporter-trace-otlp-http":"0.32.0","@opentelemetry/exporter-trace-otlp-proto":"0.32.0","@opentelemetry/exporter-zipkin":"1.7.0","@opentelemetry/instrumentation":"0.32.0","@opentelemetry/instrumentation-amqplib":"0.31.0","@opentelemetry/instrumentation-aws-lambda":"0.33.0","@opentelemetry/instrumentation-aws-sdk":"0.9.2","@opentelemetry/instrumentation-bunyan":"0.30.0","@opentelemetry/instrumentation-http":"0.32.0","@opentelemetry/instrumentation-ioredis":"0.32.1","@opentelemetry/instrumentation-lru-memoizer":"0.31.0","@opentelemetry/instrumentation-mongoose":"0.31.0","@opentelemetry/instrumentation-mysql":"0.31.1","@opentelemetry/instrumentation-mysql2":"0.32.0","@opentelemetry/instrumentation-nestjs-core":"0.31.0","@opentelemetry/instrumentation-pg":"0.31.1","@opentelemetry/instrumentation-pino":"0.32.0","@opentelemetry/instrumentation-redis":"0.33.0","@opentelemetry/instrumentation-redis-4":"0.33.0","@opentelemetry/instrumentation-tedious":"0.4.0","@opentelemetry/instrumentation-winston":"0.30.0","@opentelemetry/propagation-utils":"0.28.0","@opentelemetry/propagator-b3":"1.7.0","@opentelemetry/resources":"1.7.0","@opentelemetry/sdk-trace-base":"1.7.0","@opentelemetry/sdk-trace-node":"1.7.0","@opentelemetry/semantic-conventions":"1.7.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.32.0","opentelemetry-instrumentation-express":"0.32.0","opentelemetry-instrumentation-kafkajs":"0.32.0","opentelemetry-instrumentation-neo4j":"0.32.0","opentelemetry-instrumentation-node-cache":"0.32.0","opentelemetry-instrumentation-sequelize":"0.32.0","opentelemetry-instrumentation-socket.io":"0.32.0","opentelemetry-instrumentation-typeorm":"0.32.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"6196da6aa31bad3de4ba942b114351e424140f70","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2022-11-22--14-54","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+x64 (linux)","dist":{"integrity":"sha512-EG5oiruF2/Qc7TD+NBKrtDW3bR4QiqPEvTPH/NKpu2F+rIEGvHE+CbdbM8tDqGcAiEY6cYUPeYGYQqdOBkLW/w==","shasum":"1c2d4840df5ca8a6e918374c11e7bf849ac389b0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-11-22--14-54.tgz","fileCount":183,"unpackedSize":454050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC43YHGKVO8V8SjZT6Ieaiks5rU9Jk5FvtPhVYtIc0MWgIhAOwglKEOATyClrgeudNA/xLqNq3S7gbPp6yhm1yyn9+n"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfOLbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPTg//WbkzPEU3pgPLzmToOj5TmIfTHkk0o6K1B/OE/sk11W53atso\r\n3FoS+n51OlP9LAClKb9nC+F4Xe3BgFh/Z0Hd67Hvcz1rmVEy2K+7T5EppKuk\r\nVeifidM6DuXkALPh+OdBRura97ZmfyYiBqO8MmE6XWg1kCF2PW3LV6bJo527\r\nHLbetiySEtDtdYjPRSKOwMmgQYFwSw5pJsFc0PvZZByqYHTODhtb4UP1LKqi\r\nzwgOucgc/ZsH3PORfdxeQ+TayoEvCUPqq4MkCQWufZvmq4lbC8+Ku9twlhEN\r\nNqXRfJgIsLet/jNx+kyuoABcwVGyja/iISpxOCOjmRfaLuwFqtG8Mz20q6fW\r\nf3793z26fWE6apR8pyGKCD9RFrU9+tfbauZtwNmDteMCIfBWwh61qiIS+fK5\r\nwfCdDDSQy+VTJNgv8t0nDpt1YNpHaZO11M8qjJ63HoRqyZybEU7Q7U+CGgvy\r\nGXtx/HQqSF6UBHT9Or+zytDa/16P3oav8pxxOjsR6YXANyqaTYwxyTxJDytm\r\n6BkI10blMAEXJugB3VmGenpLLlxT00hEIUZ3culVI1hlj9YLy4t5UZJKKGh1\r\n/nK+i4V1LJfMXg/Btd9++5MWX+NgvwaZ+FlB/IzDbCzXJoN+ZxmD2rc3f4kg\r\nkLVENEKTuiLeeciXiSwxyW9I2TRYSkasSuk=\r\n=6MRQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-11-22--14-54_1669128923725_0.7444627791678773"},"_hasShrinkwrap":false},"0.0.0-2022-11-24--17-44":{"name":"@aspecto/opentelemetry","version":"0.0.0-2022-11-24--17-44","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.138","@aspecto/opentelemetry-config":"^0.0.0-2022-11-24--17-44","@aspecto/opentelemetry-diag":"^0.0.0-2022-11-24--17-44","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2022-11-24--17-44","@aspecto/opentelemetry-sampler":"^0.0.0-2022-11-24--17-44","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.3.0","@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/core":"1.8.0","@opentelemetry/exporter-trace-otlp-http":"0.34.0","@opentelemetry/exporter-trace-otlp-proto":"0.34.0","@opentelemetry/exporter-zipkin":"1.8.0","@opentelemetry/instrumentation":"0.34.0","@opentelemetry/instrumentation-amqplib":"0.32.0","@opentelemetry/instrumentation-aws-lambda":"0.34.0","@opentelemetry/instrumentation-aws-sdk":"0.10.0","@opentelemetry/instrumentation-bunyan":"0.31.0","@opentelemetry/instrumentation-http":"0.34.0","@opentelemetry/instrumentation-ioredis":"0.33.0","@opentelemetry/instrumentation-lru-memoizer":"0.32.0","@opentelemetry/instrumentation-mongoose":"0.32.0","@opentelemetry/instrumentation-mysql":"0.32.0","@opentelemetry/instrumentation-mysql2":"0.33.0","@opentelemetry/instrumentation-nestjs-core":"0.32.0","@opentelemetry/instrumentation-pg":"0.33.0","@opentelemetry/instrumentation-pino":"0.33.0","@opentelemetry/instrumentation-redis":"0.34.0","@opentelemetry/instrumentation-redis-4":"0.34.0","@opentelemetry/instrumentation-tedious":"0.5.0","@opentelemetry/instrumentation-winston":"0.31.0","@opentelemetry/propagation-utils":"0.29.1","@opentelemetry/propagator-b3":"1.8.0","@opentelemetry/resources":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@opentelemetry/semantic-conventions":"1.8.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.34.0","opentelemetry-instrumentation-express":"0.34.0","opentelemetry-instrumentation-kafkajs":"0.34.0","opentelemetry-instrumentation-neo4j":"0.34.0","opentelemetry-instrumentation-node-cache":"0.34.0","opentelemetry-instrumentation-sequelize":"0.34.0","opentelemetry-instrumentation-socket.io":"0.34.0","opentelemetry-instrumentation-typeorm":"0.34.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"64a888ffb3eaf235d129b465586da23fd82d40ae","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2022-11-24--17-44","_nodeVersion":"16.18.1","_npmVersion":"lerna/3.22.1/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-PFGEiMu8wzhTMl+MrIyyPNo+ukPhua0NDFRaTQvsZryy5b/L0l9oO5fx79SfcAUmQP7G1saZ1iansAKVM+xNqg==","shasum":"63600b4f2347a8e135d3c1ed82625a134fd75260","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2022-11-24--17-44.tgz","fileCount":183,"unpackedSize":454370,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFU8xOPM6VIN3tkFrAIEyX1NBLoDt9BEIz7LKtLeYJEPAiA0ULdVysxDpXiv1jiFneXSKuHdDmCex/SbO6xm4vRGwA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf62aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnTQ/+N+oQDpNmo/nA4xk9Ovl3Vr9qbD1RA6I5hpyRB1Ntwxv8cIMc\r\n1+aElCSS5VqsKq6kEMhCHLzN19fJ5b1FoZMyCBr38TMXrJ9km79lkW+ollGk\r\ny/rWOHuIkyzlvIOZDKjBceB4asLniJxEGKzMaaC7Cn9RW3CfMbUNlLXZtx99\r\no9CMyCd3ML8hWSQ9LPaPbgJ7NqULO1uoBR41qeuDB85DOHo8NHqNcdhbmCJn\r\n4qFMGUNdRGZQE7j5jcq7ENpsRW22MosfZEvg4v1bPpj6oMQF8tbUSqy0Ew6R\r\ndfBxYaOdUvfF4HztD5VTsSlXjGRMJjRsCbxtJFEpSwMiBt1+WkjhCOyMzORn\r\nU2x9I0lRqpPa3TbNKcqiAYk6WGCfPcda+uPvFNRrFlPhPLIv5dM5VGz90e9R\r\nLtO08LD2zE7TaZ9vPlELCx5KG+fuwnIwyP30EBoQPdei9/ztGkgOyZMsbR5+\r\n0MsLJ/KmAo5PIwGMp1OQe+mqYTS8Ble2Oxi+foRxKbjDQh2WyAoC+CxQYjc8\r\nfHlCHsmagGlHxfHufV1lYK4+CJnkaYE6GtToE7amnHFYZtO/LtlMrjtdJlEc\r\nTL/jRU5X+irQIZbcFl5dvVvs/bCcu5hPmXiqDC5zEVFmlg615fiSUc6PG5R4\r\ndfJ46Z2W1pvvVM+TRUsDrqHW/b9ByBqrROY=\r\n=EGXO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2022-11-24--17-44_1669311898686_0.16293621216014365"},"_hasShrinkwrap":false},"0.0.139":{"name":"@aspecto/opentelemetry","version":"0.0.139","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.139","@aspecto/opentelemetry-config":"^0.0.139","@aspecto/opentelemetry-diag":"^0.0.139","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.139","@aspecto/opentelemetry-sampler":"^0.0.139","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.3.0","@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/core":"1.8.0","@opentelemetry/exporter-trace-otlp-http":"0.34.0","@opentelemetry/exporter-trace-otlp-proto":"0.34.0","@opentelemetry/exporter-zipkin":"1.8.0","@opentelemetry/instrumentation":"0.34.0","@opentelemetry/instrumentation-amqplib":"0.32.0","@opentelemetry/instrumentation-aws-lambda":"0.34.0","@opentelemetry/instrumentation-aws-sdk":"0.10.0","@opentelemetry/instrumentation-bunyan":"0.31.0","@opentelemetry/instrumentation-http":"0.34.0","@opentelemetry/instrumentation-ioredis":"0.33.0","@opentelemetry/instrumentation-lru-memoizer":"0.32.0","@opentelemetry/instrumentation-mongoose":"0.32.0","@opentelemetry/instrumentation-mysql":"0.32.0","@opentelemetry/instrumentation-mysql2":"0.33.0","@opentelemetry/instrumentation-nestjs-core":"0.32.0","@opentelemetry/instrumentation-pg":"0.33.0","@opentelemetry/instrumentation-pino":"0.33.0","@opentelemetry/instrumentation-redis":"0.34.0","@opentelemetry/instrumentation-redis-4":"0.34.0","@opentelemetry/instrumentation-tedious":"0.5.0","@opentelemetry/instrumentation-winston":"0.31.0","@opentelemetry/propagation-utils":"0.29.1","@opentelemetry/propagator-b3":"1.8.0","@opentelemetry/resources":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@opentelemetry/semantic-conventions":"1.8.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.34.0","opentelemetry-instrumentation-express":"0.34.0","opentelemetry-instrumentation-kafkajs":"0.34.0","opentelemetry-instrumentation-neo4j":"0.34.0","opentelemetry-instrumentation-node-cache":"0.34.0","opentelemetry-instrumentation-sequelize":"0.34.0","opentelemetry-instrumentation-socket.io":"0.34.0","opentelemetry-instrumentation-typeorm":"0.34.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"80be0557889856952c000339d61b65415fdeb4c0","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.139","_nodeVersion":"16.18.1","_npmVersion":"lerna/3.22.1/node@v16.18.1+x64 (linux)","dist":{"integrity":"sha512-ex+nLZr5xKPvGEziHZfYliC0LfnMnfwarD/MB18p5hccsyxwDEQ7mRkAbxR/juSmZM8k6yW0AyCxIPvJVC6wBg==","shasum":"b1a3f59370ee56060cf3741b4927d5aae8384cdc","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.139.tgz","fileCount":183,"unpackedSize":454581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwCPuV3qcq2AelbDSe9kx+rjH+ErcIzg8uy63YWEqhcQIgbOh/O5egeNatDyzd9wOxE9QIbmo3wHoFhCEAnA+p/U0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhvCxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRmg/9FtCvF8DWkYrrv2KsU0k+FGwWE+7SeaajHCCcfayODa8Ruf6Q\r\nJ8eXg7o1nvq6pow621GOeR1raodN6n8o2DsbJq5gl0zj1FhZ0C3CWQK39BVv\r\nyrxFc+n2643706kvkIBZEfOcfv+MfhaEce6CvDr8AnmM7wBu1PZDKk9hDXKR\r\nmQIzzKs5gSyYCrBItMgel7yk8lJN+HRjKlIZMiHTuVzRMsikfGNL9x1AYEoI\r\nAitSwekBC1XpTHqR00YIJXQkXln48efitGU+fl6xJUwc+h9cy1e0rOQooNZj\r\nuOLg8AE9/EFsPe1OFDorRSlld899Ad3oe4beXWkDj1oU7aaAmJgdeZoFD7Qz\r\nk7HFsjA9dj+06p+uN8IcOr9jqKx9kNN7+5VCJpdpfgOAO3MaJblTSZnOvpOG\r\nhG/e1opiyYQua264os3ytB9mfof653vuoQshb78aFnm2k4rKWiK9U3/3F5T/\r\nxYctlo6w+A+Me2YDkLkdQpJDjQkjOhiPzrFZz6pnLBp0oYzQFmNUdFxd2n6g\r\nnvwWsBj1g5VAI01epggR8U2cb6m5wUG3bCkhyCj3rkoWw5xQE9hwYE2+f2kf\r\nRpX+rKnDJYvbOpRly2PKwXRtlODNrxvFqp5dI7KzFpzYQbNLuWmCkTusmPfr\r\nSo74v75Z5iZv31iwld2D5c0FjjQgCFY8ukM=\r\n=F9Ay\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.139_1669787825558_0.24441697579001298"},"_hasShrinkwrap":false},"0.0.0-2023-02-09--09-14":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-02-09--09-14","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.139","@aspecto/opentelemetry-config":"^0.0.139","@aspecto/opentelemetry-diag":"^0.0.139","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.139","@aspecto/opentelemetry-sampler":"^0.0.0-2023-02-09--09-14","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.3.0","@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/core":"1.8.0","@opentelemetry/exporter-trace-otlp-http":"0.34.0","@opentelemetry/exporter-trace-otlp-proto":"0.34.0","@opentelemetry/exporter-zipkin":"1.8.0","@opentelemetry/instrumentation":"0.34.0","@opentelemetry/instrumentation-amqplib":"0.32.0","@opentelemetry/instrumentation-aws-lambda":"0.34.0","@opentelemetry/instrumentation-aws-sdk":"0.10.0","@opentelemetry/instrumentation-bunyan":"0.31.0","@opentelemetry/instrumentation-http":"0.34.0","@opentelemetry/instrumentation-ioredis":"0.33.0","@opentelemetry/instrumentation-lru-memoizer":"0.32.0","@opentelemetry/instrumentation-mongoose":"0.32.0","@opentelemetry/instrumentation-mysql":"0.32.0","@opentelemetry/instrumentation-mysql2":"0.33.0","@opentelemetry/instrumentation-nestjs-core":"0.32.0","@opentelemetry/instrumentation-pg":"0.33.0","@opentelemetry/instrumentation-pino":"0.33.0","@opentelemetry/instrumentation-redis":"0.34.0","@opentelemetry/instrumentation-redis-4":"0.34.0","@opentelemetry/instrumentation-tedious":"0.5.0","@opentelemetry/instrumentation-winston":"0.31.0","@opentelemetry/propagation-utils":"0.29.1","@opentelemetry/propagator-b3":"1.8.0","@opentelemetry/resources":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@opentelemetry/semantic-conventions":"1.8.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.34.0","opentelemetry-instrumentation-express":"0.34.0","opentelemetry-instrumentation-kafkajs":"0.34.0","opentelemetry-instrumentation-neo4j":"0.34.0","opentelemetry-instrumentation-node-cache":"0.34.0","opentelemetry-instrumentation-sequelize":"0.34.0","opentelemetry-instrumentation-socket.io":"0.34.0","opentelemetry-instrumentation-typeorm":"0.34.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"0d31a781b147b5ca23ede3e8cf277f49cf3ca878","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-02-09--09-14","_nodeVersion":"16.19.0","_npmVersion":"lerna/3.22.1/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-YpSVOCvTvFm3PDWywdRTyEcOsPYVu/XoJCoYQ6S72fqMBM+iZtD42QFj5qry3YFQL3cHDH/4bAyMRTNxNNisSQ==","shasum":"3bad9dbf26b9c76a502e2e06d7dde5a77505fe87","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-02-09--09-14.tgz","fileCount":183,"unpackedSize":454895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs/OImOYR++FHzvt29yzotVZ5cxveGpo71VQ8EabbBewIhAK4JwbfXnykmoCK6c1ofwagSYlr/t0QXplIL3KbhC+TB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5LmZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqbtw//Uy66frZqvNRmuInwSKd81Ocbk7/lgb0lRWAQuGCqx2l717g5\r\n8+Z59xI0QPmtYmbOBupdw2+L4pVJL4Mz9ejgrtuSN0KgAH0cEzXYLy2mMahd\r\nru4IjVCdDAYgAkKEl43qZo1osL2cURSMbJ1MjT9U9d3kThRXVo3H/g1H25NO\r\njKKDnYWyEkJGs690Zf+xNpL4UmQ4BGRD7qQ0lpfri3WHutF41kWKQRVXQOmy\r\nYE86hfK36UhdXKqk6BNkq07ivHerD4+R0n/iWMq8ucP/pnvPyiA0uHV2nDtk\r\n9LuJUisESqdImG1Wn/ImFxuCwsXQHFlC7NsY/uMZGtZITnGObRXGXaPvpVqh\r\nKgRapIgL1sq0tgHnV8Gw4WdjlUi0kYJfIqkmXfWRyN2RBZ08cTnJK+tGi7xo\r\nsaxztg4THR26zMFBWwh7DiCoIRo3H+yNuHRgTvppzU/C3SF0DrIU8Nl1pZ+z\r\n1NtGCwl+8uPLVIsWGcRlLi4nq/TUeotbFuMKBQu1slToWbZfaryaCp30OhX1\r\n8hxOkwU6CShbGn8gCWOMzg9/kPO9nuC3fXdY44fwwrJypJu6nyFVk8Go08ju\r\n08zVqjedTmecLgzruT3o2E0jw0YeJkIHxnki5Tw9maIY7urFSNPujJQpgFVe\r\nw1TIbo9LoxFrVIzNDBR/CIaJJxolmN/ZTiE=\r\n=bmoI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-02-09--09-14_1675934105431_0.07502918262554492"},"_hasShrinkwrap":false},"0.0.0-2023-02-28--15-21":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-02-28--15-21","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.139","@aspecto/opentelemetry-config":"^0.0.139","@aspecto/opentelemetry-diag":"^0.0.139","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.139","@aspecto/opentelemetry-sampler":"^0.0.0-2023-02-28--15-21","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.3.0","@opentelemetry/context-async-hooks":"1.8.0","@opentelemetry/core":"1.8.0","@opentelemetry/exporter-trace-otlp-http":"0.34.0","@opentelemetry/exporter-trace-otlp-proto":"0.34.0","@opentelemetry/exporter-zipkin":"1.8.0","@opentelemetry/instrumentation":"0.34.0","@opentelemetry/instrumentation-amqplib":"0.32.0","@opentelemetry/instrumentation-aws-lambda":"0.34.0","@opentelemetry/instrumentation-aws-sdk":"0.10.0","@opentelemetry/instrumentation-bunyan":"0.31.0","@opentelemetry/instrumentation-http":"0.34.0","@opentelemetry/instrumentation-ioredis":"0.33.0","@opentelemetry/instrumentation-lru-memoizer":"0.32.0","@opentelemetry/instrumentation-mongoose":"0.32.0","@opentelemetry/instrumentation-mysql":"0.32.0","@opentelemetry/instrumentation-mysql2":"0.33.0","@opentelemetry/instrumentation-nestjs-core":"0.32.0","@opentelemetry/instrumentation-pg":"0.33.0","@opentelemetry/instrumentation-pino":"0.33.0","@opentelemetry/instrumentation-redis":"0.34.0","@opentelemetry/instrumentation-redis-4":"0.34.0","@opentelemetry/instrumentation-tedious":"0.5.0","@opentelemetry/instrumentation-winston":"0.31.0","@opentelemetry/propagation-utils":"0.29.1","@opentelemetry/propagator-b3":"1.8.0","@opentelemetry/resources":"1.8.0","@opentelemetry/sdk-trace-base":"1.8.0","@opentelemetry/sdk-trace-node":"1.8.0","@opentelemetry/semantic-conventions":"1.8.0","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.34.0","opentelemetry-instrumentation-express":"0.34.0","opentelemetry-instrumentation-kafkajs":"0.34.0","opentelemetry-instrumentation-neo4j":"0.34.0","opentelemetry-instrumentation-node-cache":"0.34.0","opentelemetry-instrumentation-sequelize":"0.34.0","opentelemetry-instrumentation-socket.io":"0.34.0","opentelemetry-instrumentation-typeorm":"0.34.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"acc11e555e99ed6a823e32c292c65a9a2f0396a3","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-02-28--15-21","_nodeVersion":"18.14.2","_npmVersion":"lerna/3.22.1/node@v18.14.2+x64 (linux)","dist":{"integrity":"sha512-XvHcdUB/6SZm7D4Qrj6K0P/WL/TNy/EA9qQwFWFO5jqr08NwwTODi/VgFJXcGA3o0urO/Vv4srHmLEhNKiGTZA==","shasum":"22313de5a938ca838cf9f622a97dc164aaa6141f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-02-28--15-21.tgz","fileCount":183,"unpackedSize":454895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2ljKbE0RrvHaVeFrASFCFooYG3jzgsKFuY9Nid4dZcgIgQWWb8bt1bnylIYQgVG6kBEhIShlVy2pYwBSgKJTi3Lg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/hv7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph5w//cTFS7SU6aIYUigggPVmx0x5ScqXrpSwol1cqvvhqMbQ2i3tL\r\nXXjufJ94Lj3VDd4qtRw0eqrX4iBB25cq60VQLkMO3W44NImtvaU4+sKYGzPQ\r\n2knSlYrAjYhQp2Pa+Gm4Wr2rqGWdgsXmVmALKXeEf3dI1Hj64nGi2irPlLbh\r\nopaDoSLSER5RORHi4Eo2pc0hWi4M3bWCDV8b+xmvK8xS14AIAGxU6ALNK1nt\r\nr2WSrP01m7CjlH9BT2tYXXnI0ptIq/3VXyCrx8OMkna/GBf+OfX/6C5NEzfq\r\nUhayJyAK2+08rFptvx+F0iVmuMKOijTw9ie2nsV2DWnTqkf+jllPeRWAcvvC\r\nxdh++TUwMILBk4B8e7ZOCo0TDZ41dui48ZYZfpQFWOvAAk68sINwbuJfKPln\r\nN/eucB/2oRFKsrQF8Uxm7FfrQjjrJ/yDEtHs6OhAvOYdmNfN9fqMHU3+JcBw\r\nQyhe/sEg8U/WvWIZXS2ezDmp6ypYF7+LSW9x5xQiSGbwALWklXQZzJKXuSgo\r\nvKPtDugcZGyG9dalYr3j8jTaFbmCeZBWQRi7Xx9cq7IGgQbfMCowEj5HV7TC\r\nCVb3QYrILIyzqsTyduZn5MBKyCl6W9aflZqjb578Vscpcs1OZsGgWP6F7q4Q\r\nliG644Vmyw9JpJJiUZLCu5z8qSfpkk9M/y8=\r\n=t9cN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-02-28--15-21_1677597691705_0.11977382549922644"},"_hasShrinkwrap":false},"0.0.0-2023-03-01--13-22":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-03-01--13-22","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.139","@aspecto/opentelemetry-config":"^0.0.139","@aspecto/opentelemetry-diag":"^0.0.0-2023-03-01--13-22","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2023-03-01--13-22","@aspecto/opentelemetry-sampler":"^0.0.0-2023-03-01--13-22","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.9.1","@opentelemetry/core":"1.9.1","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.9.1","@opentelemetry/instrumentation":"0.35.1","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.9.1","@opentelemetry/resources":"1.9.1","@opentelemetry/sdk-trace-base":"1.9.1","@opentelemetry/sdk-trace-node":"1.9.1","@opentelemetry/semantic-conventions":"1.9.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.35.0","opentelemetry-instrumentation-express":"0.35.0","opentelemetry-instrumentation-kafkajs":"0.35.0","opentelemetry-instrumentation-neo4j":"0.35.0","opentelemetry-instrumentation-node-cache":"0.35.0","opentelemetry-instrumentation-sequelize":"0.35.0","opentelemetry-instrumentation-typeorm":"0.35.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e0803f2e7725c6f434009675924859293e8e2a96","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-03-01--13-22","_nodeVersion":"18.14.1","_npmVersion":"lerna/3.22.1/node@v18.14.1+x64 (linux)","dist":{"integrity":"sha512-VeM4vQfS6HeySFkyGT7J/BfLKEoYYSg0e7h0pInCJt8Td68O6p9liBwhdm2vabQHQBtqSuY1Uc2tqZowICgpIw==","shasum":"a09dd40dc3578219cb4e4f2e3163fd97ea80f30f","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-03-01--13-22.tgz","fileCount":183,"unpackedSize":454904,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6gxibr97hUpRcWDMX7THoo0uAfJwEtxqtbYOUFqEZUAiEA1xVqr73Gzg9JW2UxUielHjr+01NoH7dyEZ5tQRUu4eM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/1G4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3lA//d6l0vVZrfMXMm47CJM4BkJOhMuR0a0UrpwlJ9e7pl0n4lblF\r\nxO0AWLOOIbQhygQOs6VhDqbkfFupDRHT8hGmJ2vuCCKf7WNR6R+K1XjsTerB\r\nsq1LSN4EP1lYJrMCcSax0bxP3OlFV7D6V08DkaZC2BcYZ6w6FqEsV7HNWZsx\r\ndR+AGn5pcS/wKxl7s3AAdgZi0rSRo34zh8Fq7pSh9Q2yZUXWIk34/5jjTF9U\r\nmfQanxkN1JAeV3GvUVmAAcJste/9x+zTi4A27ji49NqCvmHsWIiZUMABzDs+\r\nCqzdlPeIarPOiLtcMnbCUynnQNYQhUWRq/lcho8zVmLYe7vvlTg89hKWrrRy\r\niGX3FA+P/+hm1uTWsuKhL6vFufuOjxaJhaOaIyeWJtxZhY7rzhkX0cO8o5JT\r\nB8NONwM/7484ym2IRKkJmToeoD5plTHC4XmULP8wzhwDM1pNENrHA4rixzto\r\nZMHylm9XLnwM4iRxrt1EWjdtJWkySZlCO7VCn301lerANXI5FK7isEkCJW7p\r\nt887sT6d0Fy3uGqBohy1JwcsXIuIjgR3/Bay4NgHX8qbzUZ9XoTPkMc7yQuz\r\nGs9Q7RchrteLatZ0Plu3smHAks3wf8fXQF8SqPVjrym50qbcnCcNVWhqnt+m\r\n0u+5ZJcrSgqKqECGs2di6qNN/k5LvbHhcDA=\r\n=yAEB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-03-01--13-22_1677676984616_0.3285927556638397"},"_hasShrinkwrap":false},"0.0.140":{"name":"@aspecto/opentelemetry","version":"0.0.140","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.140","@aspecto/opentelemetry-config":"^0.0.140","@aspecto/opentelemetry-diag":"^0.0.140","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.140","@aspecto/opentelemetry-sampler":"^0.0.140","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.9.1","@opentelemetry/core":"1.9.1","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.9.1","@opentelemetry/instrumentation":"0.35.1","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.9.1","@opentelemetry/resources":"1.9.1","@opentelemetry/sdk-trace-base":"1.9.1","@opentelemetry/sdk-trace-node":"1.9.1","@opentelemetry/semantic-conventions":"1.9.1","@types/aws-lambda":"^8.10.64","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.35.0","opentelemetry-instrumentation-express":"0.35.0","opentelemetry-instrumentation-kafkajs":"0.35.0","opentelemetry-instrumentation-neo4j":"0.35.0","opentelemetry-instrumentation-node-cache":"0.35.0","opentelemetry-instrumentation-sequelize":"0.35.0","opentelemetry-instrumentation-typeorm":"0.35.0","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"c9b383a63b72bd8ba8f707c71f1de474c01500a6","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.140","_nodeVersion":"18.14.2","_npmVersion":"lerna/3.22.1/node@v18.14.2+x64 (linux)","dist":{"integrity":"sha512-B/aABI/0K/wBfmABEo3RsnC7pQPx/KDRSDW/rI9bg+zwLGPB1NibH6Tc7OfqTuZXJJynS8JMypKeMwH2zXVHNg==","shasum":"3bfcc0d5564bebaa1b2967ee00d9398464d18418","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.140.tgz","fileCount":183,"unpackedSize":455142,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFt5E/8F9d1XqHSqcfmS4UTUrMWK7CGt2RBivhyl3wehAiEA1020jDMSnaybye4NL3QJs1WvkX9VqxV30zIj2O5TlQg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/2gqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozUw//cbg3KpU6jMpjWOi2ffMJSwGSEwLDaBvmRDmGXAHeHKXKTITr\r\nWw72BVpIQqaXylIaaBZYooVmtbzwUveEMyArHFgyHeWtop0772krBZV7EZCD\r\nS+8USSIv+rYMySOUZxsfrYnWqelTxEwYVGQOE+zoLYHJjEzaISCOFbbTNmig\r\n4NwtMYBA2qwLatdKWHquGaspcTBOaeqo9Cm37dRxvhr7yXIvhlez7UibuKe8\r\n7D43lIoVlDzFwt0FsvvL1D1+el62ZNzkDJGWVHlTtNJmFU/3YJZIbWBs9eC7\r\nwZM7pcsXvBK2MfriDGqOkWCF7DDEuwwEIRkzXqExWSs0V6QzK1ARrrFbSH3/\r\n6iiVGpcg1oLbE6AQz9neREPNL9jXsdmd3NqoCjQe2S5vDw49w5TL6ptAB1k8\r\nlgxkQdi+wwQiktFwfKkmpsYE1E5VOcG6dP6LFgH+MOkY0RiV0Me55btWsUDO\r\nmZpxdER7//RZplREZnCo6FdHO3TVARewyhsNQpeX/pAnhbJ7g44VCPYwp0wR\r\npPi5It0wLqRgHWIkhhIKkC81WUpAIAOoeknVSHMa8Qr1BgFW4sbItfQ+pLEA\r\nNdnV1wXZKruRKTgycv8X9sT9GIkCFr79I/O9gnV8vq9xmnWzJdf6cTv+7/Ou\r\nhUGIwZzIuPcRW3eTXGvzuSkfKZoSWNyzCyU=\r\n=4IxV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.140_1677682730221_0.6377857958984572"},"_hasShrinkwrap":false},"0.0.0-2023-07-27--11-15":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-07-27--11-15","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.140","@aspecto/opentelemetry-config":"^0.0.140","@aspecto/opentelemetry-diag":"^0.0.0-2023-07-27--11-15","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2023-07-27--11-15","@aspecto/opentelemetry-sampler":"^0.0.0-2023-07-27--11-15","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/core":"1.13.0","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.13.0","@opentelemetry/instrumentation":"0.41.0","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.13.0","@opentelemetry/resources":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@opentelemetry/semantic-conventions":"1.13.0","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-express":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-kafkajs":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-neo4j":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-node-cache":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-sequelize":"0.0.0-2023-07-26--14-48","opentelemetry-instrumentation-typeorm":"0.0.0-2023-07-26--14-48","opentelemetry-propagator-selective":"0.0.0-2023-07-26--14-48","opentelemetry-resource-detector-deployment":"0.0.0-2023-07-26--14-48","opentelemetry-resource-detector-git":"0.0.0-2023-07-26--14-48","opentelemetry-resource-detector-service":"0.0.0-2023-07-26--14-48","opentelemetry-resource-detector-sync-api":"0.0.0-2023-07-26--14-48","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"d4f271bc1921afafab0a04b30a9e2d76d3fe5d5c","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-07-27--11-15","_nodeVersion":"18.17.0","_npmVersion":"lerna/3.22.1/node@v18.17.0+x64 (linux)","dist":{"integrity":"sha512-3HvdAj6QdJGtmQOvDVch+o/otNftlD3JyqlB/BPF4+Eq4BjWGT+QIHiwd69U25L16JrTJcffGHMABZzunbbbfA==","shasum":"b88634ae21320ce936c5c0998b765ce2d87c1c78","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-07-27--11-15.tgz","fileCount":183,"unpackedSize":455470,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQw+H1GHW1TLSeRnlL+iZo7KkqqWDV3N1XbzwMY6W/pQIhAM7BVt7CKKPiUSShbjqdit2CwoGPjtKJt0THOeoOpUDJ"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-07-27--11-15_1690456533475_0.9127686712648411"},"_hasShrinkwrap":false},"0.0.0-2023-07-30--08-42":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-07-30--08-42","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.140","@aspecto/opentelemetry-config":"^0.0.140","@aspecto/opentelemetry-diag":"^0.0.0-2023-07-30--08-42","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2023-07-30--08-42","@aspecto/opentelemetry-sampler":"^0.0.0-2023-07-30--08-42","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/core":"1.13.0","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.13.0","@opentelemetry/instrumentation":"0.41.0","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.13.0","@opentelemetry/resources":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@opentelemetry/semantic-conventions":"1.13.0","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.39.1","opentelemetry-instrumentation-express":"0.39.1","opentelemetry-instrumentation-kafkajs":"0.39.1","opentelemetry-instrumentation-neo4j":"0.39.1","opentelemetry-instrumentation-node-cache":"0.39.1","opentelemetry-instrumentation-sequelize":"0.39.1","opentelemetry-instrumentation-typeorm":"0.39.1","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5a4e49cd236790428c9bad614a3cfe601de78c9c","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-07-30--08-42","_nodeVersion":"18.17.0","_npmVersion":"lerna/3.22.1/node@v18.17.0+x64 (linux)","dist":{"integrity":"sha512-hbNr8lkNJpEN+ltbDVvFBpjUD3uKlksCSh5jZE5rsVlioDHv4nVJoJrqyUU916uvMidrgboz7f5HPqJTh2tHiw==","shasum":"f7fa407152e573756c8b7cd89b33c3274f7a4b37","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-07-30--08-42.tgz","fileCount":183,"unpackedSize":455266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqA3SD51kQCsrA/6vOiBugmGvlp4ZhsByBKcKRJOg36AIgWH30yqkNYQLTdGMHg52CcymbpKF9zyIhYw5fQwncVO4="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-07-30--08-42_1690706578021_0.30685591128670353"},"_hasShrinkwrap":false},"0.0.142":{"name":"@aspecto/opentelemetry","version":"0.0.142","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.142","@aspecto/opentelemetry-config":"^0.0.142","@aspecto/opentelemetry-diag":"^0.0.142","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.142","@aspecto/opentelemetry-sampler":"^0.0.142","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/core":"1.13.0","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.13.0","@opentelemetry/instrumentation":"0.41.0","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.13.0","@opentelemetry/resources":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@opentelemetry/semantic-conventions":"1.13.0","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.39.1","opentelemetry-instrumentation-express":"0.39.1","opentelemetry-instrumentation-kafkajs":"0.39.1","opentelemetry-instrumentation-neo4j":"0.39.1","opentelemetry-instrumentation-node-cache":"0.39.1","opentelemetry-instrumentation-sequelize":"0.39.1","opentelemetry-instrumentation-typeorm":"0.39.1","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"e23d58a708539804a19909e5106929bd723b5496","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.142","_nodeVersion":"18.17.1","_npmVersion":"lerna/3.22.1/node@v18.17.1+x64 (linux)","dist":{"integrity":"sha512-ZpXiLCW+AuBLnZHKl/P41HHD0VS3IiQ8o+hcUueabIU3qiFntug0uItp9DfTG/cSGRVcA3UOFjuJv3hWnJVeGw==","shasum":"8db7a5aa7692cd1ab3eef67a7099f1b12af01a0a","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.142.tgz","fileCount":183,"unpackedSize":455510,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP1fsZB1mREDM87XvVTFE3nYiJ1W3MivUwoHZhVW2nvwIhAKiByHYjT+zgRmeaD3gvgziOdZ0aZYZ/BN6IJMCoiLMu"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.142_1695290311932_0.7823388081745879"},"_hasShrinkwrap":false},"0.0.0-2023-10-17--11-48":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-10-17--11-48","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.142","@aspecto/opentelemetry-config":"^0.0.0-2023-10-17--11-48","@aspecto/opentelemetry-diag":"^0.0.0-2023-10-17--11-48","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.142","@aspecto/opentelemetry-sampler":"^0.0.0-2023-10-17--11-48","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.6.0","@opentelemetry/context-async-hooks":"1.17.1","@opentelemetry/core":"1.17.1","@opentelemetry/exporter-trace-otlp-http":"0.44.0","@opentelemetry/exporter-trace-otlp-proto":"0.44.0","@opentelemetry/exporter-zipkin":"1.17.1","@opentelemetry/instrumentation":"0.44.0","@opentelemetry/instrumentation-amqplib":"0.33.2","@opentelemetry/instrumentation-aws-lambda":"0.37.1","@opentelemetry/instrumentation-aws-sdk":"0.36.1","@opentelemetry/instrumentation-bunyan":"0.32.2","@opentelemetry/instrumentation-http":"0.44.0","@opentelemetry/instrumentation-ioredis":"0.35.2","@opentelemetry/instrumentation-lru-memoizer":"0.33.2","@opentelemetry/instrumentation-mongoose":"0.33.2","@opentelemetry/instrumentation-mysql":"0.34.2","@opentelemetry/instrumentation-mysql2":"0.34.2","@opentelemetry/instrumentation-nestjs-core":"0.33.2","@opentelemetry/instrumentation-pg":"0.36.2","@opentelemetry/instrumentation-pino":"0.34.2","@opentelemetry/instrumentation-redis":"0.35.2","@opentelemetry/instrumentation-redis-4":"0.35.3","@opentelemetry/instrumentation-socket.io":"0.34.2","@opentelemetry/instrumentation-tedious":"0.6.2","@opentelemetry/instrumentation-winston":"0.32.2","@opentelemetry/propagation-utils":"0.30.2","@opentelemetry/propagator-b3":"1.17.1","@opentelemetry/resources":"1.17.1","@opentelemetry/sdk-trace-base":"1.17.1","@opentelemetry/sdk-trace-node":"1.17.1","@opentelemetry/semantic-conventions":"1.17.1","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.39.1","opentelemetry-instrumentation-express":"0.39.1","opentelemetry-instrumentation-kafkajs":"0.39.1","opentelemetry-instrumentation-neo4j":"0.39.1","opentelemetry-instrumentation-node-cache":"0.39.1","opentelemetry-instrumentation-sequelize":"0.39.1","opentelemetry-instrumentation-typeorm":"0.39.1","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5940e89221faf5791190e8bb55902b31dac3ac6a","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-10-17--11-48","_nodeVersion":"18.18.0","_npmVersion":"lerna/3.22.1/node@v18.18.0+x64 (linux)","dist":{"integrity":"sha512-4Qu/0osmC+NzFJR2/VfHdFCqXH3ccdoJqaZqxattw0ayHwlNU2dh+U4DG1l1MQW6GXnLuyxKv/ywdmDBeuyA1w==","shasum":"18b2c18c1a5756f65d78bbaf303af812c827ae15","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-10-17--11-48.tgz","fileCount":183,"unpackedSize":455624,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhAG1WgmLoi1BA8fH0GYYww3kgajj8JUmSF1eXAlWuSAIgKpn9vV0X+U2aCoN96qarSzlnfoW/ohj8u/LABqrxah0="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-10-17--11-48_1697543363299_0.2714572149980423"},"_hasShrinkwrap":false},"0.0.0-2023-10-17--12-07":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-10-17--12-07","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.142","@aspecto/opentelemetry-config":"^0.0.142","@aspecto/opentelemetry-diag":"^0.0.142","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.142","@aspecto/opentelemetry-sampler":"^0.0.142","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/core":"1.13.0","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.13.0","@opentelemetry/instrumentation":"0.41.2","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.13.0","@opentelemetry/resources":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@opentelemetry/semantic-conventions":"1.13.0","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.39.1","opentelemetry-instrumentation-express":"0.39.1","opentelemetry-instrumentation-kafkajs":"0.39.1","opentelemetry-instrumentation-neo4j":"0.39.1","opentelemetry-instrumentation-node-cache":"0.39.1","opentelemetry-instrumentation-sequelize":"0.39.1","opentelemetry-instrumentation-typeorm":"0.39.1","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5b45fc42c8207339e88e06c71de64995525e47d4","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-10-17--12-07","_nodeVersion":"18.18.0","_npmVersion":"lerna/3.22.1/node@v18.18.0+x64 (linux)","dist":{"integrity":"sha512-PhJOGQVuWmBXMpV/HiBONzeVVTTykAWM0cy4RHPH30oIorz9SWYIiFpvHVtrSHTMnH5n+FOr4NP6BjrNJ40z1w==","shasum":"fd645c1ffef1a77793f88f1e40b79050e0ea7fe0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-10-17--12-07.tgz","fileCount":183,"unpackedSize":455576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDu9QJDv0L+WchS1mgsGeBLloNrNNHfV/sbxAzr48qbaAIhAOy1OKQkPp5wFt45Y1+2ifr6+sR4hxaYkc2swg5wGbKE"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-10-17--12-07_1697544437734_0.3873994946652983"},"_hasShrinkwrap":false},"0.0.0-2023-10-17--12-24":{"name":"@aspecto/opentelemetry","version":"0.0.0-2023-10-17--12-24","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.142","@aspecto/opentelemetry-config":"^0.0.142","@aspecto/opentelemetry-diag":"^0.0.142","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.142","@aspecto/opentelemetry-sampler":"^0.0.142","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.4.0","@opentelemetry/context-async-hooks":"1.13.0","@opentelemetry/core":"1.13.0","@opentelemetry/exporter-trace-otlp-http":"0.35.1","@opentelemetry/exporter-trace-otlp-proto":"0.35.1","@opentelemetry/exporter-zipkin":"1.13.0","@opentelemetry/instrumentation":"0.41.2","@opentelemetry/instrumentation-amqplib":"0.32.2","@opentelemetry/instrumentation-aws-lambda":"0.35.0","@opentelemetry/instrumentation-aws-sdk":"0.34.0","@opentelemetry/instrumentation-bunyan":"0.31.1","@opentelemetry/instrumentation-http":"0.35.1","@opentelemetry/instrumentation-ioredis":"0.33.2","@opentelemetry/instrumentation-lru-memoizer":"0.32.1","@opentelemetry/instrumentation-mongoose":"0.32.1","@opentelemetry/instrumentation-mysql":"0.33.0","@opentelemetry/instrumentation-mysql2":"0.33.1","@opentelemetry/instrumentation-nestjs-core":"0.32.2","@opentelemetry/instrumentation-pg":"0.34.1","@opentelemetry/instrumentation-pino":"0.33.1","@opentelemetry/instrumentation-redis":"0.34.2","@opentelemetry/instrumentation-redis-4":"0.34.2","@opentelemetry/instrumentation-socket.io":"0.33.1","@opentelemetry/instrumentation-tedious":"0.5.1","@opentelemetry/instrumentation-winston":"0.31.1","@opentelemetry/propagation-utils":"0.29.2","@opentelemetry/propagator-b3":"1.13.0","@opentelemetry/resources":"1.13.0","@opentelemetry/sdk-trace-base":"1.13.0","@opentelemetry/sdk-trace-node":"1.13.0","@opentelemetry/semantic-conventions":"1.13.0","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.39.1","opentelemetry-instrumentation-express":"0.39.1","opentelemetry-instrumentation-kafkajs":"0.39.1","opentelemetry-instrumentation-neo4j":"0.39.1","opentelemetry-instrumentation-node-cache":"0.39.1","opentelemetry-instrumentation-sequelize":"0.39.1","opentelemetry-instrumentation-typeorm":"0.39.1","opentelemetry-propagator-selective":"0.29.0","opentelemetry-resource-detector-deployment":"0.28.0","opentelemetry-resource-detector-git":"0.28.0","opentelemetry-resource-detector-service":"0.28.0","opentelemetry-resource-detector-sync-api":"0.28.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5b45fc42c8207339e88e06c71de64995525e47d4","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2023-10-17--12-24","_nodeVersion":"18.18.0","_npmVersion":"lerna/3.22.1/node@v18.18.0+x64 (linux)","dist":{"integrity":"sha512-lVcVyMYsxQbCfJy9oOWjRNrgoCokGNOzdYzyV8M+cUFMygF3yPKbDdDSOoIRDXn00XzUZXRQ2UjOPOzYNg8/Cw==","shasum":"501d11db9f8a645a868e94051cae8701cf8314e1","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2023-10-17--12-24.tgz","fileCount":183,"unpackedSize":455576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID2Ylcm60N+PGZIofvjpN8wShZFHQ1tGZiUmqyLOfyIcAiEAhwbrDXwaQWTRkvgkLOiuyWZQY2OAzNX61ptnmVrVM64="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2023-10-17--12-24_1697545510650_0.48035140754312633"},"_hasShrinkwrap":false},"0.1.0":{"name":"@aspecto/opentelemetry","version":"0.1.0","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.1.0","@aspecto/opentelemetry-config":"^0.1.0","@aspecto/opentelemetry-diag":"^0.1.0","@aspecto/opentelemetry-instrumentation-mongodb":"^0.1.0","@aspecto/opentelemetry-sampler":"^0.1.0","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"1.6.0","@opentelemetry/context-async-hooks":"1.17.1","@opentelemetry/core":"1.17.1","@opentelemetry/exporter-trace-otlp-http":"0.44.0","@opentelemetry/exporter-trace-otlp-proto":"0.44.0","@opentelemetry/exporter-zipkin":"1.17.1","@opentelemetry/instrumentation":"0.44.0","@opentelemetry/instrumentation-amqplib":"0.33.2","@opentelemetry/instrumentation-aws-lambda":"0.37.1","@opentelemetry/instrumentation-aws-sdk":"0.36.1","@opentelemetry/instrumentation-bunyan":"0.32.2","@opentelemetry/instrumentation-http":"0.44.0","@opentelemetry/instrumentation-ioredis":"0.35.2","@opentelemetry/instrumentation-lru-memoizer":"0.33.2","@opentelemetry/instrumentation-mongoose":"0.33.2","@opentelemetry/instrumentation-mysql":"0.34.2","@opentelemetry/instrumentation-mysql2":"0.34.2","@opentelemetry/instrumentation-nestjs-core":"0.33.2","@opentelemetry/instrumentation-pg":"0.36.2","@opentelemetry/instrumentation-pino":"0.34.2","@opentelemetry/instrumentation-redis":"0.35.2","@opentelemetry/instrumentation-redis-4":"0.35.3","@opentelemetry/instrumentation-socket.io":"0.34.2","@opentelemetry/instrumentation-tedious":"0.6.2","@opentelemetry/instrumentation-winston":"0.32.2","@opentelemetry/propagation-utils":"0.30.2","@opentelemetry/propagator-b3":"1.17.1","@opentelemetry/resources":"1.17.1","@opentelemetry/sdk-trace-base":"1.17.1","@opentelemetry/sdk-trace-node":"1.17.1","@opentelemetry/semantic-conventions":"1.17.1","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.40.0","opentelemetry-instrumentation-express":"0.40.0","opentelemetry-instrumentation-kafkajs":"0.40.0","opentelemetry-instrumentation-neo4j":"0.40.0","opentelemetry-instrumentation-node-cache":"0.40.0","opentelemetry-instrumentation-sequelize":"0.40.0","opentelemetry-instrumentation-typeorm":"0.40.0","opentelemetry-propagator-selective":"0.30.0","opentelemetry-resource-detector-deployment":"0.29.0","opentelemetry-resource-detector-git":"0.29.0","opentelemetry-resource-detector-service":"0.29.0","opentelemetry-resource-detector-sync-api":"0.29.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"14.14.5","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"4.4.4"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"5bdbf82ff4ce1fb617273491c50bb50349aef22c","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.1.0","_nodeVersion":"18.18.0","_npmVersion":"lerna/3.22.1/node@v18.18.0+x64 (linux)","dist":{"integrity":"sha512-FTr0genbpLtne35laX1uLWc/wgjsR+CQ2f0Mca6GpNklQB7RIIo/KIUd5r5PQT6LIeMCewfnzQgpYBemWHzo3Q==","shasum":"1288f8f0b9d627bad06bb897eb2241e89a4761d0","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.1.0.tgz","fileCount":183,"unpackedSize":455666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsCjGamSzXJ1e9l5UyWrCsbdcb9dkgHF1LF4vUYCBycAiBDKdmCF6SjcahPGEoUJX7NBpT4+ot+AYFTpqFSgkHDvQ=="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.1.0_1697550282589_0.19391087774363758"},"_hasShrinkwrap":false},"0.0.0-2024-05-16--14-39":{"name":"@aspecto/opentelemetry","version":"0.0.0-2024-05-16--14-39","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2024-05-16--14-39","@aspecto/opentelemetry-config":"^0.0.0-2024-05-16--14-39","@aspecto/opentelemetry-diag":"^0.0.0-2024-05-16--14-39","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2024-05-16--14-39","@aspecto/opentelemetry-sampler":"^0.0.0-2024-05-16--14-39","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"^1.8.0","@opentelemetry/context-async-hooks":"^1.24.1","@opentelemetry/core":"^1.24.1","@opentelemetry/exporter-trace-otlp-http":"0.44.0","@opentelemetry/exporter-trace-otlp-proto":"0.44.0","@opentelemetry/exporter-zipkin":"1.17.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/instrumentation-amqplib":"0.33.2","@opentelemetry/instrumentation-aws-lambda":"0.37.1","@opentelemetry/instrumentation-aws-sdk":"0.36.1","@opentelemetry/instrumentation-bunyan":"0.32.2","@opentelemetry/instrumentation-http":"0.44.0","@opentelemetry/instrumentation-ioredis":"0.35.2","@opentelemetry/instrumentation-lru-memoizer":"0.33.2","@opentelemetry/instrumentation-mongoose":"0.33.2","@opentelemetry/instrumentation-mysql":"0.34.2","@opentelemetry/instrumentation-mysql2":"0.34.2","@opentelemetry/instrumentation-nestjs-core":"0.33.2","@opentelemetry/instrumentation-pg":"0.36.2","@opentelemetry/instrumentation-pino":"0.34.2","@opentelemetry/instrumentation-redis":"0.35.2","@opentelemetry/instrumentation-redis-4":"0.35.3","@opentelemetry/instrumentation-socket.io":"0.34.2","@opentelemetry/instrumentation-tedious":"0.6.2","@opentelemetry/instrumentation-winston":"0.32.2","@opentelemetry/propagation-utils":"0.30.2","@opentelemetry/propagator-b3":"1.17.1","@opentelemetry/resources":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@opentelemetry/semantic-conventions":"^1.24.1","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-express":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-kafkajs":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-neo4j":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-node-cache":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-sequelize":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-typeorm":"0.0.0-2024-05-16--12-47","opentelemetry-propagator-selective":"0.30.0","opentelemetry-resource-detector-deployment":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-git":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-service":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-sync-api":"0.0.0-2024-05-16--12-47","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"18.19.0","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"5.4.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"f964548376ceb75de433f5c76e199dd74ba2c971","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2024-05-16--14-39","_nodeVersion":"18.20.2","_npmVersion":"lerna/8.1.3/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-soNHHjQlvjL30Du4IE0bG0yHip3/kLi3TYe5IQTtUc0jUAihvK5Tr4ika2QsNQDpPOhXZ+COj+Qu3Ra8D+HQzQ==","shasum":"9699eb0c0736059ace2ae1eddb72b252e21df620","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2024-05-16--14-39.tgz","fileCount":182,"unpackedSize":420709,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/h/Hqbg4dTufmf/PzaNfP97BEq6MQEXWXHRCsAGogsQIhAPjkvNd08qRohs9DtShq2jsNJoGFUpZniDw1V5PzBC4w"}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2024-05-16--14-39_1715870386900_0.8817720883258406"},"_hasShrinkwrap":false},"0.0.0-2024-05-21--09-06":{"name":"@aspecto/opentelemetry","version":"0.0.0-2024-05-21--09-06","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.0.0-2024-05-21--09-06","@aspecto/opentelemetry-config":"^0.0.0-2024-05-21--09-06","@aspecto/opentelemetry-diag":"^0.0.0-2024-05-21--09-06","@aspecto/opentelemetry-instrumentation-mongodb":"^0.0.0-2024-05-21--09-06","@aspecto/opentelemetry-sampler":"^0.0.0-2024-05-21--09-06","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"^1.8.0","@opentelemetry/context-async-hooks":"^1.24.1","@opentelemetry/core":"^1.24.1","@opentelemetry/exporter-trace-otlp-http":"0.44.0","@opentelemetry/exporter-trace-otlp-proto":"0.44.0","@opentelemetry/exporter-zipkin":"1.17.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/instrumentation-amqplib":"0.33.2","@opentelemetry/instrumentation-aws-lambda":"0.37.1","@opentelemetry/instrumentation-aws-sdk":"0.36.1","@opentelemetry/instrumentation-bunyan":"0.32.2","@opentelemetry/instrumentation-http":"0.44.0","@opentelemetry/instrumentation-ioredis":"0.35.2","@opentelemetry/instrumentation-lru-memoizer":"0.33.2","@opentelemetry/instrumentation-mongoose":"0.33.2","@opentelemetry/instrumentation-mysql":"0.34.2","@opentelemetry/instrumentation-mysql2":"0.34.2","@opentelemetry/instrumentation-nestjs-core":"0.33.2","@opentelemetry/instrumentation-pg":"0.36.2","@opentelemetry/instrumentation-pino":"0.34.2","@opentelemetry/instrumentation-redis":"0.35.2","@opentelemetry/instrumentation-redis-4":"0.35.3","@opentelemetry/instrumentation-socket.io":"0.34.2","@opentelemetry/instrumentation-tedious":"0.6.2","@opentelemetry/instrumentation-winston":"0.32.2","@opentelemetry/propagation-utils":"0.30.2","@opentelemetry/propagator-b3":"1.17.1","@opentelemetry/resources":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@opentelemetry/semantic-conventions":"^1.24.1","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-express":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-kafkajs":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-neo4j":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-node-cache":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-sequelize":"0.0.0-2024-05-16--12-47","opentelemetry-instrumentation-typeorm":"0.0.0-2024-05-16--12-47","opentelemetry-propagator-selective":"0.30.0","opentelemetry-resource-detector-deployment":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-git":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-service":"0.0.0-2024-05-16--12-47","opentelemetry-resource-detector-sync-api":"0.0.0-2024-05-16--12-47","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"18.19.0","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"5.4.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"1f75f2b9b4108b2ca822871f35929058afa873d0","engines":{"node":">=14.0.0"},"readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.0.0-2024-05-21--09-06","_nodeVersion":"18.20.2","_npmVersion":"lerna/7.4.2/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-ssIf/eNZ31YKztLtwrGqGfYyIGDSMv/pIgrsOceIhDSSdoDs1hTc/5VjvuxD6CpT3bdbmE6WjqLNcoEIJfC5+w==","shasum":"302c79a6dff2c18633a0c038efaf75f62c40a748","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.0.0-2024-05-21--09-06.tgz","fileCount":182,"unpackedSize":420709,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZAmcPGqu35r5NiqPX9SPz3/e4IbjiwqFsYM2KJnA8aAiEAy0oe9SVtpV108g1g7XKXnEvW3If09I/PQrZPM4VCODk="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.0.0-2024-05-21--09-06_1716282419245_0.9241666208577268"},"_hasShrinkwrap":false},"0.2.0":{"name":"@aspecto/opentelemetry","version":"0.2.0","description":"Aspecto auto instrumentation for nodejs applications","keywords":["opentelemetry"],"homepage":"https://docs.aspecto.io/v1/","author":{"name":"Aspecto.io"},"license":"Apache-2.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","dependencies":{"@aspecto/opentelemetry-base":"^0.2.0","@aspecto/opentelemetry-config":"^0.2.0","@aspecto/opentelemetry-diag":"^0.2.0","@aspecto/opentelemetry-instrumentation-mongodb":"^0.2.0","@aspecto/opentelemetry-sampler":"^0.2.0","@aspecto/sampling-rules":"0.0.7","@opentelemetry/api":"^1.8.0","@opentelemetry/context-async-hooks":"^1.24.1","@opentelemetry/core":"^1.24.1","@opentelemetry/exporter-trace-otlp-http":"0.51.1","@opentelemetry/exporter-trace-otlp-proto":"0.51.1","@opentelemetry/exporter-zipkin":"1.24.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/instrumentation-amqplib":"0.37.0","@opentelemetry/instrumentation-aws-lambda":"0.41.1","@opentelemetry/instrumentation-aws-sdk":"0.41.0","@opentelemetry/instrumentation-bunyan":"0.38.0","@opentelemetry/instrumentation-http":"0.51.1","@opentelemetry/instrumentation-ioredis":"0.40.0","@opentelemetry/instrumentation-lru-memoizer":"0.37.0","@opentelemetry/instrumentation-mongoose":"0.38.1","@opentelemetry/instrumentation-mysql":"0.38.1","@opentelemetry/instrumentation-mysql2":"0.38.1","@opentelemetry/instrumentation-nestjs-core":"0.37.1","@opentelemetry/instrumentation-pg":"0.41.0","@opentelemetry/instrumentation-pino":"0.39.0","@opentelemetry/instrumentation-redis":"0.39.1","@opentelemetry/instrumentation-redis-4":"0.39.0","@opentelemetry/instrumentation-socket.io":"0.39.0","@opentelemetry/instrumentation-tedious":"0.10.1","@opentelemetry/instrumentation-winston":"0.37.0","@opentelemetry/propagation-utils":"0.30.9","@opentelemetry/propagator-b3":"1.24.1","@opentelemetry/resources":"1.24.1","@opentelemetry/sdk-trace-base":"1.24.1","@opentelemetry/sdk-trace-node":"1.24.1","@opentelemetry/semantic-conventions":"^1.24.1","@types/aws-lambda":"^8.10.119","debug":"^4.3.1","is-promise":"^4.0.0","lodash":"^4.17.21","object-sizeof":"1.6.1","opentelemetry-instrumentation-elasticsearch":"0.41.0","opentelemetry-instrumentation-express":"0.41.0","opentelemetry-instrumentation-kafkajs":"0.41.0","opentelemetry-instrumentation-neo4j":"0.41.0","opentelemetry-instrumentation-node-cache":"0.41.0","opentelemetry-instrumentation-sequelize":"0.41.0","opentelemetry-instrumentation-typeorm":"0.41.0","opentelemetry-propagator-selective":"0.31.0","opentelemetry-resource-detector-deployment":"0.30.0","opentelemetry-resource-detector-git":"0.30.0","opentelemetry-resource-detector-service":"0.30.0","opentelemetry-resource-detector-sync-api":"0.30.0","shimmer":"1.2.1","uuid":"^8.3.1"},"devDependencies":{"@types/amqplib":"^0.5.17","@types/express":"^4.17.14","@types/node":"18.19.0","copyfiles":"^2.4.1","express":"^4.18.2","rimraf":"^3.0.2","tsc-watch":"^4.4.0","typescript":"5.4.5"},"repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" dist/src && rimraf dist/src/index.d.ts.map","build":"tsc && yarn copy-dts","prebuild":"rm -rf ./dist","prepare":"yarn run build","watch":"tsc-watch --onSuccess \"yarn copy-dts\"","preuninstall":"npx aspecto-otel-live uninstall || exit 0","prettier":"prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\"","version:update":"node ../../scripts/version-update.js","version":"yarn run version:update"},"publishConfig":{"access":"public"},"gitHead":"1fb6903327c84864c384a6068bead125db0d0237","engines":{"node":">=14.0.0"},"bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"_id":"@aspecto/opentelemetry@0.2.0","_nodeVersion":"18.20.2","_npmVersion":"lerna/7.4.2/node@v18.20.2+x64 (linux)","dist":{"integrity":"sha512-Rkt1kqqROfs21n9D5XQqLll7wDkkvmK9vAY4RfLDFCEJgo17UiBgzZkhIeI770nMHxDxFfZ/neZhtNWKp+ACfg==","shasum":"51361f7fed725feac1da01ddf463146021489709","tarball":"https://registry.npmjs.org/@aspecto/opentelemetry/-/opentelemetry-0.2.0.tgz","fileCount":182,"unpackedSize":420010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPwEiZjKEtN/aDVFKGWSt/r3SEi2CWJ9MBMHnsYEigoAiEAxVENTOFB4MGfj1oClUsPEMDazoZnxo7d8t1lplCSZA8="}]},"_npmUser":{"name":"aspecto-release-bot","email":"dev@aspecto.io"},"directories":{},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/opentelemetry_0.2.0_1716292415092_0.02116906998469581"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-23T13:49:38.277Z","0.0.38":"2020-06-23T13:49:38.683Z","modified":"2024-05-21T11:53:35.473Z","0.0.40":"2020-06-24T13:13:58.899Z","0.0.41":"2020-06-25T07:46:06.592Z","0.0.42":"2020-07-02T11:56:21.162Z","0.0.43-alpha.26":"2020-07-16T13:09:13.813Z","0.0.43-alpha.13":"2020-07-20T16:01:42.783Z","0.0.43":"2020-07-21T14:57:43.982Z","0.0.44":"2020-07-22T09:08:53.642Z","0.0.45":"2020-08-05T08:39:58.637Z","0.0.46":"2020-08-10T06:58:26.444Z","0.0.47":"2020-08-12T08:40:25.785Z","0.0.45-alpha.15":"2020-08-13T15:27:12.642Z","0.0.45-alpha.0":"2020-08-13T17:05:03.060Z","0.0.45-alpha.1":"2020-08-13T17:49:27.580Z","0.0.48-alpha.1":"2020-08-13T18:04:08.437Z","0.0.48":"2020-08-13T18:11:48.492Z","0.0.49":"2020-08-13T18:16:01.262Z","0.0.50-alpha.1":"2020-08-14T10:29:21.911Z","0.0.50-alpha.2":"2020-08-14T11:13:13.689Z","0.0.50-alpha.5":"2020-08-14T15:17:05.291Z","0.0.50-alpha.6":"2020-08-14T16:09:21.344Z","0.0.50-alpha.7":"2020-08-17T07:24:28.466Z","0.0.50":"2020-08-17T12:45:16.194Z","0.0.51":"2020-08-18T09:31:48.463Z","0.0.52":"2020-08-18T10:52:36.731Z","0.0.53":"2020-08-18T10:54:11.444Z","0.0.54":"2020-08-18T14:57:31.759Z","0.0.55":"2020-09-01T14:57:00.497Z","0.0.56":"2020-09-02T15:34:23.297Z","0.0.57":"2020-09-14T14:44:28.463Z","0.0.58":"2020-09-14T15:39:12.185Z","0.0.59":"2020-09-16T11:26:37.971Z","0.0.60":"2020-09-16T11:36:15.698Z","0.0.61":"2020-09-16T11:53:27.832Z","0.0.62":"2020-09-16T12:20:49.723Z","0.0.63":"2020-09-22T15:24:51.883Z","0.0.64":"2020-09-24T15:29:39.308Z","0.0.65":"2020-09-29T11:52:00.536Z","0.0.66":"2020-10-05T11:27:19.798Z","0.0.67":"2020-10-06T12:33:18.856Z","0.0.68":"2020-10-13T11:50:08.651Z","0.0.69":"2020-10-14T09:39:15.627Z","0.0.70":"2020-10-21T09:06:13.409Z","0.0.71-alpha.0":"2020-10-25T10:12:40.635Z","0.0.71":"2020-10-26T12:59:52.908Z","0.0.72":"2020-10-26T13:47:19.916Z","0.0.73":"2020-10-27T16:29:30.848Z","0.0.74":"2020-10-28T16:29:37.938Z","0.0.76":"2020-11-03T11:56:13.402Z","0.0.77":"2020-11-03T15:46:07.489Z","0.0.78":"2020-11-10T08:55:26.843Z","0.0.79":"2020-11-11T13:02:48.975Z","0.0.80":"2020-11-12T08:47:16.747Z","0.0.81":"2020-11-15T12:47:48.795Z","0.0.82":"2020-11-18T11:54:55.287Z","0.0.83":"2020-11-18T13:18:04.193Z","0.0.84":"2020-11-19T07:36:07.059Z","0.0.84-alpha.0":"2020-12-07T12:32:15.026Z","0.0.85-alpha.0":"2020-12-07T13:55:15.458Z","0.0.85-alpha.1":"2020-12-07T16:12:21.439Z","0.0.85":"2020-12-07T16:37:48.083Z","0.0.86":"2020-12-08T13:52:44.960Z","0.0.87-alpha.1":"2020-12-10T17:12:49.656Z","0.0.87-alpha.2":"2020-12-13T12:14:15.999Z","0.0.87-alpha.3":"2020-12-13T13:00:39.634Z","0.0.88":"2020-12-16T15:02:53.825Z","0.0.89":"2020-12-20T15:05:55.078Z","0.0.90-dev.0":"2020-12-21T15:22:35.723Z","0.0.90-dev.1":"2020-12-22T11:33:59.565Z","0.0.90-dev.2":"2020-12-22T15:01:24.472Z","0.0.90-dev.3":"2020-12-23T07:53:57.296Z","0.0.90":"2020-12-31T12:17:39.179Z","0.0.91":"2021-01-05T13:46:53.244Z","0.0.92-dev.1":"2021-01-06T11:01:19.151Z","0.0.92-alpha.0":"2021-01-12T15:57:51.736Z","0.0.92":"2021-01-13T11:04:42.634Z","0.0.93":"2021-01-25T13:19:56.601Z","0.0.94":"2021-01-26T12:59:09.763Z","0.0.95":"2021-01-26T15:32:45.839Z","0.0.96-dev.0":"2021-01-27T14:15:59.513Z","0.0.96":"2021-02-02T14:01:53.756Z","0.0.97":"2021-02-08T14:59:38.446Z","0.0.98":"2021-02-09T08:40:32.610Z","0.0.99":"2021-02-14T07:28:16.003Z","0.0.100":"2021-02-17T15:04:32.478Z","0.0.101":"2021-02-17T15:45:29.751Z","0.0.102":"2021-02-18T13:30:26.047Z","0.0.103":"2021-02-28T12:45:53.211Z","0.0.104-dev.0":"2021-03-03T08:17:43.390Z","0.0.104-dev.1":"2021-03-03T09:58:43.238Z","0.0.103-dev.0":"2021-03-03T13:42:32.968Z","0.0.103-alpha.0":"2021-03-04T09:26:57.809Z","0.0.104":"2021-03-04T11:44:55.575Z","0.0.105":"2021-03-04T13:33:50.294Z","0.0.103-alpha.1":"2021-03-07T10:16:34.922Z","0.0.106":"2021-03-07T15:49:52.231Z","0.0.103-alpha.2":"2021-03-07T16:03:44.058Z","0.0.107":"2021-03-11T14:04:48.974Z","0.0.107-dev.0":"2021-03-16T12:39:30.801Z","0.0.108-express.23":"2021-03-21T09:25:25.227Z","0.0.108":"2021-03-24T09:18:29.251Z","0.0.109-express-context.0":"2021-03-24T11:02:33.542Z","0.0.110":"2021-03-24T16:39:55.137Z","0.0.111-otel-v0.18.1.0":"2021-03-30T12:17:09.452Z","0.0.111-otelv0.18.2.7":"2021-04-05T15:50:18.238Z","0.0.111":"2021-04-06T07:05:35.602Z","0.0.112":"2021-04-06T10:24:48.547Z","0.0.111-dev.0":"2021-04-06T11:59:31.996Z","0.0.113":"2021-04-18T15:57:20.604Z","0.0.113-alpha.17":"2021-04-25T08:05:46.651Z","0.0.113-alpha.18":"2021-04-25T08:19:04.327Z","0.0.114-alpha.0":"2021-04-25T09:15:58.581Z","0.0.114-alpha.4":"2021-04-26T08:05:41.114Z","0.0.114-dev.0":"2021-04-26T12:31:49.663Z","0.0.114":"2021-04-27T06:53:15.161Z","0.0.115-dev.0":"2021-04-27T15:24:16.855Z","0.0.115":"2021-05-10T06:37:26.706Z","0.0.0-2021-05-13--08-21":"2021-05-13T08:22:33.554Z","0.0.0-2021-05-13--09-11":"2021-05-13T09:11:58.884Z","0.0.116":"2021-05-18T06:39:15.773Z","0.0.0-2021-05-25--13-59":"2021-05-25T14:00:05.417Z","0.0.0-2021-05-26--07-48":"2021-05-26T07:49:27.313Z","0.0.0-2021-05-26--12-57":"2021-05-26T12:58:28.601Z","0.0.0-2021-05-26--15-21":"2021-05-26T15:21:45.299Z","0.0.117":"2021-05-30T08:53:06.770Z","0.0.0-2021-06-09--08-13":"2021-06-09T08:13:53.844Z","0.0.0-2021-06-15--13-22":"2021-06-15T13:22:52.607Z","0.0.0-2021-06-17--15-03":"2021-06-17T15:03:51.689Z","0.0.118":"2021-06-20T08:58:29.136Z","0.0.0-2021-06-23--08-28":"2021-06-23T08:28:52.296Z","0.0.0-2021-06-23--15-16":"2021-06-23T15:16:41.076Z","0.0.0-2021-06-29--15-16":"2021-06-29T15:17:00.616Z","0.0.119":"2021-07-05T12:07:51.103Z","0.0.0-2021-07-05--14-53":"2021-07-05T14:53:35.796Z","0.0.120":"2021-07-06T09:09:55.416Z","0.0.121":"2021-07-06T10:22:08.966Z","0.0.0-2021-07-07--15-00":"2021-07-07T15:01:03.216Z","0.0.122":"2021-07-07T16:04:47.765Z","0.0.0-2021-07-13--08-48":"2021-07-13T08:48:54.699Z","0.0.0-2021-07-13--09-16":"2021-07-13T09:17:05.168Z","0.0.0-2021-07-13--09-47":"2021-07-13T09:48:20.471Z","0.0.0-2021-07-13--09-56":"2021-07-13T09:56:41.041Z","0.0.0-2021-07-13--10-03":"2021-07-13T10:04:17.951Z","0.0.0-2021-07-13--10-35":"2021-07-13T10:35:36.595Z","0.0.0-2021-07-13--10-55":"2021-07-13T10:56:15.398Z","0.0.0-2021-07-13--13-03":"2021-07-13T13:03:35.481Z","0.0.0-2021-07-13--13-07":"2021-07-13T13:07:55.214Z","0.0.0-2021-07-13--13-12":"2021-07-13T13:13:19.296Z","0.0.0-2021-07-13--13-17":"2021-07-13T13:17:57.232Z","0.0.0-2021-07-13--13-21":"2021-07-13T13:21:48.478Z","0.0.0-2021-07-13--13-31":"2021-07-13T13:31:32.870Z","0.0.0-2021-07-13--13-36":"2021-07-13T13:36:42.633Z","0.0.0-2021-07-13--13-43":"2021-07-13T13:43:47.720Z","0.0.0-2021-07-13--13-54":"2021-07-13T13:54:19.669Z","0.0.0-2021-07-13--14-07":"2021-07-13T14:07:56.177Z","0.0.0-2021-07-13--14-23":"2021-07-13T14:23:44.538Z","0.0.0-2021-07-13--14-29":"2021-07-13T14:29:46.501Z","0.0.0-2021-07-14--11-03":"2021-07-14T11:04:03.629Z","0.0.123":"2021-07-14T11:11:21.172Z","0.0.0-2021-08-01--13-11":"2021-08-01T13:11:43.001Z","0.0.124":"2021-08-01T14:32:43.522Z","0.0.0-2021-09-19--10-55":"2021-09-19T10:55:50.195Z","0.0.125":"2021-09-19T14:16:28.030Z","0.0.0-2021-09-23--11-14":"2021-09-23T11:14:27.741Z","0.0.126":"2021-09-23T14:29:42.397Z","0.0.127":"2021-10-10T08:01:12.191Z","0.0.0-2021-10-26--10-58":"2021-10-26T10:59:25.702Z","0.0.128":"2021-10-26T11:33:46.035Z","0.0.0-2021-10-26--15-22":"2021-10-26T15:23:10.788Z","0.0.129":"2021-10-28T08:49:02.673Z","0.0.0-2021-11-14--16-14":"2021-11-14T16:14:48.063Z","0.0.0-2021-11-17--13-52":"2021-11-17T13:53:12.990Z","0.0.0-2021-11-24--10-15":"2021-11-24T10:16:09.731Z","0.0.130":"2021-11-30T14:45:39.347Z","0.0.0-2021-12-08--13-04":"2021-12-08T13:05:16.722Z","0.0.131":"2021-12-09T11:51:15.517Z","0.0.0-2021-12-12--13-21":"2021-12-12T13:21:49.009Z","0.0.0-2021-12-12--13-32":"2021-12-12T13:32:47.188Z","0.0.0-2021-12-12--13-36":"2021-12-12T13:37:00.154Z","0.0.0-2021-12-12--13-44":"2021-12-12T13:44:27.846Z","0.0.0-2021-12-16--11-45":"2021-12-16T11:45:55.364Z","0.0.0-2021-12-23--15-33":"2021-12-23T15:33:47.128Z","0.0.132":"2021-12-23T15:56:38.703Z","0.0.0-2021-12-27--15-59":"2021-12-27T16:00:31.983Z","0.0.0-2021-12-29--13-52":"2021-12-29T13:52:29.985Z","0.0.0-2021-12-30--14-45":"2021-12-30T14:46:18.735Z","0.0.133":"2022-01-03T12:39:02.913Z","0.0.0-2022-03-16--07-58":"2022-03-16T07:59:09.991Z","0.0.134":"2022-03-16T16:04:40.529Z","0.0.0-2022-04-05--13-50":"2022-04-05T13:50:36.132Z","0.0.135":"2022-04-05T14:40:26.262Z","0.0.0-2022-06-06--12-29":"2022-06-06T12:30:25.572Z","0.0.136":"2022-06-07T08:43:33.989Z","0.0.0-2022-06-14--11-32":"2022-06-14T11:33:10.583Z","0.0.0-2022-07-11--10-54":"2022-07-11T10:55:13.895Z","0.0.137":"2022-07-12T15:08:04.491Z","0.0.0-2022-11-02--07-46":"2022-11-02T07:46:51.409Z","0.0.138":"2022-11-02T09:44:40.067Z","0.0.0-2022-11-22--11-42":"2022-11-22T11:42:52.990Z","0.0.0-2022-11-22--14-54":"2022-11-22T14:55:23.887Z","0.0.0-2022-11-24--17-44":"2022-11-24T17:44:58.940Z","0.0.139":"2022-11-30T05:57:05.811Z","0.0.0-2023-02-09--09-14":"2023-02-09T09:15:05.580Z","0.0.0-2023-02-28--15-21":"2023-02-28T15:21:31.892Z","0.0.0-2023-03-01--13-22":"2023-03-01T13:23:04.791Z","0.0.140":"2023-03-01T14:58:50.422Z","0.0.0-2023-07-27--11-15":"2023-07-27T11:15:33.675Z","0.0.0-2023-07-30--08-42":"2023-07-30T08:42:58.225Z","0.0.142":"2023-09-21T09:58:32.104Z","0.0.0-2023-10-17--11-48":"2023-10-17T11:49:23.625Z","0.0.0-2023-10-17--12-07":"2023-10-17T12:07:17.941Z","0.0.0-2023-10-17--12-24":"2023-10-17T12:25:10.857Z","0.1.0":"2023-10-17T13:44:42.959Z","0.0.0-2024-05-16--14-39":"2024-05-16T14:39:47.065Z","0.0.0-2024-05-21--09-06":"2024-05-21T09:06:59.488Z","0.2.0":"2024-05-21T11:53:35.273Z"},"maintainers":[{"name":"habmic","email":"michael@topsight.io"},{"name":"amir.aspecto","email":"amir@aspecto.io"},{"name":"aspecto-release-bot","email":"dev@aspecto.io"},{"name":"andriy-aspecto","email":"andriy@aspecto.io"},{"name":"yanivd","email":"yaniv.davi@gmail.com"}],"description":"Aspecto auto instrumentation for nodejs applications","repository":{"type":"git","url":"git+https://github.com/aspecto-io/aspecto-opentelemetry-js.git"},"author":{"name":"Aspecto.io"},"license":"Apache-2.0","readme":"# Aspecto OpenTelemetry SDK\n\nAspecto is an observability platform, powered by OpenTelemetry, that brings R&D teams complete visibility into every interaction, performance issue, and error happening within their distributed services.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Configuration](#configuration)\n* [Send Spans Manually](#send-spans-manually)\n* [Add span attributes manually](#add-span-attributes-manually)\n* [Correlate Logs with Traces](#correlate-logs-with-traces)\n* [Live Stream Traces](#live-stream-traces)\n    * [Connected Mode](#connected-mode)\n* [FaaS](#faas)\n    * [AWS Lambda](#aws-lambda)\n    * [Google Cloud Function](#google-cloud-function)\n\n## Install\n```sh\nnpm install @aspecto/opentelemetry\n```\n\nSupported node version: >= 14\n\n## Usage\n\nIn the root folder create an `aspecto.json` file with the content `{\"aspectoAuth\" : \"-- token goes here --\"}`. \n\nYou can get your token from [here](https://app.aspecto.io/app/integration)\n\nAdd this call at the top of your app entry point:\n\n```js\nrequire('@aspecto/opentelemetry')();\n\n// the rest of your main file requires\n```\n\nSee below for more [configuration options](#configuration)\n\n## Configuration\n\nYou can configure the package via one or more of the following:\n- `options` variable. for example: `require('@aspecto/opentelemetry')({optionName: optionValue});`  \nThis enables setting config options dynamically.\n- Environment variables\n- Add `aspecto.json` configuration file to the root directory, next to service's `package.json` file\n\nValues are evaluated in the following priority:\n1) `options` object\n2) environment variables\n3) config file\n4) default values\n\n| Option Name | Environment Variable | Type | Default | Description |\n| --- | --- | --- | --- | --- |\n| `disableAspecto` | `DISABLE_ASPECTO` |  boolean | `false` | Disable aspecto |\n| `env` | `NODE_ENV` | string | - | Set environment name manually |\n| `aspectoAuth` | `ASPECTO_AUTH` | UUID | - | Set [Aspecto token](https://app.aspecto.io/app/integration/api-key) from code instead of using `aspecto.json` |\n| `serviceName` | `OTEL_SERVICE_NAME` | string | `name` key in `package.json` | Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple \"modes\" |\n| `serviceVersion` | `OTEL_SERVICE_VERSION` | string | `version` key in `package.json` | Set serviceVersion manually instead of reading it from `package.json` |\n| `samplingRatio` | `ASPECTO_SAMPLING_RATIO` | number | `1.0` | How many of the traces starting in this service should be sampled. Set to number in range [0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. [Specific rules](https://docs.aspecto.io/v1/settings/sampling-rules) set via aspecto app takes precedence |\n| `requireConfigForTraces` | `ASPECTO_REQUIRE_CONFIG_FOR_TRACES` | boolean | `false` | When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |\n| `logger` | - | logger interface | - | Logger to be used in this tracing library. Common use for debugging `logger: console` |\n| `collectPayloads` | `ASPECTO_COLLECT_PAYLOADS` | boolean | `true` | Should Aspecto SDK collect payloads of operations |\n| `otlpCollectorEndpoint` | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | `string` | `https://otelcol-fast.aspecto.io/v1/trace` | Target URL to which the OTLP http exporter is going to send spans |\n| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |\n| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |\n| `writeSystemLogs` | - | boolean | `false` | If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |\n| `customZipkinEndpoint` | - | URL |  | Send all traces to additional Zipkin server for debug |\n| `sqsExtractContextPropagationFromPayload` | `ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD` | boolean | `true` | For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with \"Raw message delivery\": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |\n| `extractB3Context` | `ASPECTO_EXTRACT_B3_CONTEXT` | boolean | `false` | Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |\n| `injectB3ContextSingleHeader` | `ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |\n| `injectB3ContextMultiHeader` | `ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER` | boolean | `false` | Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |\n\n## Send Spans Manually\n### Background\n\"Span\" is the name of the data structure representing an interesting operation in your app.  \nAspecto will automatically collect spans for operations created by popular packages that perform IO (such as http, messaging systems, databases, etc).  \nManual spans are used if you need to trace an operation in a code you wrote, or when using a package that does not provide an automatic tracing. \n### Example\n\nTo create a Manual Span for a function run, you need to wrap it in a trace call like this:\n```js\nimport { trace } from '@aspecto/opentelemetry'; // ES import\nconst { trace } = require('@aspecto/opentelemetry'); // CommonJS require\n\ntrace(\n    // All options are optional\n    {\n        name: '** optional name for the operation **',\n        metadata: {\n            'metadata.key.for.the.operation': 'you can attach custom metadata to the operation',\n        },\n        type: 'Type of Operation',\n    },\n    () => {\n        // your code which you want to trace\n    }\n);\n```\n\n## Add span attributes manually\nYou can add attributes to your spans for more visibility.  \nAttributes can be added to a span at any time before the span is finished:\n\n```js\nimport { setAttribute, setAttributes } from '@aspecto/opentelemetry';\n\n// add a single attribute\nconst result = setAttribute('foo', 'bar');\n\n// add multiple attributes\nconst result = setAttributes({ foo: 'bar' });\n\n// result will be true in case of success\n```\n\n(*) All keys will get a prefix of 'aspecto.extra'.\n\n\n## Correlate Logs with Traces\nA common use case for the Trace Search tool is to see the related trace while inspecting a log event.  \nTo do this, you must attach an active `traceId` to your logs.\n\n### Example\nUse the `getContext` method, exposed from our package, to attach traceId to your logs:\n```js\nconst { getContext } = require('@aspecto/opentelemetry');\n\nconsole.log('Something happened!', { traceId: getContext().traceId })});\n```\n\n## Live Stream Traces\n\nLive Stream Traces captures all payloads and traces for a specific host/instance.\nYou can access it by clicking the link from the service output:\n\n```\n=====================================================================================================================================\n|                                                                                                                                   |\n| 🕵️‍♀️ See the live stream tracing at https://app.aspecto.io/app/live-stream-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578   |\n|                                                                                                                                   |\n=====================================================================================================================================\n```\n\nYou only need to click the link once to see traces from all the microservices, that are running on your environment.\nAlso this link is valid for a limited period of time (couple of days, but it may change in the future).\nIf you don't see trace from some microservice (or none of them), please click the newly-generated link.\n## FaaS\n\n### AWS Lambda\n\nAspecto supports instrumenting AWS lambdas.  \nTo do so, set up Aspecto as you'd usually do, and extract the returned `lambda` utility:\n```js\nconst { lambda } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\n\nExample:\n```js\n// Before\nmodule.exports.myCallbackHandler = (event, context, callback) => { ... };\nmodule.exports.myAsyncHandler = async (event, context) => { ... };\n\n// After\nmodule.exports.myCallbackHandler = lambda((event, context, callback) => { ... });\nmodule.exports.myAsyncHandler = lambda(async (event, context) => { ... });\n```\n\nNotice: if your lambda is not deployed with a `package.json` file, make sure to provide the `serviceName` option when initializing Aspecto.\n\n### Google Cloud Function\n\nAspecto supports instrumenting GCF with **http trigger**.  \nTo do so, set up Aspecto as you'd usually do, and extract the `gcf` utility:\n```js\nconst { gcf } = require('@aspecto/opentelemetry')();\n```\nNext, wrap your function handler definition with the returned utility.\nExample:\n```js\n// Before\nexports.myEndpoint = (req, res) => { ... };\n\n// After\nexports.myEndpoint = gcf((req, res) => { ... });\n```\n\n### Test Frameworks\n\n#### Mocha\nTo instrument your test with aspecto using `mocha` version 8.0.0 and above, register [mocha plugin](https://mochajs.org/#root-hook-plugins) as instructed below.\nIn this mode, token (and other configuration) can be set only via [`aspecto.json` config file or environment variables](#configuration).\n\n##### With CLI\n```bash\nmocha --require @aspecto/opentelemetry/mocha\n```\n\n##### With Mocha Config in package.json\n```js\n  \"mocha\": {\n    \"require\": [\n      \"@aspecto/opentelemetry/mocha\"\n    ]\n  }\n```\n\n##### Config File\n```js\n{\n    \"require\": [\n        \"@aspecto/opentelemetry/mocha\"\n    ]\n}\n```\n\n","readmeFilename":"README.md","homepage":"https://docs.aspecto.io/v1/","bugs":{"url":"https://github.com/aspecto-io/aspecto-opentelemetry-js/issues"},"keywords":["opentelemetry"]}