{"name":"@azure/monitor-opentelemetry-exporter","version":"1.0.0-alpha.20201110.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.20201110.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":"a4a52cd76fed12cf0ad1a3db1d8f5c2e12efe2bc","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry-exporter/download/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20201110.1.tgz","fileCount":163,"integrity":"sha512-4BgFM/MSZ+cdME+TFoXuRp7V7lxk+7l29f/oXsafKgNBELlSclkBE0c4n2Op3y6h2P2MPg3RicRkR8HVbBAwVQ==","signatures":[{"sig":"MEYCIQC2j7xx9i74Jfse7ZnH0iheQYm1C5AJ8u+xUPyPXtUXOQIhAMybMofHU7dkYE3dGeMh1n6RAYbRaxTpihDnX8N8AMpu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":394879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqpZbCRA9TVsSAnZWagAAx+4P/i12MeUlcorPOZVmZ0uE\nSVI4NGRf1JU7jBOxLnPrgqoOA2PQ5dyqNt9gdocAV6+QnU9L5zaT0lGsUjDC\nBgmvHHJgDaBVD+uvB5d/kKp7XWx3xPBV+tsp59KdSsufdB1g1VHq7oZZJOwT\n2n9JshL8452MhCJPUfOK2S9FZSOIWW8Dp0E1vp8uoePPlAIFHQ3cW6qtHZRg\nKdSUgtGpf5oIywLWpkavzgTaaiqJyZ9U7MI8qAuCDTaIBVSJBB/v2fo/MnCP\nJr4RMz7Bo6g/xZYk2vaxbr97kN1BgA96ahEVt9X04qqX+AHtY64DQwkMkq6S\nyjRSxXR9PUPPIyo7tFJoG/+vT76SRe2lbKwK0vUCPUBpNPD+4VvUel60ZxSk\nBGerlN2E0dCftfrXbPA8N2WgAngG7ed4+Ibx//UblUNkMHzhEqyLoabCzEo8\nb7xeW5a9pDJGd9zBCOeHyOl0F0sq6vvv00C4w0CQbG+BCEaP8VJ7mOuD9i5F\nMwiZRVyavIi/xe6NQ9TDQSaeplTvLoNf4/68dBVhoVDqO41SG2ExOWZraRT0\nLPHwT4b1+DxB6hDRSmZ3F4qJDa6u4Kw4WA6Lm5nOnsrnFfOgXV2UM4jyVIWK\n7d16gFEAxDgs+JY4skAmo0whDSzMTqs+wy8+w52leyadCjl1bSWtrJR04u6q\n5EOD\r\n=5D5n\r\n-----END PGP SIGNATURE-----\r\n","size":75145,"noattachment":false,"key":"/@azure/monitor-opentelemetry-exporter/-/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20201110.1.tgz"},"main":"dist-esm/src/index.js","_from":"file:/home/vsts/work/1/packages/azure-monitor-opentelemetry-exporter-1.0.0-alpha.20201110.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](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.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/utils/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":"14.15.0","dependencies":{"@azure/core-http":"^1.2.0","@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.20201110.1_1605015131027_0.4185761350982711","host":"s3://npm-registry-packages"},"publish_time":1605015131170,"_cnpm_publish_time":1605015131170,"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"}}