{"name":"@azure/monitor-opentelemetry-exporter","version":"1.0.0-alpha.20201008.1","keywords":["node","azure","monitor","javascript","applicationinsights","opentelemetry","exporter"],"author":{"name":"appinsightssdk@microsoft.com"},"license":"MIT","_id":"@azure/monitor-opentelemetry-exporter@1.0.0-alpha.20201008.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/monitor-opentelemetry-exporter","dist":{"shasum":"b29058c3b9d9548db8cacb85d3c55b51ed8f028c","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry-exporter/download/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20201008.1.tgz","fileCount":198,"integrity":"sha512-5VUlWn24/t+c+IpcBs2ixYVyMmzGDTvsqFIUC7J4xtldOj0TgNdoeoMR49lsiaMf0qB/WA9KaMBdwzMvT119Yw==","signatures":[{"sig":"MEUCIQC2EdXt5HxrEBsFJ0xd6yox5d/QuRN08v3M/gNceqgr1wIgP9ieUiA8XhA57zDA9EZkbfJWTx8qJNVGeKzsj3e/uUw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffwV5CRA9TVsSAnZWagAAsdsQAKUvmZsoDLf2m87Q9nd3\nFK5algVdIL4wSYnwglbFAJCBeCLmURiAEH40nk8/kyWVRY/FlIHHQ56bkkQU\nYKv781G8boFYXHU9KpMaKePx2D/8rH569zcwi0gDzVee5VCgqLqOIgadqJqH\nX+aqnxZTOahP+3AzoD8JFVeiERUHnrCoJSrkGtReClEp5vwVVT5ZIqvWk/tX\nfg7w3idxCFESkNZCXsHbuJm3JG++rLuF7tZ0+ro4Jvy2FmkqFzxGo/wywFuQ\n3HqK/az6Gabrj8oWU5ECPo05BuVf9Du+oszDFaxzlKv4UxwE6B8up7jq4ViZ\nai0Hw93IszmblYw89evFJcJm4CcJEt4QaWRtKiRsld4I2jad/LWSm2p5tmCr\n2C71nf9JLwRVDb50QRfsLlGhrVXJyr0kvbclWEdmGGA5yQU5P6qJwUp3pIBb\nu114yUN9zSIqRuErGcCgFH37GqENZMjk8Xq/zuxNWQ+LDsLwGXzXdSwCRmsD\nlZ17LgRvPBS/koSeymarRa2ysmuv42iaBx/Lv/4waaULd0w2U8vNcUwNX+8q\n9gW9LQpD4KgelloTqe4YZmadrVea3oaZmXYhI4PRr7j5CDTluCS9QipNaf2U\njnD0t9bkPklG9gEzJoUYU6RO3cIojhC6T3B1RoHvHlzCQCo98cUlzqeeIGu3\nUMMg\r\n=Kbvl\r\n-----END PGP SIGNATURE-----\r\n","size":87072,"noattachment":false,"key":"/@azure/monitor-opentelemetry-exporter/-/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20201008.1.tgz"},"main":"dist-esm/src/index.js","_from":"file:/home/vsts/work/1/packages/azure-monitor-opentelemetry-exporter-1.0.0-alpha.20201008.1.tgz","types":"types/src/index.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Monitor OpenTelemetry Exporter client library for JavaScript\n\n[![npm version](https://badge.fury.io/js/%40azure%2Fmonitor-opentelemetry-exporter.svg)](https://badge.fury.io/js/%40azure%2Fmonitor-opentelemetry-exporter)\n\n## Getting started\n\nThis exporter package assumes your application is [already instrumented](https://github.com/open-telemetry/opentelemetry-js/blob/master/getting-started/README.md) with the OpenTelemetry SDK. Once you are ready to export OpenTelemetry data, you can add this exporter to your application.\n\n### Install the package\n\n`npm install @azure/monitor-opentelemetry-exporter`\n\n### Prerequisites\n\nYou must have an [Azure subscription](https://azure.microsoft.com/free/) and a\n[Application Insights workspace](https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview/) to use this package.\nIf you are using this package in a Node.js application, then use Node.js 8.x or higher.\n\n### Distributed Tracing\n\nAdd the exporter to your existing OpenTelemetry tracer provider (`NodeTracerProvider` / `BasicTracerProvider`)\n\n```js\nconst { AzureMonitorTraceExporter } = require(\"@azure/monitor-opentelemetry-exporter\");\nconst { NodeTracerProvider } = require(\"@opentelemetry/node\");\nconst { BatchSpanProcessor } = require(\"@opentelemetry/tracing\");\n\n// Use your existing provider\nconst provider = new NodeTracerProvider({\n  plugins: {\n    https: {\n      // Ignore Application Insights Ingestion Server\n      ignoreOutgoingUrls: [new RegExp(/dc.services.visualstudio.com/i)]\n    }\n  }\n});\nprovider.register();\n\n// Create an exporter instance\nconst exporter = new AzureMonitorTraceExporter({\n  logger: provider.logger,\n  instrumentationKey: \"ikey\"\n});\n\n// Add the exporter to the provider\nprovider.addSpanProcessor(\n  new BatchSpanProcessor(exporter, {\n    bufferTimeout: 15000,\n    bufferSize: 1000\n  })\n);\n```\n\n### Metrics\n\nComing Soon\n\n### Logs\n\nComing Soon\n\n## Examples\n\nComing soon // TODO: Update this with link to samples when we have some\n\n## Key concepts\n\nFor more information on the OpenTelemetry project, please review the [**OpenTelemetry Specifications**](https://github.com/open-telemetry/opentelemetry-specification#opentelemetry-specification).\n\n## Troubleshooting\n\n### Enable debug logging\n\nYou can enable debug logging by changing the logging level of your provider.\n\n```js\nconst provider = new NodeTracerProvider({\n  logLevel: LogLevel.DEBUG,\n  plugins: {\n    https: {\n      // Ignore Application Insights Ingestion Server\n      ignoreOutgoingUrls: [new RegExp(/dc.services.visualstudio.com/i)]\n    }\n  }\n});\n```\n\n## Next steps\n\nThis exporter is made to be used with the [OpenTelemetry JS](http://github.com/open-telemetry/opentelemetry-js).\n\n### Plugin Registry\n\nTo see if a plugin has already been made for a library you are using, please check out the [OpenTelemetry Registry](https://opentelemetry.io/registry/).\n\nIf you cannot your library in the registry, feel free to suggest a new plugin request at [`opentelemetry-js-contrib`](http://github.com/open-telemetry/opentelemetry-js-contrib).\n\n## Contributing\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n\n![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/monitor-opentelemetry-exporter/README.png)\n","engines":{"node":">=8.3.0"},"scripts":{"lint":"eslint . --ext .ts || exit 0","pack":"npm pack 2>&1","test":"npm run test:node && npm run test:browser","build":"npm run build:node && npm run build:browser","clean":"rimraf dist-esm types dist","report":"nyc report --reporter=json","prepare":"npm run build","test:node":"npm run unit-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p .","build:test":"echo skipped","test:browser":"npm run unit-test:browser","build:browser":"echo skipped","build:autorest":"autorest ./swagger/README.md --typescript --v3","unit-test:node":"nyc ts-mocha -p ./tsconfig.json 'test/unit/**/*.test.ts'","functional-test":"ts-mocha -p ./tsconfig.json 'test/functional/**/*.test.ts'","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"echo skipped","integration-test:node":"npm run functional-test","integration-test:browser":"echo skipped","unit-test:node:no-timeout":"echo skipped","test-opentelemetry-versions":"node test-opentelemetry-versions.js 2>&1"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/util/constants/applicationinsights.ts","prefix":"packageVersion"}]},"_integrity":"","deprecated":"Package renamed to @azure/opentelemetry-exporter-azure-monitor","repository":{"url":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/monitor-opentelemetry-exporter","type":"git"},"_npmVersion":"6.14.8","description":"Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK","directories":{},"sideEffects":false,"_nodeVersion":"12.18.4","dependencies":{"@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@opentelemetry/core":"^0.10.2","@opentelemetry/tracing":"^0.10.2","@opentelemetry/semantic-conventions":"^0.10.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","nock":"^12.0.3","execa":"^3.3.0","mocha":"^7.1.1","sinon":"^9.0.2","eslint":"^6.1.0","rimraf":"^3.0.0","prettier":"^1.16.4","ts-mocha":"^7.0.0","typescript":"~3.9.3","@types/node":"^10.0.0","@types/mocha":"^7.0.2","eslint-plugin-node":"^11.1.0","@typescript-eslint/parser":"^2.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/monitor-opentelemetry-exporter_1.0.0-alpha.20201008.1_1602159992447_0.8216362182605095","host":"s3://npm-registry-packages"},"publish_time":1602159992600,"_cnpm_publish_time":1602159992600,"dist-tags":{"beta":"1.0.0-beta.47","dev":"1.0.0-alpha.20260311.1","latest":"1.0.0-beta.32","next":"1.0.0-beta.32"}}