{"name":"@azure/monitor-opentelemetry-exporter","version":"1.0.0-alpha.20210408.1","keywords":["node","azure","monitor","javascript","applicationinsights","opentelemetry","exporter","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/monitor-opentelemetry-exporter@1.0.0-alpha.20210408.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/monitor-opentelemetry-exporter/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"6abc3bcd4ec5f5f4d16c190d8f72ea83453fb2ef","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry-exporter/download/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20210408.1.tgz","fileCount":67,"integrity":"sha512-4QX7fHpFsJe+ojE1QkXWPXrj/qMxCuLKV7mOxFlmi4PM5yf7ZYGEPp3i5/JBzcQzy2LRnMUAgS3hWZWYpBBZiQ==","signatures":[{"sig":"MEYCIQCJfSG8vDthhoqwHSX9wX+ak/PRscfL+XoFrewhPINBtwIhAI2e7n7rhl45oVGPQ8nBM3GYzFMT4/WiXWxfF0T+B5kR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":304470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbvQLCRA9TVsSAnZWagAATCAP/Av2wQeENJCkJXtJhn+V\nxZF6KOqwKUMpcn3qdFNvhXx369WSDqVidUansoylvVejdph5ypQ69UnPfYlC\n1X11PNCjZJ0iw9gXt2QOEfHc1mior5ug4VgIbL5++zlo9qaBGlF5N6pyaoGB\nwFWw05tWDQFeYOOviywMfsdoKmgAnnWFANug5oOLjt8S8ZRHiRoA0V1o93Wa\nMdMt4OWbciGs3bTO0jE+jnKA1c238y5nhFvgD8y61WfZ7uvxVPFno7DUVaVZ\nMa2QUn6uKpZLycLh7b2mJ7wSvrw5aRzpPhk0bJJwxm9wmj8o8z9/4jbl4xHd\nNxfqLqGfkcr/OooMWu+qIOU+hkQUF6QUuMzwyMXcf1U8hNdVKbhkjaQvvvbQ\nfLPc+o5u+sIu/PZ5qfR6rDYt4UnW/a0ZdWs1niZhMDJShGYtmIP5RxnaVg0O\ntDCQjAOcoDhp5u4sWkyq0M3CiTBYAAsIAL3AaIvFZBJWrQs5VjuBQn8oKp58\nxXw6H4UGQt5pcOOt5bLptS4BbtKKPLELysu9jf3BbtzppOq/HepfJjnP+4uL\nw0JJ1iE0orDPBLuYPyldPTyozRUEBs/2CiibJ0i09+UamZW0UN211/gPWsN0\nOQVy1s12zzFWCyg0Z9AhsJ6WbsL3JpN8+G7+esdqOuDx4RIXfxhigZUlTFDT\nbsqg\r\n=/Rhe\r\n-----END PGP SIGNATURE-----\r\n","size":57376,"noattachment":false,"key":"/@azure/monitor-opentelemetry-exporter/-/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20210408.1.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-monitor-opentelemetry-exporter-1.0.0-alpha.20210408.1.tgz","types":"types/monitor-opentelemetry-exporter.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.5.0 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  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\nFor complete samples of a few champion scenarios, see the [`samples/`](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/monitor-opentelemetry-exporter/samples/) folder.\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](https://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`](https://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.5.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts -f html -o telemetry-exporter-lintReport.html || 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 && api-extractor run --local","clean":"rimraf dist-esm types dist","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","report":"nyc report --reporter=json","prepare":"npm run build","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run unit-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && rollup -c 2>&1","build:test":"echo skipped","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run unit-test:browser","build:browser":"echo skipped","build:samples":"echo Skipped.","build:autorest":"autorest ./swagger/README.md --typescript --v3","unit-test:node":"nyc mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/unit/**/*.test.ts\"","functional-test":"nyc mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"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/utils/constants/applicationinsights.ts","prefix":"packageVersion"}]},"_integrity":"","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.18.1","@opentelemetry/core":"^0.18.2","@opentelemetry/tracing":"^0.18.2","@opentelemetry/resources":"^0.18.2","@opentelemetry/semantic-conventions":"^0.18.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":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","ts-node":"^9.0.0","typedoc":"0.15.2","prettier":"^1.16.4","typescript":"~4.2.0","@types/node":"^10.0.0","@types/mocha":"^7.0.2","@azure/dev-tool":"^1.0.0-alpha","eslint-plugin-node":"^11.1.0","@microsoft/api-extractor":"7.7.11","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/monitor-opentelemetry-exporter_1.0.0-alpha.20210408.1_1617884170737_0.608683021514826","host":"s3://npm-registry-packages"},"publish_time":1617884170876,"_cnpm_publish_time":1617884170876,"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"}}