{"name":"@azure/monitor-opentelemetry-exporter","version":"1.0.0-dev.20200827.1","keywords":["node","azure","monitor","javascript","applicationinsights","opentelemetry","exporter"],"author":{"name":"appinsightssdk@microsoft.com"},"license":"MIT","_id":"@azure/monitor-opentelemetry-exporter@1.0.0-dev.20200827.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/opentelemetry-exporter","dist":{"shasum":"704d9ddae51212f24a165259c09a2a4e4c237ff5","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry-exporter/download/@azure/monitor-opentelemetry-exporter-1.0.0-dev.20200827.1.tgz","fileCount":178,"integrity":"sha512-IFVtF6Gu4HWXUV3XXRn+DbVfQDpAAhw4NsdOBsQ0RRaX/nbZLVSkvRXez1mU3p0z6k3PqHp5O9JTBGayeU/NYA==","signatures":[{"sig":"MEYCIQDeP5ZRyzzFgkNvkpEK1wkNn012RTJ7tt+V7C6e22eufQIhAJw7UJnZanwxVuNF2Y+AONGtXtphx5mHtASjsuvU6vJY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":289422,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR6b3CRA9TVsSAnZWagAAPncQAKGHcQf7WP5mRvAnEsIv\nI29HVa8PDkCblErUzBysSprIEoQlUjU/FnuYTMGAsnNA1Wahv0p8ek3ir1eF\n2rtfGnYHAvq5pU8yB2v4w/uv4Mn216k50aGFdYJg1JEAFU0cRDFf4lve/6cU\nTyrHimd46OE3Fo0QCWguZp4TGi8uJz8lIXWSPvr07W1pENE3roAk1zbGXgv/\nD3TX8M3qyAScYxK/RFTYOl+0xa0ehLXrkn5lrzd52Lgx7f/CrRRp7YouCmjV\nRGitgTJ8s23KpEsrwmmPInOR86vJ9CJ+A/hMDmjOyu7jUtpeKuo0NOiT3aW/\nVf48375nfSCx/PukgNHLtviPt1F57nn6uaPfSnpUoLCHS1mLOVTuZxCRNy5Q\nFbKBl11GdCVo+I7Kfzolp8hL65DbBqRdMFLn6xWHTB1CcgQme5E6ZeISN7MW\nAaKEsxXuhHM3Uw5BRR2JqK1uonxCt/A/QuY8/v3hvVyfb2FEbGMhRnpqDX+v\noa2O+pku+zp74O1TvVsRWA47xv1Ssw4hZ5AfZY/dOY3EQuBOcrrZACfZckNv\nloNSNNkcB66WVONSD0kggQfRnDzm6eS6XMuRgO6g2KVH8fsVwSfW3q78CVGx\nb9qxDbKqp1pi4IGTNMuF6e5NB+MRe49K81E91EOuUj75T9d7pU0zrlsl2lDL\n7zDa\r\n=CVYd\r\n-----END PGP SIGNATURE-----\r\n","size":66735,"noattachment":false,"key":"/@azure/monitor-opentelemetry-exporter/-/@azure/monitor-opentelemetry-exporter-1.0.0-dev.20200827.1.tgz"},"main":"dist-esm/src/index.js","_from":"file:/home/vsts/work/1/packages/azure-monitor-opentelemetry-exporter-1.0.0-dev.20200827.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/en-us/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/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":"c8 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","unit-test:node":"c8 ts-mocha -p ./tsconfig.json 'test/**/*.test.ts'","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"echo skipped","integration-test:node":"echo skipped","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":"","_integrity":"","deprecated":"Package renamed to @azure/opentelemetry-exporter-azure-monitor","repository":{"url":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/opentelemetry-exporter","type":"git"},"_npmVersion":"6.14.7","description":"Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@opentelemetry/core":"^0.10.1","@opentelemetry/tracing":"^0.10.1","@opentelemetry/semantic-conventions":"^0.10.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.2.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","eslint-plugin-import":"^2.21.2","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^2.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-dev","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/monitor-opentelemetry-exporter_1.0.0-dev.20200827.1_1598531318834_0.978477604768414","host":"s3://npm-registry-packages"},"publish_time":1598531319000,"_cnpm_publish_time":1598531319000,"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"}}