{"name":"@azure/monitor-opentelemetry-exporter","version":"1.0.0-alpha.20210915.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.20210915.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/main/sdk/monitor/monitor-opentelemetry-exporter/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"276e1309c7425434521df533d562e947ad58d285","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry-exporter/download/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20210915.1.tgz","fileCount":61,"integrity":"sha512-tlpUAdL51smqMPdvfWustm8yA0xOelIelAC2CblIvBqw2onoFJkDDLnz8qmAU877SaUvZSEMciTllcBEv6PKnA==","signatures":[{"sig":"MEQCIGFNMU2qTGCPbj6IWFFai2I0EFvoFwMTGRV+y4Jmt5oiAiAGMXNdNF4cwDpE85B9Pp+hJv8VHxZJV9nGUbxp6gjkTQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":316848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQePeCRA9TVsSAnZWagAArmwP/0X0S6pWnDb/paoEk8M3\nea6w5Fu2yfFsCPqFqnw6ZJxBEgc+WVBuN50UTB+zggknXZZp8kyYrVr53dbG\nXc5Fr2yFj8cDw5E9YyQMU8NG0ZGYB5i8GYSugQsRpQtc0ucdreZQEdFVtk4z\nkrvu1q13uhahD7V21hpyYpNNnVFarXtOCwWZykMrdcAPC8T0EpYJmNlmykiC\nq945rpeKSkmGDb7q6e8u2GdpHPKNITAZf8HfbFYPXhfZpvrnVK9mObCrNmLn\nkweDeaHhRidyoiQTFF6QJGaQCqdYreoZPrDAMw3ZdPedud+hp9zOABOivus/\nfQ0SdzRSEsg18AetkviY4ZzGQTyrjxFP7NuFVj7UNL2tRQlVQp2sLmZ8X34Y\norQNpYhL72PtacCTZUK+L4WjbV/ga3Q0EWb7sCeZPDWwKczJOrW605+BDoor\njSGRtXhDN2c7jF7+KlttA07ZFJOlW+gZsNurHUxM6LB8AxDwwKCnWXYMsnQc\n8Q3HmKLVid/1MXOVlnmc3D7wyvJWVEAZe8QRAnYlzyVC2KVGnPpbdB91MpuE\nP+tcNcnGkUGjBM7lql92u26WoAFGtBn/P9zOt4w/Cr8tZ7/+Qg/6IElxI9hV\ndPPWKwGbuGI+w3vZ+s06anQ32YAn72zHqbzmIk5G9qYgW1D5vgoLxtuxv78T\nKw/9\r\n=K+92\r\n-----END PGP SIGNATURE-----\r\n","size":59746,"noattachment":false,"key":"/@azure/monitor-opentelemetry-exporter/-/@azure/monitor-opentelemetry-exporter-1.0.0-alpha.20210915.1.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-monitor-opentelemetry-exporter/azure-monitor-opentelemetry-exporter-1.0.0-alpha.20210915.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### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/)\n- An [Application Insights workspace](https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview/)\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/main/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/main/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":">=12.0.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\" \"samples-dev/**/*.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\" \"samples-dev/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run unit-test:browser","build:browser":"echo skipped","build:samples":"echo Obsolete.","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/internal/**/*.test.ts\"","execute:samples":"dev-tool samples run samples-dev","functional-test":"nyc mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/internal/functional/*.test.ts\"","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"echo skipped","unit-test:node:debug":"nyc mocha --inspect-brk -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/internal/**/*.test.ts\"","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/generated/applicationInsightsClientContext.ts","prefix":"packageVersion"},{"path":"src/utils/constants/applicationinsights.ts","prefix":"packageVersion"},{"path":"swagger/README.md","prefix":"package-version"}]},"_integrity":"","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.15","description":"Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.2.0","@azure/core-client":"^1.0.0","@opentelemetry/api":"^1.0.1","@opentelemetry/core":"^0.22.0","@opentelemetry/tracing":"^0.22.0","@opentelemetry/resources":"^0.22.0","@azure/core-rest-pipeline":"^1.1.0","@opentelemetry/semantic-conventions":"^0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","nock":"^12.0.3","execa":"^5.0.0","mocha":"^7.1.1","sinon":"^9.0.2","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","ts-node":"^10.0.0","typedoc":"0.15.2","prettier":"^1.16.4","typescript":"~4.2.0","@types/node":"^12.0.0","@types/mocha":"^7.0.2","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","eslint-plugin-node":"^11.1.0","@opentelemetry/node":"0.22.0","@microsoft/api-extractor":"7.7.11","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb","@opentelemetry/instrumentation":"0.22.0","@opentelemetry/instrumentation-http":"0.22.0"},"//sampleConfiguration":{"productName":"Azure Monitor Trace Exporter","productSlugs":["azure-monitor"],"requiredResources":{"Azure Application Insights workspace instance":"https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview"}},"_npmOperationalInternal":{"tmp":"tmp/monitor-opentelemetry-exporter_1.0.0-alpha.20210915.1_1631708126221_0.4537420669504413","host":"s3://npm-registry-packages"},"publish_time":1631708126372,"_cnpm_publish_time":1631708126372,"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"}}